mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
Make sure only lib files go through XMLHttpRequest in TS Server (#172327)
If project wide IntelliSense is enabled, we want to make sure only `lib` files do through the old `XMLHttpRequest` flow
This commit is contained in:
@@ -152,7 +152,7 @@ function createServerHost(extensionUri: URI, logger: ts.server.Logger, apiClient
|
||||
return true;
|
||||
},
|
||||
readFile(path) {
|
||||
if (!fs || path.startsWith('/')) {
|
||||
if (!fs || path.startsWith('/lib.')) {
|
||||
const webPath = getWebPath(path);
|
||||
if (webPath) {
|
||||
const request = new XMLHttpRequest();
|
||||
|
||||
Reference in New Issue
Block a user