Closed thisVioletHydra closed 3 years ago
You can see in the scope inspect tool that console
did not get the defaultLibrary
modifier. Can you do a goto definition on console
?
defaultLibrary
this ??
console
and invoke F12 (Goto Definition).
- what path does the d.ts file have that contains the declaration
i have it:
C:\Users\Anna\AppData\Local\Microsoft\TypeScript\4.0\node_modules\@types\node\console.d.ts
and this:
C:\Users\Anna\AppData\Local\Microsoft\TypeScript\4.0\node_modules\@types\node\globals.d.ts
hmm...
The most interesting thing is that when I check the goto definition
in debugger, the library is connected there lib.dom.d.ts
:
C:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\lib.dom.d.ts
- put the cursor on
console
and invoke F12 (Goto Definition).- in the editor or peek that show, what path does the d.ts file have that contains the declaration
if i kill this file: jsconfig.json
, the semantic work hm...
if you know, help me fix config:
{
"title": "JSON schema for the TypeScript compiler's configuration file",
"description": "config for VS CODE",
"compilerOptions": {
"lib": ["ESNext"],
"noEmit": true,
"rootDir": ".",
"module": "ESNext",
"target": "ESNext",
"baseUrl": ".",
"paths": {
"~/*": ["./*"],
"@/*": ["./*"],
"~~/*": ["./*"],
"@@/*": ["./*"],
"@root": ["."],
"@access": ["./.access"],
"@webpack": ["./webpack.config.js"],
"@models": ["./src/models"],
"@app": ["./src/app"]
}
},
"compileOnSave": false,
"include": ["**/*"],
"exclude": ["node_modules/*", ".nuxt", "dist", "assets"],
"eslint.enable": true,
"files.exclude": {
"node_modules": true,
".npm-offline-cache": true
},
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": true
}
}
"lib": ["dom", "dom.iterable", "esnext"],
I helped myself 🤔
Steps to Reproduce:
console.log('asdasd')
console.log
not have highlightingDoes this issue occur when all extensions are disabled?: Yes