You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This implements enough of `ServerHost` that we can load the standard d.ts files using synchronous XMLHttpRequests.
I also had to patch some code in `editorServices`. I don't know if these changes are correct and need someone on the TS team to review
Debug.assert(isRootedDiskPath(fileName)||isDynamic||openedByClient,"",()=>`${JSON.stringify({ fileName, currentDirectory,hostCurrentDirectory: this.currentDirectory,openKeys: arrayFrom(this.openFilesWithNonRootedDiskPath.keys())})}\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`);
2522
+
Debug.assert(isRootedDiskPath(fileName)||isUrl(fileName)||isDynamic||openedByClient,"",()=>`${JSON.stringify({ fileName, currentDirectory,hostCurrentDirectory: this.currentDirectory,openKeys: arrayFrom(this.openFilesWithNonRootedDiskPath.keys())})}\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`);
2523
2523
Debug.assert(!isRootedDiskPath(fileName)||this.currentDirectory===currentDirectory||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(fileName)),"",()=>`${JSON.stringify({ fileName, currentDirectory,hostCurrentDirectory: this.currentDirectory,openKeys: arrayFrom(this.openFilesWithNonRootedDiskPath.keys())})}\nOpen script files with non rooted disk path opened with current directory context cannot have same canonical names`);
2524
2524
Debug.assert(!isDynamic||this.currentDirectory===currentDirectory||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({ fileName, currentDirectory,hostCurrentDirectory: this.currentDirectory,openKeys: arrayFrom(this.openFilesWithNonRootedDiskPath.keys())})}\nDynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`);
2525
2525
// If the file is not opened by client and the file doesnot exist on the disk, return
0 commit comments