Resolve correct link path for tsconfig.extends (#141062)

* fix(ts-features-extension): resolve correct path for `extends` of tsconfig
fixes #131643

* always provide link. add command to resolve the link path on click

* cleanup
just make the code cleaner

* revert `yarn.lock` changes

* pretending eslint

* use `vscode.open`

* don't add `.json` to path if it's already here
this change better conforms the TS resolving algorithm (see the reference)

* style: move `resolveNodeModulesPath` to top level

* don't show falsy errors on absolute paths

* improve resolveNodeModulesPath impl
- fixed a bug with infinite loop
- check for module existence once per level
This commit is contained in:
Vitaly
2022-02-03 20:37:00 +03:00
committed by GitHub
parent 6e81cb0464
commit c134702cc4
2 changed files with 95 additions and 14 deletions

View File

@@ -37,10 +37,11 @@
"Programming Languages"
],
"dependencies": {
"@vscode/extension-telemetry": "0.4.6",
"jsonc-parser": "^2.2.1",
"semver": "5.5.1",
"@vscode/extension-telemetry": "0.4.6",
"vscode-nls": "^5.0.0"
"vscode-nls": "^5.0.0",
"vscode-uri": "^3.0.3"
},
"devDependencies": {
"@types/node": "14.x",