Skip to content

Initial import of the vscode semantic highlight code #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 671 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
671 commits
Select commit Hold shift + click to select a range
87fd182
Merge pull request #39537 from microsoft/fix/helpers/use-hasownproper…
rbuckton Jul 10, 2020
0d38f09
PR comments and minor bugs
Jul 11, 2020
31f75fe
fix(types/mocha): change deprecated Mocha types (#39573)
a-tarasyuk Jul 13, 2020
629dd64
Fix typo (#39585)
knsarsaba Jul 13, 2020
583bd92
Don’t create expando declarations on alias symbols (#39558)
andrewbranch Jul 13, 2020
bcb4a49
Fix typo (#39562)
Norviah Jul 13, 2020
2c08aff
Merge pull request #39264 from microsoft/migrateMapsAndSets
rbuckton Jul 13, 2020
5ad8532
Merge branch 'master' into fix37113
rbuckton Jul 13, 2020
1e7d089
Merge pull request #39490 from microsoft/fix37113
rbuckton Jul 13, 2020
635ee24
Merge remote-tracking branch 'upstream/master' into AddToggleCommentF…
Jul 13, 2020
3c91133
Fix find-all-references on undefined (#39591)
andrewbranch Jul 14, 2020
6279f98
Merge pull request #37029 from armanio123/AddToggleCommentFeature
armanio123 Jul 14, 2020
1702238
Add refactor convertToOptionalChainExpression (#39135)
jessetrinity Jul 14, 2020
f68a839
Load ETW module from a specified path (#39599)
mrcrane Jul 14, 2020
98ab3a7
Fix tsc --watch crash on module augmentations when module resolution …
andrewbranch Jul 14, 2020
ececf3b
fix(33511): show jsx namespace default import quick fix if it does no…
a-tarasyuk Jul 14, 2020
ef9affe
Use jsxFragmentFactory entity name for factory name lookup from check…
weswigham Jul 15, 2020
dd2fc86
Don’t give all instantiated signatures in JS strict arity (#39606)
andrewbranch Jul 15, 2020
7b72875
Fix incorrect deprecated mark (#39611)
Kingwl Jul 15, 2020
fcd4fcb
Use combined node flags (#39403)
Kingwl Jul 15, 2020
f2c5643
Flag mapped types with circular property types and do not attempt to …
weswigham Jul 15, 2020
37e6e27
Do not resolve require calls in typescript files even if it contains …
sheetalkamat Jul 15, 2020
b6f09cc
Better error message for unparenthesized function/constructor type no…
uhyo Jul 15, 2020
db79030
Support variadic tuple inference from trailing optional to non-option…
ahejlsberg Jul 16, 2020
6430211
fix(38868): add separator for type parameters (#39621)
a-tarasyuk Jul 16, 2020
c07c885
fix(39515): fix getting a position for an element before the line bre…
a-tarasyuk Jul 16, 2020
667ba74
Resolve only relative references in open files on syntax server (#39476)
sheetalkamat Jul 16, 2020
1d671c3
Add twoslash repros to the compiler (#39628)
Jul 16, 2020
4e24b1b
fix(39373): add diagnostic message about using a private name for cla…
a-tarasyuk Jul 17, 2020
5519027
Minor fixes to consmetic build issues in user test PR script
weswigham Jul 17, 2020
191f4f6
Explicitly add dependency on node to compiler tsconfig, remove es6+ s…
weswigham Jul 17, 2020
f19c610
Adds latest version of TypeScript to the repro code (#39641)
Jul 17, 2020
92f41c8
tests(39373): add addition tests (#39631)
a-tarasyuk Jul 17, 2020
3b22339
Triple slash references must resolve against the resolved file name (…
sheetalkamat Jul 17, 2020
5ae4b5d
Properly preserve numeric string named properties in declaration file…
ahejlsberg Jul 20, 2020
94d6b45
Consistent errors on circular base types (#39675)
ahejlsberg Jul 21, 2020
ea75b00
LEGO: check in for master to temporary branch.
csigs Jul 21, 2020
56865f7
LEGO: Merge pull request 39682
csigs Jul 21, 2020
d897646
fix 39453 (#39579)
ShuiRuTian Jul 21, 2020
5484687
switch typeof any could be checked for unreachable (#39389)
ShuiRuTian Jul 21, 2020
e92afac
Add disableReferencedProjectLoad to stop loading child projects to al…
sheetalkamat Jul 21, 2020
34adaaf
Support loading of child project if found project is not pure solutio…
sheetalkamat Jul 21, 2020
294a040
not escape unicode char for import path string. (#39463)
ShuiRuTian Jul 22, 2020
8a05707
Fix 31995: make cached key more precise to avoid returning wrong cach…
ShuiRuTian Jul 22, 2020
e76d172
Fix 38219: signature helper works for optional function condition. (#…
ShuiRuTian Jul 22, 2020
b834096
Fix emit/formatting issues in refactors (#39506)
andrewbranch Jul 22, 2020
312a6f0
Add a fastpath for comparing common mapped types like Pick which avoi…
weswigham Jul 22, 2020
ec33814
Make AutoImportProviderProject work with symlinked monorepos (#39679)
andrewbranch Jul 22, 2020
7c5ed71
LEGO: check in for master to temporary branch.
csigs Jul 22, 2020
2fb0436
LEGO: Merge pull request 39706
csigs Jul 22, 2020
73b268e
Use new octokit API method in review request script (#39719)
weswigham Jul 23, 2020
823b69a
Fixes slow nav to issue by keeping project with result. (#39721)
sheetalkamat Jul 24, 2020
c5d21e7
Lower priority for speculative variadic tuple inferences (#39723)
ahejlsberg Jul 24, 2020
48e58f4
Handle unresolved baseType when trying to get completions for static …
sheetalkamat Jul 24, 2020
195fad2
Reduce unnecessary error computation
amcasey Jul 27, 2020
6318cc6
Move off deprecated mocha types
amcasey Jul 27, 2020
5b2b70b
Merge pull request #39774 from amcasey/Mocha
amcasey Jul 27, 2020
68ba670
Add contextual type for generator return type (#39772)
andrewbranch Jul 27, 2020
1f1521c
Undo accidental change from #39772 (#39779)
andrewbranch Jul 27, 2020
79e2ed2
Merge pull request #39776 from amcasey/OverloadErrors
amcasey Jul 28, 2020
8f04f91
Add diagnostic info to getNameForExportedSymbol crash (#39790)
andrewbranch Jul 28, 2020
03b6580
Make @enum,@this tag construction stricter (#39791)
sandersn Jul 28, 2020
f2d1531
Fix location for duplicate function implementation errors
elibarzilay Jul 29, 2020
9b2d487
Fix this-parameter emit for JSDocFunction types (#39814)
sandersn Jul 29, 2020
b9db641
Allow assignments to a narrowable reference to be considered narrowable
rbuckton Jul 29, 2020
bae111f
fix(39245): change related diagnostic for missing rest parameter argu…
a-tarasyuk Jul 30, 2020
4c90ba9
Temporary revert to compare user test baselines
rbuckton Jul 30, 2020
21963ce
Restore reference change
rbuckton Jul 30, 2020
b601487
Updates Uint8ArrayConstructor to match MDN documentation. (#38449)
MicahZoltu Jul 30, 2020
a320e1b
Make `getLocalSymbolForExportDefault` look harder for an export
elibarzilay Jul 29, 2020
bffe354
Issue35876: Give better error message when Classic Module Resolution …
mshivaku99 Jul 30, 2020
faf128d
Fix formatting scanner on JSX text that looks like trivia (#39718)
Jul 30, 2020
315b5f4
PR Feedback
rbuckton Jul 30, 2020
7119e2b
The iteration type of overloaded iterator signatures derives from the…
andrewbranch Jul 30, 2020
32934a9
Merge pull request #39824 from microsoft/fix35484
rbuckton Jul 30, 2020
d3877d2
Redo in narrowing for intersections (#39637)
sandersn Jul 30, 2020
1b97d03
Update user baselines (#39502)
Jul 31, 2020
9498978
In JS declaration emit, move imports painted in nested contexts to th…
weswigham Aug 1, 2020
86a87c4
Limit auto import provider project size (#39855)
andrewbranch Aug 3, 2020
aee78ac
Add separate flag serverMode for server mode (#39735)
sheetalkamat Aug 3, 2020
b092fb3
LEGO: check in for master to temporary branch.
csigs Aug 3, 2020
7e93035
LEGO: Merge pull request 39868
csigs Aug 3, 2020
c05078e
Update user baselines
typescript-bot Aug 3, 2020
d7fb2b6
LEGO: check in for master to temporary branch.
csigs Aug 3, 2020
b28a504
LEGO: Merge pull request 39880
csigs Aug 3, 2020
ff2ff98
Update user baselines (#39857)
sandersn Aug 3, 2020
065b83b
Make numeric Array constructors take ArrayLikeBuffer union
sandersn Aug 3, 2020
dec871b
LEGO: check in for master to temporary branch.
csigs Aug 3, 2020
1ed00c8
LEGO: Merge pull request 39891
csigs Aug 3, 2020
773be79
Merge pull request #39892 from microsoft/make-uint8-constructor-backw…
sandersn Aug 3, 2020
26d228c
LEGO: check in for master to temporary branch.
csigs Aug 4, 2020
ed55e0c
LEGO: Merge pull request 39896
csigs Aug 4, 2020
d985e68
Bump version to 4.1. (#39894)
DanielRosenwasser Aug 4, 2020
817dc52
Add an 'Update LKG' action (#39897)
DanielRosenwasser Aug 4, 2020
2106b07
Rename and use the default ref instead of having a `workflow_dispatch…
DanielRosenwasser Aug 4, 2020
3d9eb73
LEGO: check in for master to temporary branch.
csigs Aug 4, 2020
6247364
LEGO: Merge pull request 39904
csigs Aug 4, 2020
bcccae2
Handle the fact that noResolveResolution resolution is reused (#39889)
sheetalkamat Aug 4, 2020
c96bad2
LEGO: check in for master to temporary branch.
csigs Aug 4, 2020
4c7ea8e
LEGO: Merge pull request 39913
csigs Aug 4, 2020
c9f05af
Merge pull request #37891 from Neonit/jsDocIndentationPreservation
sandersn Aug 4, 2020
7d11da1
LEGO: check in for master to temporary branch.
csigs Aug 5, 2020
5843851
LEGO: Merge pull request 39917
csigs Aug 5, 2020
a548e4f
LEGO: check in for master to temporary branch.
csigs Aug 5, 2020
2ebdf9f
LEGO: Merge pull request 39921
csigs Aug 5, 2020
7f4e1b6
Find tagless JSDoc as preceding token (#39912)
andrewbranch Aug 5, 2020
da5ff57
Renames in servermode per feedback (#39883)
sheetalkamat Aug 5, 2020
9ad3b47
LEGO: check in for master to temporary branch.
csigs Aug 5, 2020
e9f82e4
LEGO: Merge pull request 39927
csigs Aug 5, 2020
87a3b42
Handle empty package.json files (#39937)
andrewbranch Aug 6, 2020
fca9f45
Add missing 'importName' for private field helpers (#39932)
rbuckton Aug 6, 2020
91a7c35
Insert auto imports after header comment (#39924)
jessetrinity Aug 6, 2020
dd09e87
Update CI node versions (#39940)
sandersn Aug 6, 2020
3328fdb
Use isUncalledFunctionReference for aliases too (#39950)
sandersn Aug 7, 2020
668bbc6
Export anonymous functions in 2 steps, declare as variable and then a…
josejulio Aug 8, 2020
1ec71f0
Bind alias ThisProperty assignment declarations (#39908)
sandersn Aug 10, 2020
a80f60c
fix export * as default syntax (#39803)
Kingwl Aug 10, 2020
57e2fe0
Improve deprecated suggestion node position (#39702)
Kingwl Aug 11, 2020
d371ae7
No this-property assignments in TS (#40009)
sandersn Aug 11, 2020
1f5caf5
fix(13503): fix crash on calling getTypeAtLocation with the SourceFil…
a-tarasyuk Aug 12, 2020
620e260
Avoid the double-symbol trick for enums
elibarzilay Aug 7, 2020
03d946d
Revert to including only open files in partial semantic server mode (…
sheetalkamat Aug 13, 2020
610fa28
feat(40004): make isNamedTupleMember public (#40005)
a-tarasyuk Aug 13, 2020
44d9cea
Small branch sync script change
weswigham Aug 13, 2020
edc88c5
fix(15230): change the diagnostic message about a non-module file in …
a-tarasyuk Aug 13, 2020
0ed523b
fix jsx completions after attributes (#39859)
Zzzen Aug 13, 2020
c95cffe
Ensure file, include and exclude specs used are strings (#40041)
sheetalkamat Aug 14, 2020
930b81c
Set stackTraceLimit to 0 in fileSystemEntryExists
gluxon Aug 14, 2020
2426eb4
Add '(approximate)' to the beginning of quick info requests in Partia…
DanielRosenwasser Aug 15, 2020
cd30534
Recursive conditional types (#40002)
ahejlsberg Aug 16, 2020
97a0729
Revert "Add '(approximate)' to the beginning of quick info requests i…
DanielRosenwasser Aug 17, 2020
c3d41bb
Alias for commonjs require in JS (#39770)
sandersn Aug 17, 2020
e0b494b
LEGO: check in for master to temporary branch.
csigs Aug 17, 2020
156a6e2
LEGO: Merge pull request 40099
csigs Aug 17, 2020
f9cca25
Fix lack of error on default export of nonexistant name (#40094)
weswigham Aug 17, 2020
9f3af67
fix(10019): allow renaming labels (#40064)
a-tarasyuk Aug 18, 2020
9bf6b7b
LEGO: check in for master to temporary branch.
csigs Aug 18, 2020
a2d20a2
LEGO: Merge pull request 40108
csigs Aug 18, 2020
c191f10
LEGO: check in for master to temporary branch.
csigs Aug 18, 2020
24832e8
LEGO: Merge pull request 40112
csigs Aug 18, 2020
dbab46c
The falsy part of any/unknown is any/unknown (#39529)
andrewbranch Aug 18, 2020
6fea7ff
Add unit tests for VersionRange (#40114)
sandersn Aug 18, 2020
56a2e34
Ping @sandersn on new user baseline commits (#40117)
weswigham Aug 18, 2020
5ff1b75
Merge pull request #40043 from gluxon/uvException-hotspot
amcasey Aug 18, 2020
a9277b7
LEGO: check in for master to temporary branch.
csigs Aug 18, 2020
6a622a1
LEGO: Merge pull request 40119
csigs Aug 18, 2020
1e84ffc
Optimize source mapping into external source map sources (#40055)
JoostK Aug 19, 2020
f27a11d
LEGO: check in for master to temporary branch.
csigs Aug 19, 2020
c51aaca
LEGO: Merge pull request 40127
csigs Aug 19, 2020
a0d457e
Add missing properties to stdlib (#38678)
devsnek Aug 19, 2020
31f4957
Revert "Optimize source mapping into external source map sources (#40…
DanielRosenwasser Aug 19, 2020
44d2350
Fix tuple name homogeneity check (#40118)
weswigham Aug 19, 2020
55ca5e9
Fixes crash on chained property access on require (#40135)
sandersn Aug 19, 2020
2f2b679
Optimize external source maps without full cache (#40130)
JoostK Aug 19, 2020
5bcb353
Adopt package-lock.json and npm ci
amcasey Aug 19, 2020
4d57d35
Add a workflow to update package-lock.json daily
amcasey Aug 20, 2020
00d7d52
Git ignore package-lock.json and forcibly update in workflow
amcasey Aug 20, 2020
c12bc7b
Update bot email address
amcasey Aug 20, 2020
aa8742a
Typescript Language Specification amended (#40120)
nitish-awasthi Aug 20, 2020
a7c306f
Update user baselines +cc @sandersn (#39881)
Aug 20, 2020
76639f1
Revamp dockerfile for office-ui-fabric to reduce noise (#40147)
weswigham Aug 20, 2020
598e9b2
Allow trailing params of 'undefined', 'unknown', and 'any' to be opti…
rbuckton Aug 20, 2020
f9e360d
Add missing contextual type to static PropertyDeclarations
elibarzilay Aug 18, 2020
4eb9fb4
Merge pull request #40146 from amcasey/PackageLock
amcasey Aug 21, 2020
4778cda
Delete extra npm update
amcasey Aug 21, 2020
54bc0ed
Merge pull request #40161 from amcasey/NoNpmUpdate
amcasey Aug 21, 2020
8429ddd
Update package-lock.json
typescript-bot Aug 21, 2020
585603e
Add compactDisplay and signDisplay to NumberFormatOptions (#40039)
wyze Aug 21, 2020
e8dbc2d
Fix typo in (Readonly)Set.keys comment (fixes #40164) (#40176)
cherryblossom000 Aug 21, 2020
6ec3629
fix(26325): use a unique name for reserved words in 'constructor like…
a-tarasyuk Aug 21, 2020
9569198
fix(25770): add diagnostic message for the possible mapped type used …
a-tarasyuk Aug 21, 2020
2dd7a4b
fix(31046): add new diagnostic message for incompatible constructor s…
a-tarasyuk Aug 22, 2020
e831021
Update package-lock.json
typescript-bot Aug 23, 2020
31fab0f
Update package-lock.json
typescript-bot Aug 24, 2020
4aadd5a
Fix commonjs require of ES export (#40221)
sandersn Aug 24, 2020
4134997
LEGO: check in for master to temporary branch.
csigs Aug 25, 2020
bfa69b7
LEGO: Merge pull request 40236
csigs Aug 25, 2020
d45c059
Update CONTRIBUTING.md for code contributors (#40230)
sandersn Aug 25, 2020
d6dda23
Swallow empty-commit error
amcasey Aug 25, 2020
2ff70f0
Merge pull request #40244 from amcasey/EmptyCommit
amcasey Aug 25, 2020
c5446d1
don't emit "unused @ts-expect-error" in unchecked js files (#40046)
k-yle Aug 25, 2020
4170007
LEGO: check in for master to temporary branch.
csigs Aug 26, 2020
c8ce9d3
LEGO: Merge pull request 40255
csigs Aug 26, 2020
a917570
Update package-lock.json
typescript-bot Aug 26, 2020
669c415
LEGO: check in for master to temporary branch.
csigs Aug 26, 2020
7e86b3e
LEGO: Merge pull request 40271
csigs Aug 26, 2020
746bdb7
Fix `getContextualTypeForBindingElement` for arrays
elibarzilay Aug 21, 2020
5ee2d52
LEGO: check in for master to temporary branch.
csigs Aug 27, 2020
1b6e18c
LEGO: Merge pull request 40277
csigs Aug 27, 2020
67d7ece
LEGO: check in for master to temporary branch.
csigs Aug 27, 2020
60117fe
LEGO: Merge pull request 40282
csigs Aug 27, 2020
1b404ae
Update package-lock.json
typescript-bot Aug 27, 2020
4dd9f69
Disable diagnostic consistency checking for large tests (#40280)
weswigham Aug 27, 2020
0298033
Specified error diagnostic for invalid variable names (#40105)
JoshuaKGoldberg Aug 27, 2020
3002d69
LEGO: check in for master to temporary branch.
csigs Aug 27, 2020
27eb862
LEGO: Merge pull request 40289
csigs Aug 27, 2020
fa5e980
fix(40010): add outlining for comments before variables statements (#…
a-tarasyuk Aug 27, 2020
4463194
Update package-lock.json
typescript-bot Aug 28, 2020
b969b58
Use a correct Object.entries polyfill (#40268)
RyanCavanaugh Aug 28, 2020
10fb9c9
Treat trailing 'void' as optional for assignability (#40231)
rbuckton Aug 28, 2020
b78c722
Update package-lock.json
typescript-bot Aug 29, 2020
01362a3
feat(part of 40169): add spelling suggestion/quick fix for module/nam…
a-tarasyuk Aug 29, 2020
2faf505
LEGO: check in for master to temporary branch.
csigs Aug 29, 2020
d75894d
LEGO: Merge pull request 40318
csigs Aug 29, 2020
97f8b87
Update package-lock.json
typescript-bot Aug 31, 2020
bfb00eb
Fix misplaced comma in auto imported specifier (#40273)
andrewbranch Aug 31, 2020
21df16d
Add missing description to CONTRIBUTING.md (#40329)
Aug 31, 2020
7a0f603
Fix extract symbol crash on unterminated literals; don’t offer to ext…
andrewbranch Aug 31, 2020
42164e9
LEGO: check in for master to temporary branch.
csigs Sep 1, 2020
5fd5a75
LEGO: Merge pull request 40339
csigs Sep 1, 2020
378083f
Nested assignment to a require alias isn't a declaration (#40186)
sandersn Sep 1, 2020
d572dcb
Fix crash intersecting dynamic import w/esModuleInterop (#40249)
sandersn Sep 1, 2020
b0011fe
Checkjs implies allowjs (#40275)
sandersn Sep 1, 2020
838a5e6
Fix call hierarchy item serialization and server tests (#40348)
andrewbranch Sep 1, 2020
62a1b35
Unignore the package-lock.json in the root Dockerignore, fixing docke…
weswigham Sep 2, 2020
3a75838
include stdout in `runSequence` thrown error
weswigham Sep 2, 2020
38cedc5
fix(39410): don't remove variables with type definition during conver…
a-tarasyuk Sep 3, 2020
d896353
Add support for vscode-js-debug's customDescriptionGenerators (#40308)
rbuckton Sep 3, 2020
db5f519
fix(31126): show completions in nested namespace name (#39663)
a-tarasyuk Sep 3, 2020
8ffb7f0
Reprioritize cross-project module specifier suggestions for auto-impo…
andrewbranch Sep 3, 2020
d5a646e
Remove optionality for Promise resolve callback (#39817)
rbuckton Sep 4, 2020
30cb204
Mark spec files as archived (#40373)
sandersn Sep 4, 2020
237b6f6
fix(lib/es2015): Remove `Reflect.enumerate(…)` (#38967)
ExE-Boss Sep 4, 2020
79f919e
Fixes stack overflow when exporting a lot in commonjs (#38994)
ericanderson Sep 4, 2020
ea842c4
Add CodeQL security scanning (#38939)
jhutchings1 Sep 4, 2020
8384018
fix(26141): show completions for string parenthesized types (#39697)
a-tarasyuk Sep 4, 2020
f6f2d36
Add optionalReplacementSpan to completions response (#40347)
andrewbranch Sep 4, 2020
09d68ef
fix(28516): forbid using async modifier with the abstract modifier (#…
a-tarasyuk Sep 4, 2020
155610e
Better support class instances assigned to the module object for JS d…
weswigham Sep 5, 2020
6cd2dc9
Accept baseline from test added since merged PR was made
weswigham Sep 5, 2020
8d7afc2
Add DockerFile for ChromeDevTools (#39624)
TimvdLippe Sep 5, 2020
e5fd0dd
Allow private symbols to be control flow narrowed (#39978)
weswigham Sep 5, 2020
2ef393b
Add full stops in diagnostic messages (#40165)
cherryblossom000 Sep 8, 2020
de5ef35
Remove Language specification link from README (#40407)
mohsen1 Sep 8, 2020
cea1cfb
Consistently error when rest element isn't last in tuple type (#40254)
ahejlsberg Sep 8, 2020
7838b01
Add errors when providing type arguments for intrinsic JSX tags (#40293)
weswigham Sep 8, 2020
68d4505
LEGO: check in for master to temporary branch.
csigs Sep 8, 2020
42196df
LEGO: Merge pull request 40437
csigs Sep 8, 2020
1d2278b
Remove trailing space from Gulpfile.js comment (#40199)
EvilSpirit39 Sep 8, 2020
fa89ce6
Remove assignability cases in getNarrowedType + an isArray improvemen…
Sep 8, 2020
1508446
fix(40222): fix crash on using destructuring in a catch clause (#40240)
a-tarasyuk Sep 8, 2020
6101fbc
fix(40150): use parameter name for a Promise callback function (#40191)
a-tarasyuk Sep 8, 2020
6aec7f4
feat(25770): add Quick Fix to convert LiteralType to MappedType (#40226)
a-tarasyuk Sep 8, 2020
2b0278a
Update package-lock.json
typescript-bot Sep 9, 2020
219c64a
Fix all build errors
orta Sep 9, 2020
415b30f
Merge pull request #4 from orta/semantic_2_2
orta Sep 9, 2020
1747860
Merge branch 'master' of https://github.com/microsoft/TypeScript into…
orta Sep 9, 2020
a9035d6
Update baselines
orta Sep 9, 2020
8739cbf
Update src/services/classifier2020.ts
orta Sep 9, 2020
ff748a5
Addresses Ron's feedback
orta Sep 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ yarn-error.log
.parallelperf.*
.failed-tests
TEST-results.xml
package-lock.json
tests
.vscode
.git
15 changes: 12 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,20 @@
"@typescript-eslint/array-type": "error",

"camelcase": "off",
"@typescript-eslint/camelcase": ["error", { "properties": "never", "allow": ["^[A-Za-z][a-zA-Za-z]+_[A-Za-z]+$"] }],
"@typescript-eslint/naming-convention": [
"error",
{ "selector": "typeLike", "format": ["PascalCase"], "filter": { "regex": "^(__String|[A-Za-z]+_[A-Za-z]+)$", "match": false } },
{ "selector": "interface", "format": ["PascalCase"], "custom": { "regex": "^I[A-Z]", "match": false }, "filter": { "regex": "^I(Arguments|TextWriter|O([A-Z][a-z]+[A-Za-z]*)?)$", "match": false } },
{ "selector": "variable", "format": ["camelCase", "PascalCase", "UPPER_CASE"], "leadingUnderscore": "allow", "filter": { "regex": "^(_{1,2}filename|_{1,2}dirname|_+|[A-Za-z]+_[A-Za-z]+)$", "match": false } },
{ "selector": "function", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
{ "selector": "parameter", "format": ["camelCase"], "leadingUnderscore": "allow", "filter": { "regex": "^(_+|[A-Za-z]+_[A-Z][a-z]+)$", "match": false } },
{ "selector": "method", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
{ "selector": "memberLike", "format": ["camelCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
{ "selector": "enumMember", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
{ "selector": "property", "format": null }
],

"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/interface-name-prefix": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-this-alias": "error",
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ assignees: ''

---

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨
<!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Expand Down
4 changes: 4 additions & 0 deletions .github/codeql/codeql-configuration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name : CodeQL Configuration

paths:
- './src'
18 changes: 18 additions & 0 deletions .github/tsc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"problemMatcher": [
{
"owner": "tsc",
"pattern": [
{
"regexp": "^(?:\\s+\\d+\\>)?([^\\s].*)\\((\\d+),(\\d+)\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"code": 5,
"message": 6
}
]
}
]
}
24 changes: 15 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 13.x]
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 5
- name: Use node version ${{ matrix.node-version }}
Expand All @@ -30,12 +30,18 @@ jobs:
run: |
npm uninstall typescript --no-save
npm uninstall tslint --no-save
- name: npm install and test
run: |
npm install
npm update
npm test

- run: npm ci

# Re: https://github.com/actions/setup-node/pull/125
- name: Register Problem Matcher for TSC
run: echo "##[add-matcher].github/tsc.json"

- name: Tests
run: npm test -- --no-lint

- name: Linter
run: npm run lint:ci

- name: Validate the browser can import TypeScript
run: gulp test-browser-integration

54 changes: 54 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "Code scanning - action"

on:
push:
pull_request:
schedule:
- cron: '0 19 * * 0'

jobs:
CodeQL-Build:

# CodeQL runs on ubuntu-latest and windows-latest
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
config-file: ./.github/codeql/codeql-configuration.yml
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
4 changes: 2 additions & 2 deletions .github/workflows/new-release-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/api/typescript.d.ts
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/api/tsserverlibrary.d.ts
sed -i -e 's/const version = `${versionMajorMinor}.0-.*`/const version = `${versionMajorMinor}.0-${{ github.event.client_payload.core_tag || 'dev' }}`/g' src/compiler/corePublic.ts
npm install
npm ci
gulp LKG
npm test
git diff
Expand All @@ -32,7 +32,7 @@ jobs:
git add tests/baselines/reference/api/typescript.d.ts
git add tests/baselines/reference/api/tsserverlibrary.d.ts
git add ./lib
git config user.email "ts_bot@rcavanaugh.com"
git config user.email "typescriptbot@microsoft.com"
git config user.name "TypeScript Bot"
git commit -m 'Bump version to ${{ github.event.client_payload.package_version }} and LKG'
git push --set-upstream origin ${{ github.event.client_payload.branch_name }}
2 changes: 2 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Publish Nightly
on:
schedule:
- cron: '0 7 * * *'
# enable users to manually trigger with workflow_dispatch
workflow_dispatch: {}
repository_dispatch:
types: publish-nightly

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release-branch-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:
npm uninstall tslint --no-save
- name: npm install and test
run: |
npm install
npm update
npm ci
npm test
env:
CI: true
Expand All @@ -41,4 +40,3 @@ jobs:
with:
name: tgz
path: typescript.tgz

4 changes: 2 additions & 2 deletions .github/workflows/set-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/api/typescript.d.ts
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/api/tsserverlibrary.d.ts
sed -i -e 's/const version = .*;/const version = "${{ github.event.client_payload.package_version }}" as string;/g' src/compiler/corePublic.ts
npm install
npm ci
gulp LKG
npm test
git diff
Expand All @@ -38,7 +38,7 @@ jobs:
git add tests/baselines/reference/api/typescript.d.ts
git add tests/baselines/reference/api/tsserverlibrary.d.ts
git add ./lib
git config user.email "ts_bot@rcavanaugh.com"
git config user.email "typescriptbot@microsoft.com"
git config user.name "TypeScript Bot"
git commit -m 'Bump version to ${{ github.event.client_payload.package_version }} and LKG'
git push
13 changes: 9 additions & 4 deletions .github/workflows/sync-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Sync branch with master
on:
repository_dispatch:
types: sync-branch
workflow_dispatch:
inputs:
branch_name:
description: 'Target Branch Name'
required: true

jobs:
build:
Expand All @@ -15,15 +20,15 @@ jobs:
node-version: 12.x
- uses: actions/checkout@v2
with:
ref: ${{ github.event.client_payload.branch_name }}
ref: ${{ github.event.inputs.branch_name || github.event.client_payload.branch_name }}
# This does a test post-merge and only pushes the result if the test succeeds
# required client_payload members:
# branch_name - the target branch
- run: |
git config user.email "ts_bot@rcavanaugh.com"
git config user.email "typescriptbot@microsoft.com"
git config user.name "TypeScript Bot"
git fetch origin master
git merge master --no-ff
npm install
git merge origin/master --no-ff
npm ci
npm test
git push
23 changes: 23 additions & 0 deletions .github/workflows/twoslash-repros.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Twoslash Code Sample Repros

on:
push:
branches:
- orta-twoslash-repros
schedule:
- cron: '0 8 * * *'
repository_dispatch:
types: run-twoslash-repros

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Use node
uses: actions/setup-node@v1
- run: |
npm init -y
npm install --save typescript@next
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
with:
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/update-lkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update LKG

on:
workflow_dispatch: {}

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use node version 12
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/

- name: Configure Git and Update LKG
run: |
git config user.email "[email protected]"
git config user.name "TypeScript Bot"
npm ci
gulp LKG
npm test
git diff
git add ./lib
git commit -m "Update LKG"
git push
28 changes: 28 additions & 0 deletions .github/workflows/update-package-lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update package-lock.json

on:
schedule:
# This is probably 6am UTC, which is 10pm PST or 11pm PDT
# Alternatively, 6am local is also fine
- cron: '0 6 * * *'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/

- name: Configure git and update package-lock.json
run: |
git config user.email "[email protected]"
git config user.name "TypeScript Bot"
npm install --package-lock-only
git add -f package-lock.json
if git commit -m "Update package-lock.json"; then
git push
fi
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ language: node_js

node_js:
- 'node'
- '12'
- '10'
- '8'

env:
- workerCount=3 timeout=600000
Expand All @@ -18,7 +18,7 @@ branches:

install:
- npm uninstall typescript --no-save
- npm install
- npm ci

cache:
directories:
Expand Down
16 changes: 13 additions & 3 deletions .vscode/launch.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,28 @@
},
"sourceMaps": true,
"smartStep": true,
"preLaunchTask": "tests",
"preLaunchTask": "gulp: tests",
"console": "integratedTerminal",
"outFiles": [
"${workspaceRoot}/built/local/run.js"
]
],

// NOTE: To use this, you must switch the "type" above to "pwa-node". You may also need to follow the instructions
// here: https://github.com/microsoft/vscode-js-debug#nightly-extension to use the js-debug nightly until
// this feature is shipping in insiders or to a release:
// "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
},
{
// See: https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code
"type": "node",
"request": "attach",
"name": "Attach to VS Code TS Server via Port",
"processId": "${command:PickProcess}"
"processId": "${command:PickProcess}",

// NOTE: To use this, you must switch the "type" above to "pwa-node". You may also need to follow the instructions
// here: https://github.com/microsoft/vscode-js-debug#nightly-extension to use the js-debug nightly until
// this feature is shipping in insiders or to a release:
// "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
}
]
}
Loading