Add support for cross file JS/TS intellisense in yarn web

Fixes #133199
This commit is contained in:
Matt Bierner
2021-09-15 16:25:43 -07:00
parent 8a912d57c3
commit 4fcbe9449c
2 changed files with 4 additions and 0 deletions

View File

@@ -743,6 +743,8 @@ export default class TypeScriptServiceClient extends Disposable implements IType
case fileSchemes.file:
case fileSchemes.untitled:
case fileSchemes.vscodeNotebookCell:
case fileSchemes.memFs:
case fileSchemes.vscodeVfs:
for (const root of roots.sort((a, b) => a.uri.fsPath.length - b.uri.fsPath.length)) {
if (resource.fsPath.startsWith(root.uri.fsPath + path.sep)) {
return root.uri.fsPath;

View File

@@ -10,6 +10,8 @@ export const git = 'git';
export const vsls = 'vsls';
export const walkThroughSnippet = 'walkThroughSnippet';
export const vscodeNotebookCell = 'vscode-notebook-cell';
export const memFs = 'memfs';
export const vscodeVfs = 'vscode-vfs';
export const semanticSupportedSchemes = [
file,