Wesley Wigham
82822fc1e9
Use a binary search when looking for the token at a given position ( #46250 )
2021-10-07 15:06:18 -07:00
csigs
bbd9ff51f5
LEGO: Merge pull request 46260
...
LEGO: Merge pull request 46260
2021-10-07 10:13:49 -07:00
Nathan Shively-Sanders
8c270757b2
In plain JS files, only suggestion did-you-mean errors ( #46151 )
...
They will have code fixes, and are tuned for high precision. Others are
not.
2021-10-07 08:41:06 -07:00
csigs
fbff13105a
LEGO: Merge pull request 46255
...
LEGO: Merge pull request 46255
2021-10-07 04:15:20 -07:00
csigs
08361e3d3c
LEGO: Merge pull request 46248
...
LEGO: Merge pull request 46248
2021-10-06 16:14:13 -07:00
Wesley Wigham
7108646713
Fix extension automatic script kind detection for new extensions ( #46205 )
...
* Fix extension script kind detection for new extensions
* Accept (correct) changes to existing baselines affected by correct ScriptKind detection
2021-10-06 13:23:54 -07:00
Wesley Wigham
ed9c522fd6
Accept new moduleResolution options on commandline ( #46239 )
2021-10-06 13:17:27 -07:00
csigs
cb158e7eb6
LEGO: Merge pull request 46238
...
LEGO: Merge pull request 46238
2021-10-06 10:14:06 -07:00
Wesley Wigham
1cee9731d2
Properly support scoped package self name lookups ( #46212 )
2021-10-05 12:41:44 -07:00
Wesley Wigham
47cd4d3ecf
Only set package data map under watch mode ( #46211 )
2021-10-05 11:13:26 -07:00
Wesley Wigham
a0cf126513
Limit package.json realpath lookup to only successful resolutions ( #46209 )
2021-10-05 10:24:08 -07:00
chenjigeng
d60747f043
Feat/quick fix for types ( #42126 )
...
* feat: add quick fix for types
* feat: add test case for quick fix of types
* feat: add did-you-mean error when Cannot_find_name_0 and Cannot_find_namespace_0
* feat: add Cannot_find_namespace_0_Did_you_mean_1 error and only suggest when resolve type
* feat: update baselines
* feat: update baselines
* feat: update baselines
* chore: fix style problem
* Always suggest spelling corrections
* suggest primitives instead of their wrappers
* Add primitives to suggestions
Instead of altering wrappers to look like primitives.
* add semicolons
* revert unneeded change
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2021-10-05 08:14:16 -07:00
csigs
5423501c37
LEGO: Merge pull request 46203
...
LEGO: Merge pull request 46203
2021-10-04 10:14:44 -07:00
csigs
66182554c8
LEGO: Merge pull request 46179
...
LEGO: Merge pull request 46179
2021-10-02 22:14:20 -07:00
csigs
f3cc868499
LEGO: Merge pull request 46178
...
LEGO: Merge pull request 46178
2021-10-02 16:14:17 -07:00
csigs
33581aedbd
LEGO: Merge pull request 46173
...
LEGO: Merge pull request 46173
2021-10-02 04:15:28 -07:00
csigs
49fbeefcf1
LEGO: Merge pull request 46170
...
LEGO: Merge pull request 46170
2021-10-01 22:17:03 -07:00
csigs
a6af833d14
LEGO: Merge pull request 46168
...
LEGO: Merge pull request 46168
2021-10-01 16:14:26 -07:00
Or Ouziel
b2d2f085e2
improve response time of invalid rename attempts ( #46158 )
...
* improve response time in invalid rename attempts
* account for simplifiedResult and revert unrelated change
2021-10-01 15:07:54 -07:00
Wesley Wigham
a02a7ab8e9
Follow and respect export maps when generating module specifiers ( #46159 )
...
* Follow and respect export maps when generating module specifiers
* Type baseline updates from master merge
2021-10-01 13:54:07 -07:00
csigs
9ed49b6ba7
LEGO: Merge pull request 46161
...
LEGO: Merge pull request 46161
2021-10-01 10:13:58 -07:00
Orta Therox
1a000c8422
Fix main ( #46160 )
2021-10-01 09:50:00 -07:00
Wesley Wigham
ccc19092ff
Modify synthetic default generation code for dual-mode module resolution ( #46156 )
2021-10-01 09:18:44 -07:00
Orta Therox
016d78b09e
Allow for class static vars to be called static ( #44813 )
...
* Allow for class static vars to be called static - re: #41127
* Add the baselines
2021-10-01 14:28:08 +01:00
Alex Munoz
95ef2a503d
feat: display the tsconfig generated when running tsc --init ( #45930 )
...
* feat: display the tsconfig generated when running tsc --init
* fix: fix lint issues
* refactor: minor changes
2021-10-01 14:08:06 +01:00
Joel Einbinder
46a12fdb8a
fix(sourcemap): accept a sourceMappingURL that ends with a newline ( #45983 )
...
* fix(sourcemap): accept a sourceMappingURL that ends with a newline
* Update src/compiler/sourcemap.ts
Co-authored-by: Wesley Wigham <wwigham@gmail.com>
2021-10-01 05:16:05 -07:00
Wesley Wigham
612c92d603
Track source and target relationship stack depth seperately, only increase on change in value ( #41821 )
...
* Track source and target relationship stack depth seperately, only increase on change in value
* Add baselines for test from #43485
* Bail on unwrapping conditional constraints on the source side when the source conditional is already known to be spooling out of control
* More usage of isDeeplyNestedType to block _specifically_ conditional recursion on only one side
* Negative cases of getNarrowedType that match the exact type should be filtered out, even when generic
* Add test and fix for #44404
* Swap to manually specifying left and right recursion
* Rename Left -> Source, Right -> Target
Co-authored-by: Andrew Branch <andrew@wheream.io>
2021-09-30 16:58:40 -07:00
Andrew Branch
96f259ddcc
Minimal fix for auto-importing node_modules in node12/nodenext ( #46148 )
2021-09-30 13:42:06 -07:00
Oleksandr T
d613748932
fix(45919): allow using JSDoc types for arrow function with type predicate ( #45952 )
2021-09-30 10:50:25 -07:00
Oleksandr T
e0f436c628
feat(36080): forbid to use JSDoc visibility modifiers in private fields ( #46056 )
2021-09-30 09:48:56 -07:00
Kagami Sascha Rosylight
2161e1852f
Add module: es2022
( #44656 )
...
Closes #44653
2021-09-29 17:44:57 -07:00
Anders Hejlsberg
5ec836db82
Fix issues + Support template literal types as discriminants ( #46137 )
...
* Fix issues + Support template literal types in discriminants
* Add tests
* Address CR feedback
2021-09-29 17:38:43 -07:00
csigs
f09c5e80c6
LEGO: Merge pull request 46138
...
LEGO: Merge pull request 46138
2021-09-29 16:13:38 -07:00
Oleksandr T
e96c10fe0c
fix(26635): allow casts only when JSDoc type directly attached to an expression ( #45960 )
2021-09-29 12:16:27 -07:00
Hiroshi Ogawa
061f02cd64
fix(44021): reference jsx pragma when JsxFragment is used ( #45894 )
2021-09-29 11:31:59 -07:00
John McEntee
5d0d7ae85d
fix(45876): Remove "ascii character" order from docs for Float64Array.sort ( #45883 )
...
* fix(45876): Do not specify ascii chracter order in docs for Float64Array.sort() when compareFn is omitted.
* fix(45876): Do not specify ascii chracter order in docs for any TypedArray.sort() when compareFn is omitted.
2021-09-29 11:05:01 -07:00
Oleksandr T
8a2f5b2a6b
fix(45999): show parameter inlay hints before initializer ( #46040 )
2021-09-29 09:28:23 -07:00
Yoshiya Hinosawa
2667c6013c
Update parameter types of RegExp compile method ( #46038 )
2021-09-29 09:27:21 -07:00
csigs
0cd2330c7a
LEGO: Merge pull request 46133
...
LEGO: Merge pull request 46133
2021-09-29 04:15:22 -07:00
csigs
4c854e6b2d
LEGO: Merge pull request 46126
...
LEGO: Merge pull request 46126
2021-09-28 16:15:09 -07:00
csigs
4cd3bb839b
LEGO: Merge pull request 46117
...
LEGO: Merge pull request 46117
2021-09-28 10:14:07 -07:00
csigs
bdd321dc36
LEGO: Merge pull request 46113
...
LEGO: Merge pull request 46113
2021-09-28 04:15:13 -07:00
csigs
cdfc7965c9
LEGO: Merge pull request 46108
...
LEGO: Merge pull request 46108
2021-09-27 22:14:48 -07:00
Wesley Wigham
8d5c197f99
keyof
should always include remapped keys (#45923 )
...
* Loosen check in getIndexTypeForMappedType to directly map property names when any indexy type is present
* Handle homomorphic mappings better in keyof, add specific relationship rule for relating generic keyof MappedType to handle remapped keys
* Remove trailing whitespace
2021-09-27 19:10:02 -07:00
Andrew Branch
530b0e2e10
Fix indexing error in guessDirectorySymlink ( #46105 )
...
* Fix indexing error in guessDirectorySymlink
* Add test
2021-09-27 16:46:49 -07:00
csigs
aabba1ac02
LEGO: Merge pull request 46106
...
LEGO: Merge pull request 46106
2021-09-27 16:14:06 -07:00
csigs
7bcbf8c1ae
LEGO: check in for main to temporary branch. ( #46088 )
2021-09-27 16:07:16 -07:00
Orta Therox
d6cd2c7c11
Updates the DOM APIs ( #46080 )
...
* Updates the DOM APIs
* Tests
* Remove static abort(): AbortSignal
2021-09-27 22:07:57 +01:00
Andrew Branch
e160bc8c0d
Type-only import specifiers ( #45998 )
...
* Parse type-only import specifiers
* Add type-only export specifiers
* Update transform and emit
* Update checking
* Fix elision when combined with importsNotUsedAsValues=preserve
* Accept baselines
* Add test
* WIP auto imports updates
* First auto-imports test working
* More auto-import tests
* Fix auto imports of type-only exports
* Add test for promoting type-only import
* Sort import/export specifiers by type-onlyness
* Update completions for `import { type |`
* Update other completions tests
* Respect organize imports sorting when promoting type-only to regular while adding a specifier
* Fix comment mistakes
* Update src/services/codefixes/importFixes.ts
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
* Rearrange some order of assignments in parser
* Split huge if statement
* Remove redundant check
* Update new transformer
* Fix import statement completions
* Fix type keyword completions good grief
* Fix last tests
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2021-09-27 12:38:30 -07:00
Anders Hejlsberg
26aef89a72
Make never
inferences with template literal types only in special cases ( #46075 )
...
* Make 'never' inferences with template literal types only in special cases
* Accept new baselines
* Add regression test
* Fix comment
2021-09-27 06:47:47 -07:00
csigs
0ca06ede7a
LEGO: Merge pull request 46079
...
LEGO: Merge pull request 46079
2021-09-26 22:13:42 -07:00
csigs
d8701a2de4
LEGO: Merge pull request 46077
...
LEGO: Merge pull request 46077
2021-09-26 16:14:05 -07:00
Anders Hejlsberg
2f0c6070cb
Properly handle missingType in intersections ( #46052 )
...
* Properly handle missingType in intersections
* Add regression tests
* Accept new baselines
* Fix tests
2021-09-26 14:13:42 -07:00
csigs
2be3d45aa7
LEGO: Merge pull request 46070
...
LEGO: Merge pull request 46070
2021-09-26 10:13:35 -07:00
csigs
7aa37fd2ff
LEGO: Merge pull request 46064
...
LEGO: Merge pull request 46064
2021-09-26 04:15:59 -07:00
csigs
da884d11ed
LEGO: Merge pull request 46060
...
LEGO: Merge pull request 46060
2021-09-25 16:14:30 -07:00
csigs
d518bdb1f9
LEGO: Merge pull request 46058
...
LEGO: Merge pull request 46058
2021-09-25 10:13:51 -07:00
Wesley Wigham
586b0d5011
moduleResolution: node12
support (#45884 )
...
* Initial support for module: node12
* Add allowJs and declaration emit enabled tests
* Fix typos
* cts, mts, cjs, mjs, etc extension support
* Fix watch of files whose intepretation changes due to a package.json update
* Minor PR feedback
* Adjust error message
* Initial import/export/self-name support
* Accept new error codes
* TypesVersions support in export/import map conditions
* Fix import suggestion and autoimport default extensions under new resolution modes
* Add tests for import maps non-relative name lookup feature
* Fix isDeclarationFileName for .d.mts and .d.cts
* Preserve new extensions when generating module specifiers
* Fix spurious implict any suggestion caused by file ordering bug and optimize import name format detection by relying on parents being set
* Fix a bunch of incremental bugs that dont repro under fourslash for some reason
* Accept updated baseline
* Always include extensions on completions for cjs/mjs style imports
* String completion relative import suggestions respect the mode of the import when choosing if they provide extensions
* Style feedback
* Change diagnostic case
2021-09-24 14:25:59 -07:00
Orta Therox
12003e53c2
Default tsc --init to es2016 ( #45934 )
2021-09-24 19:13:53 +01:00
Orta Therox
90e83adb44
Resolve with -lib in TypeScript lib node lookup ( #46046 )
2021-09-24 17:46:29 +01:00
Jack Bates
27bbdf1fe9
Transform JSX spread children ( #45693 )
...
* Transform JSX spread children
* Target es2015 to skip helper and refine emit
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
Co-authored-by: Orta <git@orta.io>
2021-09-24 09:19:49 -07:00
Ashley Claymore
af689cc5d5
ES private field check ( #44648 )
...
* es private fields in in (#52 )
add support for the 'private-fields-in-in' TC39 proposal
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [fixup] include inToken when walking forEachChild(node, cb)
* [squash] re-accept lib definition baseline changes
* [squash] reduce if/else to ternary
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] drop 'originalName' and rename parameter instead
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] extend spelling suggestion to all privateIdentifiers
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] revert the added lexical spelling suggestions logic
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] update baseline
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] inline variable as per PR suggestion
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] test targets both esnext and es2020 as per PR comment
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* switch to using a binary expression
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] PrivateIdentifier now extends PrimaryExpression
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] accept public api baseline changes
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] classPrivateFieldInHelper now has documentation
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] type-check now follows existing in-expression path
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] parser now follows existing binaryExpression path
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] correct typo in comment
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] no longer use esNext flag
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] swap 'reciever, state' helper params
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] remove change to parenthesizerRules
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] apply suggested changes to checker
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] remove need for assertion in fixSpelling
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] improve comment hint in test
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] fix comment typos
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] add flow-test for Foo | FooSub | Bar
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] add checkExternalEmitHelpers call and new test case
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] simplify and correct parser
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] move most of the added checker logic to expression level
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] always error when privateId could not be resolved
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] reword comment
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] fix codeFixSpelling test
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] do less work
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* store symbol by priateId not binaryExpression
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* moved parsePrivateIdentifier into parsePrimaryExpression
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] checkInExpressionn bails out early on silentNeverType
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] more detailed error messages
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] resolves conflict in diagnosticMessages.json
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] update baseline for importHelpersES6
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] remove redundent if and comment from parser
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] split up grammar/check/symbolLookup
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] reword message for existing left side of in-expression error
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
2021-09-24 09:05:27 -07:00
Oleksandr T
1b6c8fd072
fix(45607): add snippet for type only import statements ( #45873 )
2021-09-23 16:13:17 -07:00
Orta Therox
61d2939359
Adds more Intl.ResolvedDateTimeFormatOptions, and hooks up Intl for ES2021 ( #45905 )
...
* Adds more ResolvedDateTimeFormatOptions to the Intl APIs
* Fix tests
2021-09-23 21:33:37 +01:00
Anders Hejlsberg
a4f9bf0fce
Create type aliases for unresolved type symbols ( #45976 )
...
* Create type aliases for unresolved type symbols
* Accept new baselines
* Update fourslash tests
* Unresolved import aliases create tagged unresolved symbols
* Add comments
* Accept new baselines
* Add fourslash tests
2021-09-23 13:21:27 -07:00
Andrew Branch
039672332f
Revert "Stop looking at binding patterns for type argument inference" ( #46013 )
...
* Revert "Stop looking at binding patterns for type argument inference (#45719 )"
This reverts commit be618b1446
.
* Update error baseline for moved lib file declaration
2021-09-23 09:26:51 -07:00
Ron Buckton
4c0a51e14b
Avoid Promise<Awaited<T>> in return type inference ( #45925 )
2021-09-22 16:29:07 -07:00
csigs
12f72caaa5
LEGO: Merge pull request 46014
...
LEGO: Merge pull request 46014
2021-09-22 16:14:11 -07:00
Armando Aguirre
24e3b6bf59
Added Jsx Snippet Completion feature ( #45903 )
...
* Added Jsx completion feature and tests
* Renamed jsxSnippetCompletion to jsxAttributeCompletionStyle
* Renamed tests files
* Changed boolean filter
* Escaped snippet
2021-09-22 16:09:00 -07:00
Nathan Shively-Sanders
f0fe1b88ca
Make isDefinition aware of declaring symbol ( #45920 )
...
* Make isDefinition aware of target symbol
Initial code, haven't fixed any tests yet.
* Update baselines
This commit includes a regression for commonjs aliases:
```js
// @filename: a.js
function f() { }
module.exports.f = f
// @filename: b.js
const { f } = require('./a')
f/**/
```
Now says that `f` in b.js has 1 reference --
the alias `module.exports.f = f`. This is not correct (or not exactly
correct), but correctly fixing will involve re-creating the ad-hoc
commonjs alias resolution code from the checker. I don't think it's
worth it for an edge case like this.
* update more unit tests
* Fix symbol lookup for constructors
* More baselines + two fixes
1. Fix `default` support.
2. Add a secondary declaration location for commonjs assignment
declarations.
* Update rest of baselines
* Switch a few more tests over to baselines
2021-09-22 13:43:52 -07:00
Hossein
110b05987e
Fix GH-32798: Allow == null to narrow unknown to null | undefined ( #45853 )
...
* Fix GH-32798
* add assume true
* Address Gabby comments
* Address Gabby comments by adding Else branch
2021-09-22 10:54:59 -07:00
csigs
5a9e1af7de
LEGO: Merge pull request 46008
...
LEGO: Merge pull request 46008
2021-09-22 10:13:57 -07:00
csigs
9f12799b08
LEGO: Merge pull request 46002
...
LEGO: Merge pull request 46002
2021-09-22 04:15:23 -07:00
Nathan Shively-Sanders
15722e6b64
Remove referenceGroups/noReferences from fourslash ( #45988 )
...
* Remove referenceGroups/noReferences from fourslash
I left most singleReferenceGroups because there were so many, and my current
PR doesn't affect many of them.
* update fourslash/server too
* Explicitly sort keys
Needed for node 10 compatibility
* Revert "Explicitly sort keys"
This reverts commit 1d1c58a4e3
.
It shouldn't be needed now that we're not testing with node 10
2021-09-21 16:25:52 -07:00
csigs
826b6148dc
LEGO: Merge pull request 45997
...
LEGO: Merge pull request 45997
2021-09-21 16:18:34 -07:00
Oleksandr T
9b3ba871fb
fix(45987): fix pasring invalid names ( #45994 )
2021-09-21 14:02:58 -07:00
csigs
252620b956
LEGO: Merge pull request 45989
...
LEGO: Merge pull request 45989
2021-09-21 10:13:58 -07:00
Eli Barzilay
3a8591b544
Fix const assertions on enums
...
Fixes #45977
2021-09-21 12:42:28 -04:00
Ikko Ashimine
c6f9732857
Fix typo in findAllReferences.ts ( #45973 )
...
occurences -> occurrences
2021-09-20 17:13:38 -07:00
Wenlu Wang
ec114b8931
Import assertion ( #40698 )
...
* Add parsing
* fix all api
* check gramma of import call
* Add more part of assertion
* Add some case
* Add baseline
* use module insted of target
* strip assertion in d.ts
* Update new baseline
* accept baseline
* Revert error number changes
* Update diagnostic message
* Accept baseline
* rename path
* Fix cr issues
* Accept baseline
* Accept baseline
* Error if assertion and typeonly import
* Accept baseline
* Make lint happy
* Add some comment
* Fix cr issues
* Fix more issue
* Incorporate PR feedback, fix module resolution for import()
* Add contextual type and completions for ImportCall options argument
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2021-09-20 14:15:22 -07:00
Hiroshi Ogawa
5ef043987a
fix(45802): keep children of mismatched jsx element ( #45839 )
...
* fix(45802): keep children of mismatched jsx element
* Apply suggestions from code review
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2021-09-20 07:19:55 -07:00
csigs
285c0e2dcb
LEGO: Merge pull request 45947
...
LEGO: Merge pull request 45947
2021-09-17 16:17:42 -07:00
Armando Aguirre
8346143450
Fixed trimming comments on the remaining range ( #45807 )
...
* Fixed trimming comments on the remaining range
* Added test
2021-09-17 14:00:04 -07:00
csigs
3c27c3a5ca
LEGO: Merge pull request 45940
...
LEGO: Merge pull request 45940
2021-09-17 10:19:02 -07:00
csigs
3a4b19cdbf
LEGO: Merge pull request 45935
...
LEGO: Merge pull request 45935
2021-09-17 04:18:16 -07:00
csigs
dfc6d7c08c
LEGO: Merge pull request 45931
...
LEGO: Merge pull request 45931
2021-09-17 03:37:55 -07:00
Ron Buckton
b23f44aee5
Simplify a branch of the Awaited type and clean up comments ( #45918 )
2021-09-16 15:04:09 -07:00
Oleksandr T
534fc14c66
fix(45850): Preserve const enums should keep import refs for exported const enums exported via named exports ( #45858 )
2021-09-16 10:15:41 -07:00
csigs
b2a6b49201
LEGO: Merge pull request 45914
...
LEGO: Merge pull request 45914
2021-09-16 10:13:44 -07:00
Justin Brown
f7a80029a3
Fix for resolvedTrueType and resolvedFalseType of conditionType not resolved ( #45838 )
...
* Fix for Issue #45537
* tests/baselines/reference/* files updated
2021-09-16 09:26:43 -07:00
csigs
d16ece0a44
LEGO: Merge pull request 45904
...
LEGO: Merge pull request 45904
2021-09-15 22:13:36 -07:00
csigs
a42fcf23f0
LEGO: Merge pull request 45895
...
LEGO: Merge pull request 45895
2021-09-15 16:13:23 -07:00
Kevin Tan
add85e1828
fix: add corresponding message for override error in js files ( #45656 )
...
* fix: add override errors for js class members
* fix: test failures of js override error message
* update diagnostic messages
* fix: test errors
* fix: lint errors
2021-09-15 15:19:58 -07:00
Orta Therox
b2f9432c40
Support resolving @typescript/[lib]
in node modules ( #45771 )
...
* Support resolving @typescript/x for libs
* Baselines
* Tightens up the PR
* Fix the build
* Add cache
* Better naming
* Fixes the lookup path
2021-09-15 21:25:08 +01:00
Orta Therox
7cba51947a
Go back to the old spelling of NumberFormatPartTypes to not break DT ( #45889 )
2021-09-15 18:21:39 +01:00
csigs
61ddc518ef
LEGO: Merge pull request 45892
...
LEGO: Merge pull request 45892
2021-09-15 10:14:24 -07:00
Oleksandr T
40fa0c9f11
fix(44880): allow narrowing aliased conditions for catch variables ( #45797 )
2021-09-14 10:05:36 -07:00
Hiroshi Ogawa
4f8aa5239e
feat(45679): support 'did you mean' diagnostics for string literal union ( #45723 )
...
* feat(45679): support 'did you mean' diagnostics for string literal union
* Format suggested type with `typeToString`
* Address feedback
2021-09-14 08:53:36 -07:00
Orta Therox
2eecb3d954
Adds back NumberFormatPartType to the global types from intl ( #45843 )
2021-09-13 20:02:38 +01:00
Anders Hejlsberg
5b84512ccc
Fix infinite recursion in control flow analyzer inlining logic ( #45845 )
...
* Move inlineLevel counter to main type checker scope
* Add regression test
2021-09-13 11:02:55 -07:00