fix: web typescript extension can not found definitions (#125279)
This commit is contained in:
parent
a359d5502c
commit
f1e458a1d7
|
@ -703,7 +703,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
||||||
if (isWeb()) {
|
if (isWeb()) {
|
||||||
// On web, treat absolute paths as pointing to standard lib files
|
// On web, treat absolute paths as pointing to standard lib files
|
||||||
if (filepath.startsWith('/')) {
|
if (filepath.startsWith('/')) {
|
||||||
return vscode.Uri.joinPath(this.context.extensionUri, 'node_modules', 'typescript', 'lib', filepath.slice(1));
|
return vscode.Uri.joinPath(this.context.extensionUri, 'dist', 'browser', 'typescript', filepath.slice(1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue