CARVIEW |
Select Language
HTTP/2 200
date: Fri, 18 Jul 2025 20:43:27 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/TypeScript.git
etag: W/"4ae993dd1976a2b5986350fa37f46498"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=oAx64l2ulsL1NlxODMBzADOgbq69utmqj1aKTht3TVIiJRVMWTjLvlkAEEC3GlUfZr%2B%2F%2FvlAdE%2Ff7%2B9oOk3IJHfRspQbm0Xn8zg5Ia2qxAopsz5V1Kklweqjwr9U27sLPJ5eCSPNTDn2nnUnY63kVA1NkyYZOj%2BHbkXlGSOa2MrXZCtbtOxHFUo7Pdsyffhp8szlhCLbHpksiRUHIjadUargs%2F26jxVnVjQ%2BJ%2FFTW4uZP0As%2BDL45YMD4C3WPAw8dS7PhYtXNGctJNU8M6CDDA%3D%3D--CM%2BmOssRs%2FZ44707--XOqyqkgfgamSBt427KtnRA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1194722711.1752871404; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 20:43:24 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 20:43:24 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: EC4E:2DAD44:169D21:1D34D3:687AB1EC
Add a new compiler option `moduleSuffixes` to expand the node module … · microsoft/TypeScript@41aca7c · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/commandLineParser.ts
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/moduleNameResolver.ts
Copy file name to clipboardExpand all lines: src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts
Copy file name to clipboardExpand all lines: tests/baselines/reference/api/tsserverlibrary.d.ts
Copy file name to clipboardExpand all lines: tests/baselines/reference/api/typescript.d.ts
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 41aca7c
authored
Add a new compiler option
* Add moduleSuffixes compiler option and related tests. Update baselines for compiler options tests.
* Add a flag to the command-line parser which allows "list" params to preserve "falsy" values such as empty strings. Falsy values are normally stripped out.
* Add tests. Rework resolver logic to only run module-suffix code when needed.
* PR feedback
* Add test
* Remove unnecessary conditional.moduleSuffixes
to expand the node module resolver's search algorithm (#48189)1 parent c639d3a commit 41aca7cCopy full SHA for 41aca7c
File tree
Expand file treeCollapse file tree
105 files changed
+1728
-2
lines changedFilter options
- src
- compiler
- testRunner/unittests/config
- tests
- baselines/reference
- api
- showConfig/Shows tsconfig for single option/moduleSuffixes
- tsConfig
- Default initialized TSConfig
- Initialized TSConfig with advanced options
- Initialized TSConfig with boolean value compiler options
- Initialized TSConfig with enum value compiler options
- Initialized TSConfig with files options
- Initialized TSConfig with incorrect compiler option value
- Initialized TSConfig with incorrect compiler option
- Initialized TSConfig with list compiler options with enum value
- Initialized TSConfig with list compiler options
- tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit
- cases/compiler
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
105 files changed
+1728
-2
lines changedsrc/compiler/commandLineParser.ts
Copy file name to clipboardExpand all lines: src/compiler/commandLineParser.ts+14-2Lines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
884 | 884 |
| |
885 | 885 |
| |
886 | 886 |
| |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
887 | 899 |
| |
888 | 900 |
| |
889 | 901 |
| |
| |||
3192 | 3204 |
| |
3193 | 3205 |
| |
3194 | 3206 |
| |
3195 |
| - | |
| 3207 | + | |
3196 | 3208 |
| |
3197 | 3209 |
| |
3198 | 3210 |
| |
| |||
3233 | 3245 |
| |
3234 | 3246 |
| |
3235 | 3247 |
| |
3236 |
| - | |
| 3248 | + | |
3237 | 3249 |
| |
3238 | 3250 |
| |
3239 | 3251 |
| |
|
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5878 | 5878 |
| |
5879 | 5879 |
| |
5880 | 5880 |
| |
| 5881 | + | |
| 5882 | + | |
| 5883 | + | |
| 5884 | + | |
5881 | 5885 |
| |
5882 | 5886 |
| |
5883 | 5887 |
| |
|
src/compiler/moduleNameResolver.ts
Copy file name to clipboardExpand all lines: src/compiler/moduleNameResolver.ts+10Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1576 | 1576 |
| |
1577 | 1577 |
| |
1578 | 1578 |
| |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1579 | 1589 |
| |
1580 | 1590 |
| |
1581 | 1591 |
| |
|
+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6149 | 6149 |
| |
6150 | 6150 |
| |
6151 | 6151 |
| |
| 6152 | + | |
6152 | 6153 |
| |
6153 | 6154 |
| |
6154 | 6155 |
| |
| |||
6453 | 6454 |
| |
6454 | 6455 |
| |
6455 | 6456 |
| |
| 6457 | + | |
6456 | 6458 |
| |
6457 | 6459 |
| |
6458 | 6460 |
| |
|
src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts
Copy file name to clipboardExpand all lines: src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts+64Lines changed: 64 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
420 | 420 |
| |
421 | 421 |
| |
422 | 422 |
| |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
423 | 487 |
| |
424 | 488 |
| |
425 | 489 |
| |
|
tests/baselines/reference/api/tsserverlibrary.d.ts
Copy file name to clipboardExpand all lines: tests/baselines/reference/api/tsserverlibrary.d.ts+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2977 | 2977 |
| |
2978 | 2978 |
| |
2979 | 2979 |
| |
| 2980 | + | |
2980 | 2981 |
| |
2981 | 2982 |
| |
2982 | 2983 |
| |
|
tests/baselines/reference/api/typescript.d.ts
Copy file name to clipboardExpand all lines: tests/baselines/reference/api/typescript.d.ts+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2977 | 2977 |
| |
2978 | 2978 |
| |
2979 | 2979 |
| |
| 2980 | + | |
2980 | 2981 |
| |
2981 | 2982 |
| |
2982 | 2983 |
| |
|
tests/baselines/reference/moduleResolutionWithSuffixes_empty.js
Copy file name to clipboard+17Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + |
tests/baselines/reference/moduleResolutionWithSuffixes_empty.symbols
Copy file name to clipboard+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + |
tests/baselines/reference/moduleResolutionWithSuffixes_empty.trace.json
Copy file name to clipboard+7Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + |
You can’t perform that action at this time.
0 commit comments