Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intellisense for openui project in visual studio code 1.3

I have a openui project setup in visual studio code 1.2/1.3 and all the required libraries (openui runtime files) are inside /resources directory and in .js format. I am not getting any intellisense from these libraries. I have setup my jsconfig.json as follows. Can anyone help me on how to get the intellisense for the same.

Jsconfig.json:

{
"compilerOptions": {
    "target": "ES6"
},
"files": [
    "/resources/sap/m/*",
    "resources/sap/ui/*"
 ]
}
like image 578
Dinesh Avatar asked Oct 29 '22 23:10

Dinesh


1 Answers

In my example it worked that I only added "@types/openui5": "^1.40.1" as a dev Dependency to my package.json. VSCode auto detects it when it is installed via npm or yarn and provides the auto completion. I'm using VSCode 1.17 btw. Example: VSCode UI5 auto completion example

like image 118
Max Schmitt Avatar answered Jan 04 '23 15:01

Max Schmitt