mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Add support for cross file JS/TS intellisense in yarn web
Fixes #133199
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user