mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Pick up TS 4.7 for bundling with VS Code
This commit is contained in:
@@ -52,7 +52,21 @@ function getLanguageServiceHost(scriptKind: ts.ScriptKind) {
|
||||
};
|
||||
},
|
||||
getCurrentDirectory: () => '',
|
||||
getDefaultLibFileName: (_options: ts.CompilerOptions) => 'es6'
|
||||
getDefaultLibFileName: (_options: ts.CompilerOptions) => 'es6',
|
||||
readFile: (path: string, _encoding?: string | undefined): string | undefined => {
|
||||
if (path === currentTextDocument.uri) {
|
||||
return currentTextDocument.getText();
|
||||
} else {
|
||||
return libs.loadLibrary(path);
|
||||
}
|
||||
},
|
||||
fileExists: (path: string): boolean => {
|
||||
if (path === currentTextDocument.uri) {
|
||||
return true;
|
||||
} else {
|
||||
return !!libs.loadLibrary(path);
|
||||
}
|
||||
}
|
||||
};
|
||||
return ts.createLanguageService(host);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user