/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | configuredProjects.ts | 4 const configFile: File = { constant 27 const host = createServerHost([configFile, libFile, file1, file2, file3]); 38 const configFile: File = { constant 59 const host = createServerHost([configFile, libFile, file1, file2, file3]); 70 const configFile: File = { constant 92 host.writeFile(configFile.path, configFile.content); 96 host.deleteFile(configFile.path); 103 const configFile: File = { constant 107 const host = createServerHost([commonFile1, libFile, configFile]); 118 const configFile: File = { constant [all …]
|
D | openFile.ts | 39 const configFile: File = { constant 47 const host = createServerHost([file1, file2, configFile, configFile2], { 53 verifyConfigFileName(file1, "/a", configFile); 54 verifyConfigFileName(file1, "/a/b", configFile); 55 verifyConfigFileName(file1, "/a/B", configFile); 58 verifyConfigFileName(file2, "/a", useCaseSensitiveFileNames ? configFile2 : configFile); 59 … verifyConfigFileName(file2, "/a/b", useCaseSensitiveFileNames ? configFile2 : configFile); 60 verifyConfigFileName(file2, "/a/B", useCaseSensitiveFileNames ? undefined : configFile); 82 const configFile: File = { constant 86 const files = [aFile, configFile, libFile]; constant [all …]
|
D | compileOnSave.ts | 34 let configFile: File; variable 66 configFile = { 93 …Names.CompileOnSaveAffectedFileList, { file: moduleFile1.path, projectFileName: configFile.path }); 97 …Host([moduleFile1, file1Consumer1, file1Consumer2, globalFile3, moduleFile2, configFile, libFile]); 104 …ndCheckResult(session, moduleFile1FileListRequest, [{ projectFileName: configFile.path, files: [mo… 106 …ndCheckResult(session, moduleFile1FileListRequest, [{ projectFileName: configFile.path, files: [mo… 118 …ndCheckResult(session, moduleFile1FileListRequest, [{ projectFileName: configFile.path, files: [mo… 122 …Host([moduleFile1, file1Consumer1, file1Consumer2, globalFile3, moduleFile2, configFile, libFile]); 129 …ndCheckResult(session, moduleFile1FileListRequest, [{ projectFileName: configFile.path, files: [mo… 142 …ndCheckResult(session, moduleFile1FileListRequest, [{ projectFileName: configFile.path, files: [mo… [all …]
|
D | reloadProjects.ts | 3 const configFile: File = { constant 43 const host = createServerHost([configFile, libFile, file1, file2]); 48 const project = service.configuredProjects.get(configFile.path)!; 49 … checkProjectActualFiles(project, [libFile.path, file1.path, file2.path, configFile.path]); 57 assert.strictEqual(service.configuredProjects.get(configFile.path), project); 58 …checkProjectActualFiles(project, [libFile.path, file1.path, file2.path, configFile.path, moduleFil… 114 const host = createServerHost([libFile, file1, file2, configFile]); 120 … rootFiles: [{ fileName: file1.path }, { fileName: file2.path }, { fileName: configFile.path }] 124 const project = service.configuredProjects.get(configFile.path)!; 125 … checkProjectActualFiles(project, [libFile.path, file1.path, file2.path, configFile.path]); [all …]
|
D | watchEnvironment.ts | 8 const configFile: File = { constant 25 const files = [index, file1, configFile, libFile]; constant 69 const configFile: File = { constant 81 const files = [configFile, file1, file2, libFile]; 98 const configFile: File = { constant 116 …const host = createServerHost([index, file1, configFile, libFile, nodeModulesExistingUnusedFile], … 183 const configFile: File = { constant 187 const files = [libFile, commonFile2, configFile]; constant 204 const configFile: File = { constant 208 const files = [libFile, commonFile2, configFile]; constant [all …]
|
D | configFileSearch.ts | 8 const configFile = { constant 12 const host = createServerHost([f1, configFile]); 32 const configFile = { constant 40 const host = createServerHost([f1, libFile, configFile, configFile2]); 45 host.deleteFile(configFile.path); 58 const configFile = { constant 66 const host = createServerHost([f1, libFile, configFile, configFile2]); 75 host.deleteFile(configFile.path);
|
D | projectErrors.ts | 278 const configFile: File = { constant 282 const host = createServerHost([app, foo, configFile]); 423 const configFile: File = { constant 432 const host = createServerHost([file, libFile, configFile]); 443 const configFile: File = { constant 449 const host = createServerHost([file, libFile, configFile]); 460 const configFile = { constant 467 const host = createServerHost([file, libFile, configFile]); 471 configFile.content = `{ 476 host.writeFile(configFile.path, configFile.content); [all …]
|
D | navTo.ts | 16 const configFile: File = { constant 20 const host = createServerHost([file1, configFile, libFile]); 25 …mmandNames.Navto, { searchValue: "Document", file: file1.path, projectFileName: configFile.path }); 29 …s>(CommandNames.Navto, { searchValue: "foo", file: file1.path, projectFileName: configFile.path }); 123 const configFile: File = { constant 127 const host = createServerHost([file1, configFile, libFile]); 132 …s>(CommandNames.Navto, { searchValue: "foo", file: file1.path, projectFileName: configFile.path });
|
D | partialSemanticServer.ts | 24 const configFile: File = { constant 28 const host = createServerHost([file1, file2, file3, something, libFile, configFile]); 34 return { host, session, file1, file2, file3, something, configFile }; 91 const configFile: File = { constant 97 const host = createServerHost([file1, libFile, configFile]); 158 const configFile: File = { constant 162 const host = createServerHost([file1, file2, file3, something, libFile, configFile]);
|
D | syntacticServer.ts | 24 const configFile: File = { constant 28 const host = createServerHost([file1, file2, file3, something, libFile, configFile]); 30 return { host, session, file1, file2, file3, something, configFile }; 137 const configFile: File = { constant 141 const host = createServerHost([file1, file2, file3, something, libFile, configFile]);
|
D | externalProjects.ts | 337 const configFile = { constant 342 const host = createServerHost([file1, configFile]); 349 rootFiles: toExternalFiles([configFile.path]), 373 const configFile = { constant 378 const host = createServerHost([file1, file2, libFile, configFile]); 383 const project = projectService.configuredProjects.get(configFile.path); 386 rootFiles: toExternalFiles([configFile.path]), 392 assert.strictEqual(projectService.configuredProjects.get(configFile.path), project); 397 assert.strictEqual(projectService.configuredProjects.get(configFile.path), project); 401 assert.strictEqual(projectService.configuredProjects.get(configFile.path), project); [all …]
|
D | documentRegistry.ts | 12 const configFile: File = { constant 18 return service.configuredProjects.get(configFile.path)!; 25 …checkProjectActualFiles(project, [file.path, libFile.path, configFile.path, ...(moduleIsOrphan ? [… 34 const host = createServerHost([file, moduleFile, libFile, configFile]);
|
D | resolutionCache.ts | 267 const configFile = { constant 271 const host = createServerHost([moduleFile, file1, configFile]); 339 const configFile: File = { constant 373 const files = [module1, module2, file1, file2, configFile, libFile]; constant 389 const files = [module1, module2, file1, file2, configFile, libFile]; constant 429 const files = [module1, module2, file1, file2, file3, file4, configFile, libFile]; constant 446 const files = [module1, module2, file1, file2, file3, file4, configFile, libFile]; constant 513 const configFile: File = { constant 527 …les = [...(useNodeFile ? [nodeFile] : []), electronFile, srcFile, moduleFile, configFile, libFile]; 591 const files = [module1, module2, file1, configFile, libFile]; constant
|
/third_party/typescript/src/services/codefixes/ |
D | fixEnableExperimentalDecorators.ts | 10 const { configFile } = context.program.getCompilerOptions(); constant 11 if (configFile === undefined) { 15 …es = textChanges.ChangeTracker.with(context, changeTracker => doChange(changeTracker, configFile)); 20 const { configFile } = context.program.getCompilerOptions(); constant 21 if (configFile === undefined) { 24 doChange(changes, configFile); 28 function doChange(changeTracker: textChanges.ChangeTracker, configFile: TsConfigSourceFile) { 29 …setJsonCompilerOptionValue(changeTracker, configFile, "experimentalDecorators", factory.createTrue…
|
D | fixEnableJsxFlag.ts | 8 const { configFile } = context.program.getCompilerOptions(); constant 9 if (configFile === undefined) { 14 doChange(changeTracker, configFile) 23 const { configFile } = context.program.getCompilerOptions(); constant 24 if (configFile === undefined) { 28 doChange(changes, configFile); 32 function doChange(changeTracker: textChanges.ChangeTracker, configFile: TsConfigSourceFile) { 33 …setJsonCompilerOptionValue(changeTracker, configFile, "jsx", factory.createStringLiteral("react"));
|
D | fixModuleAndTargetOptions.ts | 10 const { configFile } = compilerOptions; constant 11 if (configFile === undefined) { 20 … setJsonCompilerOptionValue(changes, configFile, "module", factory.createStringLiteral("esnext")); 29 const configObject = getTsConfigObjectLiteralExpression(configFile); 38 setJsonCompilerOptionValues(tracker, configFile, options);
|
/third_party/typescript/src/testRunner/unittests/tscWatch/ |
D | programUpdates.ts | 5 const configFile: File = { constant 56 const configFile: File = { constant 78 return createWatchedSystem([configFile, libFile, file1, file2, file3]); 87 sys: () => createWatchedSystem([commonFile1, libFile, configFile]), 102 const configFile: File = { constant 112 return createWatchedSystem([commonFile1, commonFile2, libFile, configFile]); 122 return createWatchedSystem([libFile, commonFile1, commonFile2, configFile]); 169 const configFile: File = { constant 176 return createWatchedSystem([libFile, commonFile1, commonFile2, configFile]); 200 const configFile: File = { constant [all …]
|
D | watchEnvironment.ts | 74 const configFile: File = { constant 82 const files = [libFile, commonFile1, commonFile2, configFile]; constant 127 const configFile: File = { constant 142 commandLineArgs: ["--w", "-p", configFile.path], 144 const files = [file, configFile, libFile]; constant 225 const configFile: File = { constant 237 const files = [libFile, file1, file2, configFile]; constant 316 const configFile: File = { constant 328 const files = [libFile, file1, file2, configFile]; constant 357 const configFile: File = { constant [all …]
|
D | incremental.ts | 5 const configFile: File = { constant 75 files: () => [libFile, file1, file2, configFile], 86 files: () => [libFile, file1, configFile, { 96 path: configFile.path, 113 path: configFile.path, 210 path: configFile.path, 220 path: configFile.path, 279 … { path: configFile.path, content: JSON.stringify({ compilerOptions: { incremental: true, } }) } 308 … { path: configFile.path, content: JSON.stringify({ compilerOptions: jsxImportSourceOptions }) } 310 …modifyFs: host => host.writeFile(configFile.path, JSON.stringify({ compilerOptions: { ...jsxImport… [all …]
|
D | consoleClearing.ts | 34 const configFile: File = { constant 38 const files = [file, configFile, libFile]; constant 44 configFileName: configFile.path, 50 commandLineArgs: ["--w", "-p", configFile.path], 60 commandLineArgs: ["--w", "-p", configFile.path],
|
D | emit.ts | 55 const configFile: File = { constant 64 return createWatchedSystem([file1, file2, file3, file4, libFile, configFile]); 126 const configFile: File = { constant 131 …moduleFile1, file1Consumer1, file1Consumer2, globalFile3, moduleFile2, configFile, libFile, ...add… constant 398 const configFile = { constant 402 return createWatchedSystem([file1, file2, file3, configFile, libFile]); 457 const configFile: File = { constant 465 const files = [file, configFile, libFile]; constant 484 const configFile: File = { constant 505 return createWatchedSystem([configFile, file1, file2, libFile]);
|
D | nodeNextWatch.ts | 8 const configFile: File = { constant 41 …return createWatchedSystem([configFile, file1, declFile, packageFile, { ...libFile, path: "/a/lib/…
|
/third_party/typescript/src/services/ |
D | getEditsForFileRename.ts | 49 const { configFile } = program.getCompilerOptions(); constant 50 if (!configFile) return; 51 const configDir = getDirectoryPath(configFile.fileName); 53 const jsonObjectLiteral = getTsConfigObjectLiteralExpression(configFile); 69 …changeTracker.insertNodeAfter(configFile, last(property.initializer.elements), factory.createStrin… 107 …changeTracker.replaceRangeWithText(configFile!, createStringRange(element, configFile!), relativeP…
|
/third_party/typescript/src/testRunner/unittests/tsserver/events/ |
D | projectUpdatedInBackground.ts | 45 const configFile: File = { constant 50 const host = createServerHost([commonFile1, libFile, configFile]); 171 const configFile = { constant 176 …1, moduleFile1, file1Consumer2, moduleFile2, ...additionalFiles, globalFile3, libFile, configFile]; constant 179 const host = createServerHost([filesToReload[0], configFile]); 193 … moduleFile1, file1Consumer1, file1Consumer2, moduleFile2, globalFile3, configFile, 433 const configFile: File = { constant 439 const host = createServerHost([file1, file3, libFile, configFile]);
|
/third_party/typescript/src/compiler/ |
D | watch.ts | 289 const configFile = program.getCompilerOptions().configFile; constant 290 if (!configFile?.configFileSpecs?.validatedFilesSpec) return undefined; 294 …const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurren… 295 …return find(configFile.configFileSpecs.validatedFilesSpec, fileSpec => getCanonicalFileName(getNor… 299 const configFile = program.getCompilerOptions().configFile; constant 300 if (!configFile?.configFileSpecs?.validatedIncludeSpecs) return undefined; 303 if (configFile.configFileSpecs.isDefaultIncludeSpec) return true; 306 …const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurren… 308 return find(configFile?.configFileSpecs?.validatedIncludeSpecs, includeSpec => { 366 …if (!options.configFile?.configFileSpecs) return chainDiagnosticMessages(/*details*/ undefined, Di… [all …]
|