Commit Graph

34431 Commits

Author SHA1 Message Date
Ron Buckton
2c67c8f756 Enforce NLT restriction after 'accessor' keyword (#52763) 2023-02-15 12:51:25 -05:00
TypeScript Bot
d8e81bbf6e Update package-lock.json 2023-02-15 06:06:54 +00:00
Anders Hejlsberg
7d00bb078d Widening and non-widening computed enum types (#52542) 2023-02-14 16:25:46 -08:00
Oleksandr T
de2ab4ab8f fix(52761): overload tag is not supported in completions (#52762) 2023-02-14 14:25:00 -08:00
Anders Hejlsberg
84b8483206 Improvements to strictSubtypeRelation and getNarrowedType (#52282) 2023-02-14 12:12:42 -08:00
Oleksandr T
a8b4a3b637 fix(52061): Constructor parameters exported as type included in emitted metadata (#52138) 2023-02-14 12:03:54 -08:00
Tobias S
df6b9e5754 fix property completion in unions of object types and template literal types (#52196) 2023-02-14 10:50:53 -08:00
Andrew Branch
48e812aa07 Prefer top-level type-only imports in verbatimModuleSyntax (#52747) 2023-02-14 10:23:08 -08:00
Mateusz Burzyński
ab40f5e5d0 Avoid caching resolved signatures for language service requests like signature help (#52679) 2023-02-14 09:47:32 -08:00
Ron Buckton
f23dd7a7b2 Fix crash in getAwaitedType (#52752) 2023-02-14 11:16:12 -05:00
Anders Hejlsberg
72fb827045 Check conditional types in depth in isTypeParameterAtTopLevel (#52648) 2023-02-14 07:33:22 -08:00
TypeScript Bot
9c40be1b42 Update package-lock.json 2023-02-14 06:07:26 +00:00
Andrew Branch
99927cad95 Replace all instances of compilerOptions.isolatedModules with function considering verbatimModuleSyntax (#52746) 2023-02-13 16:03:02 -08:00
Jake Bailey
79df2bcd35 Don't allow everything to be assignable to string within string mappings like Uppercase/Lowercase (#52734) 2023-02-13 17:58:56 -05:00
Jake Bailey
5b71f59450 Fix spurious circularity caused by removeOptionalityFromDeclaredType, cache result (#52696) 2023-02-13 17:55:12 -05:00
Daniel Rosenwasser
6aba9b8a24 Drop deferredNodes after checking them all. (#52606) 2023-02-13 13:50:57 -08:00
Mateusz Burzyński
738b45e219 Fixed crash in checkExportsOnMergedDeclarationsWorker (#52740) 2023-02-13 11:24:15 -08:00
TypeScript Bot
098e18ebc1 Update package-lock.json 2023-02-13 06:06:58 +00:00
TypeScript Bot
ed15865eb0 Update package-lock.json 2023-02-11 06:06:14 +00:00
Andrew Branch
aa658257c9 Fix completion details auto-imports crashes (#52686) 2023-02-10 15:26:09 -08:00
Anders Hejlsberg
c838b0cb7e Consult cached contextual types only when no contextFlags (#52611) 2023-02-10 11:17:59 -08:00
TypeScript Bot
1c9ce4fc2e Update package-lock.json 2023-02-10 06:06:59 +00:00
Gabriela Araujo Britto
7612a3afc7 Fix crash on addImportFromExportedSymbol with default exported symbol (#52694) 2023-02-09 16:31:58 -08:00
Daniel Rosenwasser
7fb6c99c19 Don't create an unnecessary text span in isInStringOrRegularExpressionOrTemplateLiteral (#52697) 2023-02-09 15:37:22 -08:00
Anders Hejlsberg
bd905d4936 Fix crash in union subtype reduction involving template literal and string mapping types (#52699) 2023-02-09 15:04:57 -08:00
Ron Buckton
6c9792aa87 Decorators normative changes (#52582) 2023-02-09 14:48:45 -05:00
Jake Bailey
0ef9e8eac9 Ensure we treat "type assertions" as JSX within a unary expression (#52667) 2023-02-09 11:34:47 -08:00
Jake Bailey
bec0fdac23 Add test for already fixed issue 49778 (#52668) 2023-02-09 11:04:07 -08:00
Gabriela Araujo Britto
9a14949686 Fix accessing toString of features map (#52340) 2023-02-09 10:22:22 -08:00
Anders Hejlsberg
57ebd99ff2 Exclude typeof this from check in isConstantReference (#52680) 2023-02-09 07:06:09 -08:00
Oleksandr T
1c822c42a4 feat(52097): "Add missing properties" quick fix for calculated string values ... (#52135) 2023-02-08 17:25:39 -08:00
Andrew Branch
a0afacd262 Avoid caching duplicate export info from AutoImportProvider (#52683) 2023-02-08 12:36:12 -08:00
TypeScript Bot
963f913014 Update package-lock.json 2023-02-08 06:06:47 +00:00
TypeScript Bot
a89f4168bd Update package-lock.json 2023-02-07 06:06:24 +00:00
Oleksandr T
cdeb1e3660 feat(48702): Emit for dynamic import (import()) when target >= ES2020 and module == None (#50942) 2023-02-06 16:18:06 -08:00
Mateusz Burzyński
76c23e43da Fixed binding element types coming from the out of tuple bounds under noUncheckedIndexedAccess (#52318) 2023-02-06 16:17:05 -08:00
Mateusz Burzyński
40208a8ca7 Narrow references within optional chains in for-in loops (#52059) 2023-02-06 16:15:27 -08:00
Gabriela Araujo Britto
4775381811 Ensure projects are updated for find all references (#52583) 2023-02-06 15:42:05 -08:00
Jake Bailey
59844e7f6c Don't consult JSDoc outside of JS in expando function assignment declarations (#52640) 2023-02-06 15:28:21 -08:00
Mateusz Burzyński
6b43f82774 Filter out existing cases from string completions (#52633) 2023-02-06 13:16:29 -08:00
Andrew Branch
7d8f6eec46 Add cache to auto-import package.json filter (#52422) 2023-02-06 11:33:04 -08:00
Anders Hejlsberg
720ec45be5 Improve handling of corner cases in narrowTypeByInstanceof (#52592) 2023-02-06 11:32:33 -08:00
Andrew Branch
7bfe6ac49a Make traces where #50762 happens machine analyzable (#52602) 2023-02-06 11:31:07 -08:00
Oleksandr T
70d14f3de2 fix(52594): this incorrectly applies in TS files in typeToString (#52610) 2023-02-06 08:59:32 -08:00
Andrew Branch
0bf99914e7 Make emitModuleKindIsNonNodeESM internal (#52599) 2023-02-06 08:44:58 -08:00
TypeScript Bot
1ed0a5ac4b Update package-lock.json 2023-02-05 06:06:09 +00:00
pyBlob
00eb22030f Fix completion of partial identifier inside a JsxExpression (#52572)
Co-authored-by: Karl Kraus <karl.kraus@avantagarde-talents.de>
Co-authored-by: Gabriela Araujo Britto <gabrielaa@microsoft.com>
2023-02-03 16:54:56 -08:00
Mateusz Burzyński
c9b5f2b022 Replace missingType with undefinedType in the IndexedAccessTypeNode's type (#52016) 2023-02-03 16:32:22 -08:00
Vitaly
c06711da1b Handle literal string union complete pattern for JSX attribute snippets (<input type />) (#52562)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2023-02-03 15:40:00 -08:00
Andrew Branch
2e9da1e5a1 Remove always-incorrect error message about importing .ts extensions (#52595) 2023-02-03 15:02:57 -08:00