@typescript-deploys/pr-build 5.3.0-pr-55601-8 → 5.3.0-pr-55445-6

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/SECURITY.md CHANGED
@@ -1,18 +1,18 @@
1
- <!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->
1
+ <!-- BEGIN MICROSOFT SECURITY.MD V0.0.9 BLOCK -->
2
2
 
3
3
  ## Security
4
4
 
5
- Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
5
+ Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin).
6
6
 
7
- If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
7
+ If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below.
8
8
 
9
9
  ## Reporting Security Issues
10
10
 
11
11
  **Please do not report security vulnerabilities through public GitHub issues.**
12
12
 
13
- Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
13
+ Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report).
14
14
 
15
- If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
15
+ If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp).
16
16
 
17
17
  You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
18
18
 
@@ -28,7 +28,7 @@ Please include the requested information listed below (as much as you can provid
28
28
 
29
29
  This information will help us triage your report more quickly.
30
30
 
31
- If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
31
+ If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs.
32
32
 
33
33
  ## Preferred Languages
34
34
 
@@ -36,6 +36,6 @@ We prefer all communications to be in English.
36
36
 
37
37
  ## Policy
38
38
 
39
- Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
39
+ Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd).
40
40
 
41
41
  <!-- END MICROSOFT SECURITY.MD BLOCK -->
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-insiders.20230902`;
21
+ var version = `${versionMajorMinor}.0-insiders.20230907`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -37975,7 +37975,6 @@ function realPath(path, host, traceEnabled) {
37975
37975
  if (traceEnabled) {
37976
37976
  trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path, real);
37977
37977
  }
37978
- Debug.assert(host.fileExists(real), `${path} linked to nonexistent file ${real}`);
37979
37978
  return real;
37980
37979
  }
37981
37980
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
@@ -72779,10 +72778,6 @@ function createTypeChecker(host) {
72779
72778
  const nextTypes = [];
72780
72779
  const isAsync = (getFunctionFlags(func) & 2 /* Async */) !== 0;
72781
72780
  forEachYieldExpression(func.body, (yieldExpression) => {
72782
- const statement = findAncestor(yieldExpression, isStatement);
72783
- if (canHaveFlowNode(statement) && !statement.flowNode && !compilerOptions.allowUnreachableCode) {
72784
- return;
72785
- }
72786
72781
  const yieldExpressionType = yieldExpression.expression ? checkExpression(yieldExpression.expression, checkMode) : undefinedWideningType;
72787
72782
  pushIfUnique(yieldTypes, getYieldedTypeOfYieldExpression(yieldExpression, yieldExpressionType, anyType, isAsync));
72788
72783
  let nextType;
@@ -72873,9 +72868,6 @@ function createTypeChecker(host) {
72873
72868
  hasReturnOfTypeNever = true;
72874
72869
  return;
72875
72870
  }
72876
- if (!returnStatement.flowNode && !compilerOptions.allowUnreachableCode) {
72877
- return;
72878
- }
72879
72871
  let type = checkExpressionCached(expr, checkMode && checkMode & ~8 /* SkipGenericFunctions */);
72880
72872
  if (functionFlags & 2 /* Async */) {
72881
72873
  type = unwrapAwaitedType(checkAwaitedType(
@@ -81557,7 +81549,7 @@ function createTypeChecker(host) {
81557
81549
  return factory.createToken(133 /* AnyKeyword */);
81558
81550
  }
81559
81551
  const symbol = getSymbolOfDeclaration(declaration);
81560
- let type = symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */)) ? getWidenedLiteralType(getTypeOfSymbol(symbol)) : errorType;
81552
+ let type = symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */)) ? getTypeOfSymbol(symbol) : errorType;
81561
81553
  if (type.flags & 8192 /* UniqueESSymbol */ && type.symbol === symbol) {
81562
81554
  flags |= 1048576 /* AllowUniqueESSymbolType */;
81563
81555
  }
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-insiders.20230902`;
2330
+ var version = `${versionMajorMinor}.0-insiders.20230907`;
2331
2331
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2332
2332
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2333
2333
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -42494,7 +42494,6 @@ function realPath(path, host, traceEnabled) {
42494
42494
  if (traceEnabled) {
42495
42495
  trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path, real);
42496
42496
  }
42497
- Debug.assert(host.fileExists(real), `${path} linked to nonexistent file ${real}`);
42498
42497
  return real;
42499
42498
  }
