/third_party/typescript/src/server/ |
D | session.ts | 39 const scriptInfo = project.getScriptInfoForNormalizedPath(file); constant 40 return scriptInfo && !scriptInfo.isJavaScript(); 51 const scriptInfo = project.getScriptInfoForNormalizedPath(fileName)!; // TODO: GH#18217 constant 53 start: scriptInfo.positionToLineOffset(diag.start!), 54 end: scriptInfo.positionToLineOffset(diag.start! + diag.length!), // TODO: GH#18217 908 const scriptInfo = project.getScriptInfoForNormalizedPath(file); constant 909 if (scriptInfo) { 910 const text = getSnapshotText(scriptInfo.getSnapshot()); 1181 …private convertToDiagnosticsWithLinePosition(diagnostics: readonly Diagnostic[], scriptInfo: Scrip… 1189 … startLocation: scriptInfo && scriptInfo.positionToLineOffset(d.start!), // TODO: GH#18217 [all …]
|
D | project.ts | 432 …const scriptInfo = this.projectService.getOrCreateScriptInfoNotOpenedByClient(fileName, this.curre… constant 433 if (scriptInfo) { 434 const existingValue = this.rootFilesMap.get(scriptInfo.path); 435 if (existingValue && existingValue.info !== scriptInfo) { 437 this.rootFiles.push(scriptInfo); 438 existingValue.info = scriptInfo; 440 scriptInfo.attachToProject(this); 442 return scriptInfo; 458 const scriptInfo = this.getOrCreateScriptInfoAndAttachToProject(filename); constant 459 if (scriptInfo) { [all …]
|
D | editorServices.ts | 1135 const scriptInfo = this.getScriptInfoForNormalizedPath(fileName); constant 1136 … return scriptInfo && !scriptInfo.isOrphan() ? scriptInfo.getDefaultProject() : undefined; 1146 const scriptInfo = this.getScriptInfoForNormalizedPath(fileName); constant 1147 …return scriptInfo ? scriptInfo.getDefaultProject() : (this.logErrorForScriptInfoNotFound(fileName)… 1854 const scriptInfo = Debug.checkDefined(this.getScriptInfo(info.path)); constant 1855 if (scriptInfo.isDynamic) return undefined; 2213 …const scriptInfo = Debug.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath( constant 2220 path = scriptInfo.path; 2223 if (!existingValue || existingValue.info !== scriptInfo) { 2224 project.addRoot(scriptInfo, fileName); [all …]
|
/third_party/typescript/src/harness/ |
D | harnessLanguageService.ts | 75 constructor(public scriptInfo: ScriptInfo) { 76 this.textSnapshot = scriptInfo.content; 77 this.version = scriptInfo.version; 90 return this.scriptInfo.getTextChangeRangeBetweenVersions(oldShim.version, this.version); 147 this.scriptInfos.forEach(scriptInfo => { 148 if (scriptInfo.isRootFile) { 151 fileNames.push(scriptInfo.fileName); 185 this.scriptInfos.forEach((scriptInfo, key) => { 189 this.scriptInfos.set(newFileName, scriptInfo); 190 scriptInfo.fileName = newFileName; [all …]
|
D | fourslashImpl.ts | 282 …const scriptInfo = new Harness.LanguageService.ScriptInfo(path, undefined!, /*isRootFile*/ false);… constant 283 files[path] = new vfs.File(data, { meta: { scriptInfo } }); 3018 const scriptInfo = this.languageServiceAdapterHost.getScriptInfo(fileName)!; constant 3019 const originalContent = scriptInfo.content;
|
/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | openFile.ts | 19 const scriptInfo = p.getScriptInfo(f.path)!; constant 20 checkSnapLength(scriptInfo.getSnapshot(), f.content.length); 24 checkSnapLength(scriptInfo.getSnapshot(), 0);
|
D | textStorage.ts | 112 const scriptInfo = projectService.getScriptInfo(largeFile.path); constant 114 const ts1 = new server.TextStorage(host, scriptInfo!);
|
D | configuredProjects.ts | 774 …const scriptInfo = projectService.getScriptInfoForNormalizedPath(server.toNormalizedPath(f.path))!; constant 775 …assert.equal(scriptInfo.containingProjects.length, 1, `expect 1 containing projects for '${f.path}… 776 …assert.equal(scriptInfo.containingProjects[0], project, `expect configured project to be the only …
|
D | projects.ts | 887 const scriptInfo = project.getScriptInfo(file1.path)!; constant 888 const snap = scriptInfo.getSnapshot();
|
/third_party/typescript/lib/ |
D | tsserverlibrary.js | 154188 …var scriptInfo = this.projectService.getOrCreateScriptInfoNotOpenedByClient(fileName, this.current… 154189 if (scriptInfo) { 154190 var existingValue = this.rootFilesMap.get(scriptInfo.path); 154191 if (existingValue && existingValue.info !== scriptInfo) { 154193 this.rootFiles.push(scriptInfo); 154194 existingValue.info = scriptInfo; 154196 scriptInfo.attachToProject(this); 154198 return scriptInfo; 154210 var scriptInfo = this.getOrCreateScriptInfoAndAttachToProject(filename); 154211 if (scriptInfo) { [all …]
|
D | tsserver.js | 153994 …var scriptInfo = this.projectService.getOrCreateScriptInfoNotOpenedByClient(fileName, this.current… 153995 if (scriptInfo) { 153996 var existingValue = this.rootFilesMap.get(scriptInfo.path); 153997 if (existingValue && existingValue.info !== scriptInfo) { 153999 this.rootFiles.push(scriptInfo); 154000 existingValue.info = scriptInfo; 154002 scriptInfo.attachToProject(this); 154004 return scriptInfo; 154016 var scriptInfo = this.getOrCreateScriptInfoAndAttachToProject(filename); 154017 if (scriptInfo) { [all …]
|
D | tsserverlibrary.d.ts | 9472 getCompileOnSaveAffectedFileList(scriptInfo: ScriptInfo): string[]; 9476 …emitFile(scriptInfo: ScriptInfo, writeFile: (path: string, data: string, writeByteOrderMark?: bool…
|
/third_party/typescript/tests/baselines/reference/api/ |
D | tsserverlibrary.d.ts | 9595 getCompileOnSaveAffectedFileList(scriptInfo: ScriptInfo): string[]; 9599 …emitFile(scriptInfo: ScriptInfo, writeFile: (path: string, data: string, writeByteOrderMark?: bool…
|