typescript 5.3.0-dev.20230907 → 5.3.0-dev.20230909
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +26 -2
- package/lib/tsserver.js +46 -11
- package/lib/typescript.d.ts +6 -1
- package/lib/typescript.js +46 -11
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.3";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20230909`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -14990,7 +14990,31 @@ function getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit) {
|
|
|
14990
14990
|
}
|
|
14991
14991
|
function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {
|
|
14992
14992
|
const options = host.getCompilerOptions();
|
|
14993
|
-
|
|
14993
|
+
if (options.noEmitForJsFiles && isSourceFileJS(sourceFile))
|
|
14994
|
+
return false;
|
|
14995
|
+
if (sourceFile.isDeclarationFile)
|
|
14996
|
+
return false;
|
|
14997
|
+
if (host.isSourceFileFromExternalLibrary(sourceFile))
|
|
14998
|
+
return false;
|
|
14999
|
+
if (forceDtsEmit)
|
|
15000
|
+
return true;
|
|
15001
|
+
if (host.isSourceOfProjectReferenceRedirect(sourceFile.fileName))
|
|
15002
|
+
return false;
|
|
15003
|
+
if (!isJsonSourceFile(sourceFile))
|
|
15004
|
+
return true;
|
|
15005
|
+
if (host.getResolvedProjectReferenceToRedirect(sourceFile.fileName))
|
|
15006
|
+
return false;
|
|
15007
|
+
if (outFile(options))
|
|
15008
|
+
return true;
|
|
15009
|
+
if (!options.outDir)
|
|
15010
|
+
return false;
|
|
15011
|
+
if (options.rootDir || options.composite && options.configFilePath) {
|
|
15012
|
+
const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory());
|
|
15013
|
+
const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName);
|
|
15014
|
+
if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */)
|
|
15015
|
+
return false;
|
|
15016
|
+
}
|
|
15017
|
+
return true;
|
|
14994
15018
|
}
|
|
14995
15019
|
function getSourceFilePathInNewDir(fileName, host, newDirPath) {
|
|
14996
15020
|
return getSourceFilePathInNewDirWorker(fileName, newDirPath, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f));
|
package/lib/tsserver.js
CHANGED
|
@@ -2327,7 +2327,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2327
2327
|
|
|
2328
2328
|
// src/compiler/corePublic.ts
|
|
2329
2329
|
var versionMajorMinor = "5.3";
|
|
2330
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2330
|
+
var version = `${versionMajorMinor}.0-dev.20230909`;
|
|
2331
2331
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2332
2332
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2333
2333
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -18957,7 +18957,31 @@ function getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit) {
|
|
|
18957
18957
|
}
|
|
18958
18958
|
function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {
|
|
18959
18959
|
const options = host.getCompilerOptions();
|
|
18960
|
-
|
|
18960
|
+
if (options.noEmitForJsFiles && isSourceFileJS(sourceFile))
|
|
18961
|
+
return false;
|
|
18962
|
+
if (sourceFile.isDeclarationFile)
|
|
18963
|
+
return false;
|
|
18964
|
+
if (host.isSourceFileFromExternalLibrary(sourceFile))
|
|
18965
|
+
return false;
|
|
18966
|
+
if (forceDtsEmit)
|
|
18967
|
+
return true;
|
|
18968
|
+
if (host.isSourceOfProjectReferenceRedirect(sourceFile.fileName))
|
|
18969
|
+
return false;
|
|
18970
|
+
if (!isJsonSourceFile(sourceFile))
|
|
18971
|
+
return true;
|
|
18972
|
+
if (host.getResolvedProjectReferenceToRedirect(sourceFile.fileName))
|
|
18973
|
+
return false;
|
|
18974
|
+
if (outFile(options))
|
|
18975
|
+
return true;
|
|
18976
|
+
if (!options.outDir)
|
|
18977
|
+
return false;
|
|
18978
|
+
if (options.rootDir || options.composite && options.configFilePath) {
|
|
18979
|
+
const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory());
|
|
18980
|
+
const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName);
|
|
18981
|
+
if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */)
|
|
18982
|
+
return false;
|
|
18983
|
+
}
|
|
18984
|
+
return true;
|
|
18961
18985
|
}
|
|
18962
18986
|
function getSourceFilePathInNewDir(fileName, host, newDirPath) {
|
|
18963
18987
|
return getSourceFilePathInNewDirWorker(fileName, newDirPath, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f));
|
|
@@ -136428,30 +136452,37 @@ __export(ts_NavigateTo_exports, {
|
|
|
136428
136452
|
});
|
|
136429
136453
|
|
|
136430
136454
|
// src/services/navigateTo.ts
|
|
136431
|
-
function getNavigateToItems(sourceFiles, checker, cancellationToken, searchValue, maxResultCount, excludeDtsFiles) {
|
|
136455
|
+
function getNavigateToItems(sourceFiles, checker, cancellationToken, searchValue, maxResultCount, excludeDtsFiles, excludeLibFiles) {
|
|
136432
136456
|
const patternMatcher = createPatternMatcher(searchValue);
|
|
136433
136457
|
if (!patternMatcher)
|
|
136434
136458
|
return emptyArray;
|
|
136435
136459
|
const rawItems = [];
|
|
136460
|
+
const singleCurrentFile = sourceFiles.length === 1 ? sourceFiles[0] : void 0;
|
|
136436
136461
|
for (const sourceFile of sourceFiles) {
|
|
136437
136462
|
cancellationToken.throwIfCancellationRequested();
|
|
136438
136463
|
if (excludeDtsFiles && sourceFile.isDeclarationFile) {
|
|
136439
136464
|
continue;
|
|
136440
136465
|
}
|
|
136466
|
+
if (shouldExcludeFile(sourceFile, !!excludeLibFiles, singleCurrentFile)) {
|
|
136467
|
+
continue;
|
|
136468
|
+
}
|
|
136441
136469
|
sourceFile.getNamedDeclarations().forEach((declarations, name) => {
|
|
136442
|
-
getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, sourceFile.fileName, rawItems);
|
|
136470
|
+
getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, sourceFile.fileName, !!excludeLibFiles, singleCurrentFile, rawItems);
|
|
136443
136471
|
});
|
|
136444
136472
|
}
|
|
136445
136473
|
rawItems.sort(compareNavigateToItems);
|
|
136446
136474
|
return (maxResultCount === void 0 ? rawItems : rawItems.slice(0, maxResultCount)).map(createNavigateToItem);
|
|
136447
136475
|
}
|
|
136448
|
-
function
|
|
136476
|
+
function shouldExcludeFile(file, excludeLibFiles, singleCurrentFile) {
|
|
136477
|
+
return file !== singleCurrentFile && excludeLibFiles && (isInsideNodeModules(file.path) || file.hasNoDefaultLib);
|
|
136478
|
+
}
|
|
136479
|
+
function getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, fileName, excludeLibFiles, singleCurrentFile, rawItems) {
|
|
136449
136480
|
const match = patternMatcher.getMatchForLastSegmentOfPattern(name);
|
|
136450
136481
|
if (!match) {
|
|
136451
136482
|
return;
|
|
136452
136483
|
}
|
|
136453
136484
|
for (const declaration of declarations) {
|
|
136454
|
-
if (!shouldKeepItem(declaration, checker))
|
|
136485
|
+
if (!shouldKeepItem(declaration, checker, excludeLibFiles, singleCurrentFile))
|
|
136455
136486
|
continue;
|
|
136456
136487
|
if (patternMatcher.patternContainsDots) {
|
|
136457
136488
|
const fullMatch = patternMatcher.getFullMatch(getContainers(declaration), name);
|
|
@@ -136463,14 +136494,15 @@ function getItemsFromNamedDeclaration(patternMatcher, name, declarations, checke
|
|
|
136463
136494
|
}
|
|
136464
136495
|
}
|
|
136465
136496
|
}
|
|
136466
|
-
function shouldKeepItem(declaration, checker) {
|
|
136497
|
+
function shouldKeepItem(declaration, checker, excludeLibFiles, singleCurrentFile) {
|
|
136498
|
+
var _a;
|
|
136467
136499
|
switch (declaration.kind) {
|
|
136468
136500
|
case 273 /* ImportClause */:
|
|
136469
136501
|
case 276 /* ImportSpecifier */:
|
|
136470
136502
|
case 271 /* ImportEqualsDeclaration */:
|
|
136471
136503
|
const importer = checker.getSymbolAtLocation(declaration.name);
|
|
136472
136504
|
const imported = checker.getAliasedSymbol(importer);
|
|
136473
|
-
return importer.escapedName !== imported.escapedName;
|
|
136505
|
+
return importer.escapedName !== imported.escapedName && !((_a = imported.declarations) == null ? void 0 : _a.every((d) => shouldExcludeFile(d.getSourceFile(), excludeLibFiles, singleCurrentFile)));
|
|
136474
136506
|
default:
|
|
136475
136507
|
return true;
|
|
136476
136508
|
}
|
|
@@ -144162,10 +144194,10 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h
|
|
|
144162
144194
|
synchronizeHostData();
|
|
144163
144195
|
return ts_FindAllReferences_exports.Core.getReferencesForFileName(fileName, program, program.getSourceFiles()).map(ts_FindAllReferences_exports.toReferenceEntry);
|
|
144164
144196
|
}
|
|
144165
|
-
function getNavigateToItems2(searchValue, maxResultCount, fileName, excludeDtsFiles = false) {
|
|
144197
|
+
function getNavigateToItems2(searchValue, maxResultCount, fileName, excludeDtsFiles = false, excludeLibFiles = false) {
|
|
144166
144198
|
synchronizeHostData();
|
|
144167
144199
|
const sourceFiles = fileName ? [getValidSourceFile(fileName)] : program.getSourceFiles();
|
|
144168
|
-
return getNavigateToItems(sourceFiles, program.getTypeChecker(), cancellationToken, searchValue, maxResultCount, excludeDtsFiles);
|
|
144200
|
+
return getNavigateToItems(sourceFiles, program.getTypeChecker(), cancellationToken, searchValue, maxResultCount, excludeDtsFiles, excludeLibFiles);
|
|
144169
144201
|
}
|
|
144170
144202
|
function getEmitOutput(fileName, emitOnlyDtsFiles, forceDtsEmit) {
|
|
144171
144203
|
synchronizeHostData();
|
|
@@ -184281,6 +184313,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
184281
184313
|
const { file, project } = this.getFileAndProject(args);
|
|
184282
184314
|
return [{ project, navigateToItems: project.getLanguageService().getNavigateToItems(searchValue, maxResultCount, file) }];
|
|
184283
184315
|
}
|
|
184316
|
+
const preferences = this.getHostPreferences();
|
|
184284
184317
|
const outputs = [];
|
|
184285
184318
|
const seenItems = /* @__PURE__ */ new Map();
|
|
184286
184319
|
if (!args.file && !projectFileName) {
|
|
@@ -184303,7 +184336,9 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
184303
184336
|
/*fileName*/
|
|
184304
184337
|
void 0,
|
|
184305
184338
|
/*excludeDts*/
|
|
184306
|
-
project.isNonTsProject()
|
|
184339
|
+
project.isNonTsProject(),
|
|
184340
|
+
/*excludeLibFiles*/
|
|
184341
|
+
preferences.excludeLibrarySymbolsInNavTo
|
|
184307
184342
|
);
|
|
184308
184343
|
const unseenItems = filter(projectItems, (item) => tryAddSeenItem(item) && !getMappedLocationForProject(documentSpanLocation(item), project));
|
|
184309
184344
|
if (unseenItems.length) {
|
package/lib/typescript.d.ts
CHANGED
|
@@ -2897,6 +2897,10 @@ declare namespace ts {
|
|
|
2897
2897
|
* Indicates whether {@link ReferencesResponseItem.lineText} is supported.
|
|
2898
2898
|
*/
|
|
2899
2899
|
readonly disableLineTextInReferences?: boolean;
|
|
2900
|
+
/**
|
|
2901
|
+
* Indicates whether to exclude standard library and node_modules file symbols from navTo results.
|
|
2902
|
+
*/
|
|
2903
|
+
readonly excludeLibrarySymbolsInNavTo?: boolean;
|
|
2900
2904
|
}
|
|
2901
2905
|
interface CompilerOptions {
|
|
2902
2906
|
allowJs?: boolean;
|
|
@@ -8640,6 +8644,7 @@ declare namespace ts {
|
|
|
8640
8644
|
readonly organizeImportsNumericCollation?: boolean;
|
|
8641
8645
|
readonly organizeImportsAccentCollation?: boolean;
|
|
8642
8646
|
readonly organizeImportsCaseFirst?: "upper" | "lower" | false;
|
|
8647
|
+
readonly excludeLibrarySymbolsInNavTo?: boolean;
|
|
8643
8648
|
}
|
|
8644
8649
|
/** Represents a bigint literal value without requiring bigint support */
|
|
8645
8650
|
interface PseudoBigInt {
|
|
@@ -10396,7 +10401,7 @@ declare namespace ts {
|
|
|
10396
10401
|
findReferences(fileName: string, position: number): ReferencedSymbol[] | undefined;
|
|
10397
10402
|
getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] | undefined;
|
|
10398
10403
|
getFileReferences(fileName: string): ReferenceEntry[];
|
|
10399
|
-
getNavigateToItems(searchValue: string, maxResultCount?: number, fileName?: string, excludeDtsFiles?: boolean): NavigateToItem[];
|
|
10404
|
+
getNavigateToItems(searchValue: string, maxResultCount?: number, fileName?: string, excludeDtsFiles?: boolean, excludeLibFiles?: boolean): NavigateToItem[];
|
|
10400
10405
|
getNavigationBarItems(fileName: string): NavigationBarItem[];
|
|
10401
10406
|
getNavigationTree(fileName: string): NavigationTree;
|
|
10402
10407
|
prepareCallHierarchy(fileName: string, position: number): CallHierarchyItem | CallHierarchyItem[] | undefined;
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.3";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230909`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -16262,7 +16262,31 @@ ${lanes.join("\n")}
|
|
|
16262
16262
|
}
|
|
16263
16263
|
function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {
|
|
16264
16264
|
const options = host.getCompilerOptions();
|
|
16265
|
-
|
|
16265
|
+
if (options.noEmitForJsFiles && isSourceFileJS(sourceFile))
|
|
16266
|
+
return false;
|
|
16267
|
+
if (sourceFile.isDeclarationFile)
|
|
16268
|
+
return false;
|
|
16269
|
+
if (host.isSourceFileFromExternalLibrary(sourceFile))
|
|
16270
|
+
return false;
|
|
16271
|
+
if (forceDtsEmit)
|
|
16272
|
+
return true;
|
|
16273
|
+
if (host.isSourceOfProjectReferenceRedirect(sourceFile.fileName))
|
|
16274
|
+
return false;
|
|
16275
|
+
if (!isJsonSourceFile(sourceFile))
|
|
16276
|
+
return true;
|
|
16277
|
+
if (host.getResolvedProjectReferenceToRedirect(sourceFile.fileName))
|
|
16278
|
+
return false;
|
|
16279
|
+
if (outFile(options))
|
|
16280
|
+
return true;
|
|
16281
|
+
if (!options.outDir)
|
|
16282
|
+
return false;
|
|
16283
|
+
if (options.rootDir || options.composite && options.configFilePath) {
|
|
16284
|
+
const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory());
|
|
16285
|
+
const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName);
|
|
16286
|
+
if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */)
|
|
16287
|
+
return false;
|
|
16288
|
+
}
|
|
16289
|
+
return true;
|
|
16266
16290
|
}
|
|
16267
16291
|
function getSourceFilePathInNewDir(fileName, host, newDirPath) {
|
|
16268
16292
|
return getSourceFilePathInNewDirWorker(fileName, newDirPath, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f));
|
|
@@ -134802,30 +134826,37 @@ ${lanes.join("\n")}
|
|
|
134802
134826
|
});
|
|
134803
134827
|
|
|
134804
134828
|
// src/services/navigateTo.ts
|
|
134805
|
-
function getNavigateToItems(sourceFiles, checker, cancellationToken, searchValue, maxResultCount, excludeDtsFiles) {
|
|
134829
|
+
function getNavigateToItems(sourceFiles, checker, cancellationToken, searchValue, maxResultCount, excludeDtsFiles, excludeLibFiles) {
|
|
134806
134830
|
const patternMatcher = createPatternMatcher(searchValue);
|
|
134807
134831
|
if (!patternMatcher)
|
|
134808
134832
|
return emptyArray;
|
|
134809
134833
|
const rawItems = [];
|
|
134834
|
+
const singleCurrentFile = sourceFiles.length === 1 ? sourceFiles[0] : void 0;
|
|
134810
134835
|
for (const sourceFile of sourceFiles) {
|
|
134811
134836
|
cancellationToken.throwIfCancellationRequested();
|
|
134812
134837
|
if (excludeDtsFiles && sourceFile.isDeclarationFile) {
|
|
134813
134838
|
continue;
|
|
134814
134839
|
}
|
|
134840
|
+
if (shouldExcludeFile(sourceFile, !!excludeLibFiles, singleCurrentFile)) {
|
|
134841
|
+
continue;
|
|
134842
|
+
}
|
|
134815
134843
|
sourceFile.getNamedDeclarations().forEach((declarations, name) => {
|
|
134816
|
-
getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, sourceFile.fileName, rawItems);
|
|
134844
|
+
getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, sourceFile.fileName, !!excludeLibFiles, singleCurrentFile, rawItems);
|
|
134817
134845
|
});
|
|
134818
134846
|
}
|
|
134819
134847
|
rawItems.sort(compareNavigateToItems);
|
|
134820
134848
|
return (maxResultCount === void 0 ? rawItems : rawItems.slice(0, maxResultCount)).map(createNavigateToItem);
|
|
134821
134849
|
}
|
|
134822
|
-
function
|
|
134850
|
+
function shouldExcludeFile(file, excludeLibFiles, singleCurrentFile) {
|
|
134851
|
+
return file !== singleCurrentFile && excludeLibFiles && (isInsideNodeModules(file.path) || file.hasNoDefaultLib);
|
|
134852
|
+
}
|
|
134853
|
+
function getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, fileName, excludeLibFiles, singleCurrentFile, rawItems) {
|
|
134823
134854
|
const match = patternMatcher.getMatchForLastSegmentOfPattern(name);
|
|
134824
134855
|
if (!match) {
|
|
134825
134856
|
return;
|
|
134826
134857
|
}
|
|
134827
134858
|
for (const declaration of declarations) {
|
|
134828
|
-
if (!shouldKeepItem(declaration, checker))
|
|
134859
|
+
if (!shouldKeepItem(declaration, checker, excludeLibFiles, singleCurrentFile))
|
|
134829
134860
|
continue;
|
|
134830
134861
|
if (patternMatcher.patternContainsDots) {
|
|
134831
134862
|
const fullMatch = patternMatcher.getFullMatch(getContainers(declaration), name);
|
|
@@ -134837,14 +134868,15 @@ ${lanes.join("\n")}
|
|
|
134837
134868
|
}
|
|
134838
134869
|
}
|
|
134839
134870
|
}
|
|
134840
|
-
function shouldKeepItem(declaration, checker) {
|
|
134871
|
+
function shouldKeepItem(declaration, checker, excludeLibFiles, singleCurrentFile) {
|
|
134872
|
+
var _a;
|
|
134841
134873
|
switch (declaration.kind) {
|
|
134842
134874
|
case 273 /* ImportClause */:
|
|
134843
134875
|
case 276 /* ImportSpecifier */:
|
|
134844
134876
|
case 271 /* ImportEqualsDeclaration */:
|
|
134845
134877
|
const importer = checker.getSymbolAtLocation(declaration.name);
|
|
134846
134878
|
const imported = checker.getAliasedSymbol(importer);
|
|
134847
|
-
return importer.escapedName !== imported.escapedName;
|
|
134879
|
+
return importer.escapedName !== imported.escapedName && !((_a = imported.declarations) == null ? void 0 : _a.every((d) => shouldExcludeFile(d.getSourceFile(), excludeLibFiles, singleCurrentFile)));
|
|
134848
134880
|
default:
|
|
134849
134881
|
return true;
|
|
134850
134882
|
}
|
|
@@ -142107,10 +142139,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
142107
142139
|
synchronizeHostData();
|
|
142108
142140
|
return ts_FindAllReferences_exports.Core.getReferencesForFileName(fileName, program, program.getSourceFiles()).map(ts_FindAllReferences_exports.toReferenceEntry);
|
|
142109
142141
|
}
|
|
142110
|
-
function getNavigateToItems2(searchValue, maxResultCount, fileName, excludeDtsFiles = false) {
|
|
142142
|
+
function getNavigateToItems2(searchValue, maxResultCount, fileName, excludeDtsFiles = false, excludeLibFiles = false) {
|
|
142111
142143
|
synchronizeHostData();
|
|
142112
142144
|
const sourceFiles = fileName ? [getValidSourceFile(fileName)] : program.getSourceFiles();
|
|
142113
|
-
return getNavigateToItems(sourceFiles, program.getTypeChecker(), cancellationToken, searchValue, maxResultCount, excludeDtsFiles);
|
|
142145
|
+
return getNavigateToItems(sourceFiles, program.getTypeChecker(), cancellationToken, searchValue, maxResultCount, excludeDtsFiles, excludeLibFiles);
|
|
142114
142146
|
}
|
|
142115
142147
|
function getEmitOutput(fileName, emitOnlyDtsFiles, forceDtsEmit) {
|
|
142116
142148
|
synchronizeHostData();
|
|
@@ -181696,6 +181728,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
181696
181728
|
const { file, project } = this.getFileAndProject(args);
|
|
181697
181729
|
return [{ project, navigateToItems: project.getLanguageService().getNavigateToItems(searchValue, maxResultCount, file) }];
|
|
181698
181730
|
}
|
|
181731
|
+
const preferences = this.getHostPreferences();
|
|
181699
181732
|
const outputs = [];
|
|
181700
181733
|
const seenItems = /* @__PURE__ */ new Map();
|
|
181701
181734
|
if (!args.file && !projectFileName) {
|
|
@@ -181718,7 +181751,9 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
181718
181751
|
/*fileName*/
|
|
181719
181752
|
void 0,
|
|
181720
181753
|
/*excludeDts*/
|
|
181721
|
-
project.isNonTsProject()
|
|
181754
|
+
project.isNonTsProject(),
|
|
181755
|
+
/*excludeLibFiles*/
|
|
181756
|
+
preferences.excludeLibrarySymbolsInNavTo
|
|
181722
181757
|
);
|
|
181723
181758
|
const unseenItems = filter(projectItems, (item) => tryAddSeenItem(item) && !getMappedLocationForProject(documentSpanLocation(item), project));
|
|
181724
181759
|
if (unseenItems.length) {
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.3";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230909`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.3.0-dev.
|
|
5
|
+
"version": "5.3.0-dev.20230909",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"node": "20.1.0",
|
|
113
113
|
"npm": "8.19.4"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "fdb2531c0b188937c057786c276f7b12e89ab48e"
|
|
116
116
|
}
|