42500
42499
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
@@ -77481,10 +77480,6 @@ function createTypeChecker(host) {
77481
77480
  const nextTypes = [];
77482
77481
  const isAsync = (getFunctionFlags(func) & 2 /* Async */) !== 0;
77483
77482
  forEachYieldExpression(func.body, (yieldExpression) => {
77484
- const statement = findAncestor(yieldExpression, isStatement);
77485
- if (canHaveFlowNode(statement) && !statement.flowNode && !compilerOptions.allowUnreachableCode) {
77486
- return;
77487
- }
77488
77483
  const yieldExpressionType = yieldExpression.expression ? checkExpression(yieldExpression.expression, checkMode) : undefinedWideningType;
77489
77484
  pushIfUnique(yieldTypes, getYieldedTypeOfYieldExpression(yieldExpression, yieldExpressionType, anyType, isAsync));
77490
77485
  let nextType;
@@ -77575,9 +77570,6 @@ function createTypeChecker(host) {
77575
77570
  hasReturnOfTypeNever = true;
77576
77571
  return;
77577
77572
  }
77578
- if (!returnStatement.flowNode && !compilerOptions.allowUnreachableCode) {
77579
- return;
77580
- }
77581
77573
  let type = checkExpressionCached(expr, checkMode && checkMode & ~8 /* SkipGenericFunctions */);
77582
77574
  if (functionFlags & 2 /* Async */) {
77583
77575
  type = unwrapAwaitedType(checkAwaitedType(
@@ -86259,7 +86251,7 @@ function createTypeChecker(host) {
86259
86251
  return factory.createToken(133 /* AnyKeyword */);
86260
86252
  }
86261
86253
  const symbol = getSymbolOfDeclaration(declaration);
86262
- let type = symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */)) ? getWidenedLiteralType(getTypeOfSymbol(symbol)) : errorType;
86254
+ let type = symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */)) ? getTypeOfSymbol(symbol) : errorType;
86263
86255
  if (type.flags & 8192 /* UniqueESSymbol */ && type.symbol === symbol) {
86264
86256
  flags |= 1048576 /* AllowUniqueESSymbolType */;
86265
86257
  }
@@ -136436,30 +136428,37 @@ __export(ts_NavigateTo_exports, {
136436
136428
  });
136437
136429
 
136438
136430
  // src/services/navigateTo.ts
136439
- function getNavigateToItems(sourceFiles, checker, cancellationToken, searchValue, maxResultCount, excludeDtsFiles) {
136431
+ function getNavigateToItems(sourceFiles, checker, cancellationToken, searchValue, maxResultCount, excludeDtsFiles, excludeLibFiles) {
136440
136432
  const patternMatcher = createPatternMatcher(searchValue);
136441
136433
  if (!patternMatcher)
136442
136434
  return emptyArray;
136443
136435
  const rawItems = [];
136436
+ const singleCurrentFile = sourceFiles.length === 1 ? sourceFiles[0] : void 0;
136444
136437
  for (const sourceFile of sourceFiles) {
136445
136438
  cancellationToken.throwIfCancellationRequested();
136446
136439
  if (excludeDtsFiles && sourceFile.isDeclarationFile) {
136447
136440
  continue;
136448
136441
  }
136442
+ if (shouldExcludeFile(sourceFile, !!excludeLibFiles, singleCurrentFile)) {
136443
+ continue;
136444
+ }
136449
136445
  sourceFile.getNamedDeclarations().forEach((declarations, name) => {
136450
- getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, sourceFile.fileName, rawItems);
136446
+ getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, sourceFile.fileName, !!excludeLibFiles, singleCurrentFile, rawItems);
136451
136447
  });
136452
136448
  }
136453
136449
  rawItems.sort(compareNavigateToItems);
136454
136450
  return (maxResultCount === void 0 ? rawItems : rawItems.slice(0, maxResultCount)).map(createNavigateToItem);
136455
136451
  }
136456
- function getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, fileName, rawItems) {
136452
+ function shouldExcludeFile(file, excludeLibFiles, singleCurrentFile) {
136453
+ return file !== singleCurrentFile && excludeLibFiles && (isInsideNodeModules(file.path) || file.hasNoDefaultLib);
136454
+ }
136455
+ function getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, fileName, excludeLibFiles, singleCurrentFile, rawItems) {
136457
136456
  const match = patternMatcher.getMatchForLastSegmentOfPattern(name);
136458
136457
  if (!match) {
136459
136458
  return;
136460
136459
  }
136461
136460
  for (const declaration of declarations) {
136462
- if (!shouldKeepItem(declaration, checker))
136461
+ if (!shouldKeepItem(declaration, checker, excludeLibFiles, singleCurrentFile))
136463
136462
  continue;
136464
136463
  if (patternMatcher.patternContainsDots) {
136465
136464
  const fullMatch = patternMatcher.getFullMatch(getContainers(declaration), name);
@@ -136471,14 +136470,15 @@ function getItemsFromNamedDeclaration(patternMatcher, name, declarations, checke
136471
136470
  }
136472
136471
  }
136473
136472
  }
136474
- function shouldKeepItem(declaration, checker) {
136473
+ function shouldKeepItem(declaration, checker, excludeLibFiles, singleCurrentFile) {
136474
+ var _a;
136475
136475
  switch (declaration.kind) {
136476
136476
  case 273 /* ImportClause */:
136477
136477
  case 276 /* ImportSpecifier */:
136478
136478
  case 271 /* ImportEqualsDeclaration */:
136479
136479
  const importer = checker.getSymbolAtLocation(declaration.name);
136480
136480
  const imported = checker.getAliasedSymbol(importer);
136481
- return importer.escapedName !== imported.escapedName;
136481
+ return importer.escapedName !== imported.escapedName && !((_a = imported.declarations) == null ? void 0 : _a.every((d) => shouldExcludeFile(d.getSourceFile(), excludeLibFiles, singleCurrentFile)));
136482
136482
  default:
136483
136483
  return true;
136484
136484
  }
@@ -144170,10 +144170,10 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h
144170
144170
  synchronizeHostData();
144171
144171
  return ts_FindAllReferences_exports.Core.getReferencesForFileName(fileName, program, program.getSourceFiles()).map(ts_FindAllReferences_exports.toReferenceEntry);
144172
144172
  }
144173
- function getNavigateToItems2(searchValue, maxResultCount, fileName, excludeDtsFiles = false) {
144173
+ function getNavigateToItems2(searchValue, maxResultCount, fileName, excludeDtsFiles = false, excludeLibFiles = false) {
144174
144174
  synchronizeHostData();
144175
144175
  const sourceFiles = fileName ? [getValidSourceFile(fileName)] : program.getSourceFiles();
144176
- return getNavigateToItems(sourceFiles, program.getTypeChecker(), cancellationToken, searchValue, maxResultCount, excludeDtsFiles);
144176
+ return getNavigateToItems(sourceFiles, program.getTypeChecker(), cancellationToken, searchValue, maxResultCount, excludeDtsFiles, excludeLibFiles);
144177
144177
  }
144178
144178
  function getEmitOutput(fileName, emitOnlyDtsFiles, forceDtsEmit) {
144179
144179
  synchronizeHostData();
@@ -184289,6 +184289,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
184289
184289
  const { file, project } = this.getFileAndProject(args);
184290
184290
  return [{ project, navigateToItems: project.getLanguageService().getNavigateToItems(searchValue, maxResultCount, file) }];
184291
184291
  }
184292
+ const preferences = this.getHostPreferences();
184292
184293
  const outputs = [];
184293
184294
  const seenItems = /* @__PURE__ */ new Map();
184294
184295
  if (!args.file && !projectFileName) {
@@ -184311,7 +184312,9 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
184311
184312
  /*fileName*/
184312
184313
  void 0,
184313
184314
  /*excludeDts*/
184314
- project.isNonTsProject()
184315
+ project.isNonTsProject(),
184316
+ /*excludeLibFiles*/
184317
+ preferences.excludeLibrarySymbolsInNavTo
184315
184318
  );
184316
184319
  const unseenItems = filter(projectItems, (item) => tryAddSeenItem(item) && !getMappedLocationForProject(documentSpanLocation(item), project));
184317
184320
  if (unseenItems.length) {
@@ -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-insiders.20230902`;
38
+ version = `${versionMajorMinor}.0-insiders.20230907`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -40340,7 +40340,6 @@ ${lanes.join("\n")}
40340
40340
  if (traceEnabled) {
40341
40341
  trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path, real);
40342
40342
  }
40343
- Debug.assert(host.fileExists(real), `${path} linked to nonexistent file ${real}`);
40344
40343
  return real;
40345
40344
  }
40346
40345
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
@@ -75248,10 +75247,6 @@ ${lanes.join("\n")}
75248
75247
  const nextTypes = [];
75249
75248
  const isAsync = (getFunctionFlags(func) & 2 /* Async */) !== 0;
75250
75249
  forEachYieldExpression(func.body, (yieldExpression) => {
75251
- const statement = findAncestor(yieldExpression, isStatement);
75252
- if (canHaveFlowNode(statement) && !statement.flowNode && !compilerOptions.allowUnreachableCode) {
75253
- return;
75254
- }
75255
75250
  const yieldExpressionType = yieldExpression.expression ? checkExpression(yieldExpression.expression, checkMode) : undefinedWideningType;
75256
75251
  pushIfUnique(yieldTypes, getYieldedTypeOfYieldExpression(yieldExpression, yieldExpressionType, anyType, isAsync));
75257
75252
  let nextType;
@@ -75342,9 +75337,6 @@ ${lanes.join("\n")}
75342
75337
  hasReturnOfTypeNever = true;
75343
75338
  return;
75344
75339
  }
75345
- if (!returnStatement.flowNode && !compilerOptions.allowUnreachableCode) {
75346
- return;
75347
- }
75348
75340
  let type = checkExpressionCached(expr, checkMode && checkMode & ~8 /* SkipGenericFunctions */);
75349
75341
  if (functionFlags & 2 /* Async */) {
75350
75342
  type = unwrapAwaitedType(checkAwaitedType(
@@ -84026,7 +84018,7 @@ ${lanes.join("\n")}
84026
84018
  return factory.createToken(133 /* AnyKeyword */);
84027
84019
  }
84028
84020
  const symbol = getSymbolOfDeclaration(declaration);
84029
- let type = symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */)) ? getWidenedLiteralType(getTypeOfSymbol(symbol)) : errorType;
84021
+ let type = symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */)) ? getTypeOfSymbol(symbol) : errorType;
84030
84022
  if (type.flags & 8192 /* UniqueESSymbol */ && type.symbol === symbol) {
84031
84023
  flags |= 1048576 /* AllowUniqueESSymbolType */;
84032
84024
  }
@@ -134810,30 +134802,37 @@ ${lanes.join("\n")}
134810
134802
  });
134811
134803
 
134812
134804
  // src/services/navigateTo.ts
134813
- function getNavigateToItems(sourceFiles, checker, cancellationToken, searchValue, maxResultCount, excludeDtsFiles) {
134805
+ function getNavigateToItems(sourceFiles, checker, cancellationToken, searchValue, maxResultCount, excludeDtsFiles, excludeLibFiles) {
134814
134806
  const patternMatcher = createPatternMatcher(searchValue);
134815
134807
  if (!patternMatcher)
134816
134808
  return emptyArray;
134817
134809
  const rawItems = [];
134810
+ const singleCurrentFile = sourceFiles.length === 1 ? sourceFiles[0] : void 0;
134818
134811
  for (const sourceFile of sourceFiles) {
134819
134812
  cancellationToken.throwIfCancellationRequested();
134820
134813
  if (excludeDtsFiles && sourceFile.isDeclarationFile) {
134821
134814
  continue;
134822
134815
  }
134816
+ if (shouldExcludeFile(sourceFile, !!excludeLibFiles, singleCurrentFile)) {
134817
+ continue;
134818
+ }
134823
134819
  sourceFile.getNamedDeclarations().forEach((declarations, name) => {
134824
- getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, sourceFile.fileName, rawItems);
134820
+ getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, sourceFile.fileName, !!excludeLibFiles, singleCurrentFile, rawItems);
134825
134821
  });
134826
134822
  }
134827
134823
  rawItems.sort(compareNavigateToItems);
134828
134824
  return (maxResultCount === void 0 ? rawItems : rawItems.slice(0, maxResultCount)).map(createNavigateToItem);
134829
134825
  }
134830
- function getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, fileName, rawItems) {
134826
+ function shouldExcludeFile(file, excludeLibFiles, singleCurrentFile) {
134827
+ return file !== singleCurrentFile && excludeLibFiles && (isInsideNodeModules(file.path) || file.hasNoDefaultLib);
134828
+ }
134829
+ function getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, fileName, excludeLibFiles, singleCurrentFile, rawItems) {
134831
134830
  const match = patternMatcher.getMatchForLastSegmentOfPattern(name);
134832
134831
  if (!match) {
134833
134832
  return;
134834
134833
  }
134835
134834
  for (const declaration of declarations) {
134836
- if (!shouldKeepItem(declaration, checker))
134835
+ if (!shouldKeepItem(declaration, checker, excludeLibFiles, singleCurrentFile))
134837
134836
  continue;
134838
134837
  if (patternMatcher.patternContainsDots) {
134839
134838
  const fullMatch = patternMatcher.getFullMatch(getContainers(declaration), name);
@@ -134845,14 +134844,15 @@ ${lanes.join("\n")}
134845
134844
  }
134846
134845
  }
134847
134846
  }
134848
- function shouldKeepItem(declaration, checker) {
134847
+ function shouldKeepItem(declaration, checker, excludeLibFiles, singleCurrentFile) {
134848
+ var _a;
134849
134849
  switch (declaration.kind) {
134850
134850
  case 273 /* ImportClause */:
134851
134851
  case 276 /* ImportSpecifier */:
134852
134852
  case 271 /* ImportEqualsDeclaration */:
134853
134853
  const importer = checker.getSymbolAtLocation(declaration.name);
134854
134854
  const imported = checker.getAliasedSymbol(importer);
134855
- return importer.escapedName !== imported.escapedName;
134855
+ return importer.escapedName !== imported.escapedName && !((_a = imported.declarations) == null ? void 0 : _a.every((d) => shouldExcludeFile(d.getSourceFile(), excludeLibFiles, singleCurrentFile)));
134856
134856
  default:
134857
134857
  return true;
134858
134858
  }
@@ -142115,10 +142115,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
142115
142115
  synchronizeHostData();
142116
142116
  return ts_FindAllReferences_exports.Core.getReferencesForFileName(fileName, program, program.getSourceFiles()).map(ts_FindAllReferences_exports.toReferenceEntry);
142117
142117
  }
142118
- function getNavigateToItems2(searchValue, maxResultCount, fileName, excludeDtsFiles = false) {
142118
+ function getNavigateToItems2(searchValue, maxResultCount, fileName, excludeDtsFiles = false, excludeLibFiles = false) {
142119
142119
  synchronizeHostData();
142120
142120
  const sourceFiles = fileName ? [getValidSourceFile(fileName)] : program.getSourceFiles();
142121
- return getNavigateToItems(sourceFiles, program.getTypeChecker(), cancellationToken, searchValue, maxResultCount, excludeDtsFiles);
142121
+ return getNavigateToItems(sourceFiles, program.getTypeChecker(), cancellationToken, searchValue, maxResultCount, excludeDtsFiles, excludeLibFiles);
142122
142122
  }
142123
142123
  function getEmitOutput(fileName, emitOnlyDtsFiles, forceDtsEmit) {
142124
142124
  synchronizeHostData();
@@ -181704,6 +181704,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
181704
181704
  const { file, project } = this.getFileAndProject(args);
181705
181705
  return [{ project, navigateToItems: project.getLanguageService().getNavigateToItems(searchValue, maxResultCount, file) }];
181706
181706
  }
181707
+ const preferences = this.getHostPreferences();
181707
181708
  const outputs = [];
181708
181709
  const seenItems = /* @__PURE__ */ new Map();
181709
181710
  if (!args.file && !projectFileName) {
@@ -181726,7 +181727,9 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
181726
181727
  /*fileName*/
181727
181728
  void 0,
181728
181729
  /*excludeDts*/
181729
- project.isNonTsProject()
181730
+ project.isNonTsProject(),
181731
+ /*excludeLibFiles*/
181732
+ preferences.excludeLibrarySymbolsInNavTo
181730
181733
  );
181731
181734
  const unseenItems = filter(projectItems, (item) => tryAddSeenItem(item) && !getMappedLocationForProject(documentSpanLocation(item), project));
181732
181735
  if (unseenItems.length) {
@@ -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-insiders.20230902`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230907`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -27887,7 +27887,6 @@ function realPath(path2, host, traceEnabled) {
27887
27887
  if (traceEnabled) {
27888
27888
  trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path2, real);
27889
27889
  }
27890
- Debug.assert(host.fileExists(real), `${path2} linked to nonexistent file ${real}`);
27891
27890
  return real;
27892
27891
  }
27893
27892
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.3.0-pr-55601-8",
5
+ "version": "5.3.0-pr-55445-6",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -113,5 +113,5 @@
113
113
  "node": "20.1.0",
114
114
  "npm": "8.19.4"
115
115
  },
116
- "gitHead": "e8398b84acc121aaea2e4e75ffb98d09d69cd0d9"
116
+ "gitHead": "25f814a252ef2ed436764229b6562d292b98cfc9"
117
117
  }