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:
Matt Bierner
2023-01-24 17:05:19 -08:00
committed by GitHub
parent fc21cf076f
commit 983ee9c0f9

View File

@@ -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();