https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
bbb31bb Bump version to 4.4.3 and LKG 10 September 2021, 20:36:51 UTC
782c09d Cherry-pick PR #45484 into release-4.4 (#45564) Component commits: 33829fa4a4 Fix and updated tests 2249d6c83e Added test e1a2b9ed19 Revert "Fix and updated tests" This reverts commit 33829fa4a4a4cc0b54d3793ced9a31fa42930e3a. 51881c4ea2 Filter out empty access expression 2253da6ae9 PR feedback Co-authored-by: Armando Aguirre <armanio123@outlook.com> 30 August 2021, 21:18:11 UTC
9eb689e Cherry-pick PR #45642 into release-4.4 (#45644) Component commits: 58e56ed5d6 Close package json watches in watch mode on close Co-authored-by: Wesley Wigham <t-weswig@microsoft.com> 30 August 2021, 21:05:16 UTC
a10409c Bump version to 4.4.2 and LKG 24 August 2021, 00:07:38 UTC
5719423 Only provide hints for simple literals when 'literals' is specified. (#45557) * Only provide hints for simple literals when 'literals' is specified. * Update fourslash tests. 23 August 2021, 23:40:12 UTC
d2a46a0 Cherry-pick PR #45554 into release-4.4 (#45555) Component commits: c9846f8b83 Restore HTMLDocument constructable value in DOM Don't touch anything else in the DOM. Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com> 23 August 2021, 23:24:22 UTC
a417917 Some cleanup around inlay hints types to get more-precise checking. (#45391) * Some cleanup around inlay hints types to get more-precise checking. * Update Baselines and/or Applied Lint Fixes Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com> 23 August 2021, 23:20:36 UTC
7b0e665 Cherry-pick PR #45426 into release-4.4 (#45445) Component commits: 01077c1299 fix(45417): show inlay hints for null and literal-like identifiers Co-authored-by: Oleksandr T <oleksandr.tarasiuk@outlook.com> 16 August 2021, 21:11:35 UTC
55dd850 Update LKG. 11 August 2021, 21:50:36 UTC
e9b1ff5 Fix __spreadArray for non-concat-spreadables (#45386) 11 August 2021, 21:47:24 UTC
11339d9 Update LKG 11 August 2021, 06:41:16 UTC
c82ccf1 Cherry-pick PR #45399 into release-4.4 (#45404) Component commits: f7af8f4a4a fix(45393): show parameter name hints for unary literal expressions Co-authored-by: Oleksandr T <oleksandr.tarasiuk@outlook.com> 11 August 2021, 06:20:29 UTC
0648de8 Cherry-pick PR #45352 into release-4.4 (#45384) Component commits: 58a924d968 fix(45345): throw an error on overridden member that is defined in multiple interfaces Co-authored-by: Oleksandr T <oleksandr.tarasiuk@outlook.com> 10 August 2021, 18:50:33 UTC
c8b1e45 Cherry-pick PR #45394 into release-4.4 (#45396) Component commits: 61dd78f65d Use getFileAndProject in session provideInlayHints to ensure language service updates are applied Co-authored-by: Wesley Wigham <t-weswig@microsoft.com> 10 August 2021, 18:48:39 UTC
e7fd303 Bump version to 4.4.1-rc and LKG 06 August 2021, 22:43:19 UTC
eb1e566 Merge branch 'main' into release-4.4 06 August 2021, 22:26:45 UTC
792e6d6 Fix symbol display exception when handling incomplete class (#44936) When a class declaration lacks a name, don't throw an exception when producing the display parts (e.g. for QuickInfo). Remaining issues: 1. The name shows as "__missing", the name of the underlying symbol, rather than "(Missing)", as it is for the corresponding function declaration case (because the parse constructs a missing identifier node for the function declaration). 2. "(Missing)" is hard-coded, rather than being a localizable resource string. 3. When an anonymous class declaration is a default export, the corresponding symbol is named "default", resulting in the confusing display string "class default". Since display parts are built using existing `symbolToString` functionality, it wasn't clear whether detecting special symbol names and replacing them with user-friendly strings could be done without breaking other functionality. Similarly, changing the shape of the parse tree seemed riskier than the problem justified (the user experience is just not getting QuickInfo for the incomplete declaration, which seems acceptable). 06 August 2021, 22:05:54 UTC
7753efa Improve error message TS1210 (#44892) 06 August 2021, 22:00:26 UTC
cce2e92 feat(45163): add QF to declare missing jsx attributes (#45179) 06 August 2021, 19:38:22 UTC
abfe5f0 LEGO: Merge pull request 45346 LEGO: Merge pull request 45346 06 August 2021, 17:13:49 UTC
409be37 Fix index signature assignability from optional properties in --exactOptionalPropertyTypes mode (#45185) * Explicit undefined not assignable to non-undefined index signature in exactOptionalPropertyTypes mode * Add tests 06 August 2021, 06:54:00 UTC
3bd5079 Fix check for generic types in control flow analysis (#45148) * Fix check in hasNonBindingPatternContextualTypeWithNoGenericTypes * Add regression tests * Accept new baselines * Compute both ObjectFlags.IsGenericXXXType flags in one go 06 August 2021, 06:53:30 UTC
54898de Update package-lock.json 06 August 2021, 06:06:10 UTC
4fc4c18 Fix completions in return when in function with contextual 'this' (#45340) 06 August 2021, 05:40:20 UTC
c0796c1 Enable events on web server (#45313) Fixes #45293 05 August 2021, 23:10:01 UTC
1f85123 Revisions for the new --help (#44800) * WIP on refining the new --help * Fix types in the boolean trivial lint rule * Update baselines * More work * Updates the color logic * Simplifies the CLI color code * Use cyan instead of blue for win powershell/command prompt * Use bright white when blue is probably going to look off * Fix NO_COLOR * Adds a test to cover NO_COLOR * Update src/compiler/diagnosticMessages.json Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> * Update compiler diagnostic text Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> 05 August 2021, 15:41:01 UTC
635f5bd Some tweaks for backtick strings 1. `getRawLiteral()`: barf if `currentSourceFile` is missing, since if it is, then the following `getSourceTextOfNodeFromSourceFile` will return a bogus `""`. 2. One `||` -> `??` change. 3. `backtickQuoteEscapedCharsRegExp`: escape the usual control characters except for a simple LF. This code does get used to generate backtick strings when `rawText` is not given, and not escaping things like TAB characters can get mangled by editor settings. Worse, not escaping a CRLF and putting it verbatim in sthe string source will interpret it as LF, so add a special case for escaping these as `\r\n`. Added test. Related to #44313 and #40625. 05 August 2021, 09:45:34 UTC
3266ffb Update package-lock.json 05 August 2021, 06:05:50 UTC
b9e952b Migrate over 4.4 lib dom and webworker (#45324) * Brings across 4.4 DOM + Web Worker changes * Adds tests * Incorporate #1092 and #1093 from TypeScript-DOM-lib-generator * update baselines Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 05 August 2021, 00:14:24 UTC
f80bc3f Store symbol table map key in CachedSymbolExportInfo (#45289) * Store symbol table map key in CachedSymbolExportInfo * Remove debug assertion * Filter out known symbols (again) and private identifiers 04 August 2021, 23:31:47 UTC
2bae169 `convertStringOrTemplateLiteral.ts`: Re-fix `escapeStringForTemplate` Make it backslash-escape backticks too. While I was there, remove the use of this function for the text (which was the earlier confused version that used only `text`), and rename it as `escapeRawStringForTemplate` to clarify. Added a test to the preivious pile of tests. Fixes #45278. 04 August 2021, 22:37:31 UTC
03dff41 Fix getting completion details for meta properties (#45031) * Fix getting completion details for meta properties. * Move inside the worker. * Move ImportMeta handling to completions.ts * Fix property type name for new.target. * Use symbols for ImportMeta completions. * Accept baselines. * Revert lib change. * Revert needless parser change. * Missed these reverts. * Remove now unused `isMetaPropertyExpression` * Move up meta property keyword check to be done in `getSymbolAtLocation` and `getTypeOfNode` * Call `checkNewTargetMetaProperty` directly and handle when it's an error type. * Make meta property expression types synthetic. * Make event.target and import.meta properties readonly * Add a test for go to definition (I think?) * Copy built-in types/values test for go to definition. * Add tests for go to definition when not a module. * Fix "go to definition" for new.target 04 August 2021, 16:41:04 UTC
318930b fix(45221): suggest unknown symbols in type positions (#45323) 04 August 2021, 16:37:06 UTC
f1ce0f5 Visit children of jsdoc type aliases in the binder (#45312) * Visit children of jsdoc type aliases in the binder This sets up parent pointers. Fixes #45254 and almost certainly #45248, though I haven't figured out to repro the second case. * move incorrect parenthesis * manually set comment parent instead * Bind children of typedef where possible * add explanatory comment to binding 04 August 2021, 14:05:11 UTC
1cbb0bd Do not classify Infinity and NaN (#44778) * Do not classify Infinity and NaN. Fixes #42022 * Internally expose so that the classifier can use it * Increase the test complexity, and revert the type-checker * Drop the -Infinity Co-authored-by: Orta <git@orta.io> 04 August 2021, 09:00:39 UTC
4646640 Update package-lock.json 04 August 2021, 06:06:05 UTC
5971b68 fix(45224): show inlay hints for setter parameter (#45229) 03 August 2021, 18:33:26 UTC
c408043 fix(45102): do not suggest refactoring for functions contains arguments reference (#45116) 03 August 2021, 18:31:56 UTC
5a2153a Fix position of keyword in "Add 'override' modifier" code fix (#45274) fixes #45270 03 August 2021, 18:01:30 UTC
ceef6f7 Dev: Have a clickable link for a new baseline created (#44552) * Have a clickable link for a new baseline created * Use joinPath instead: 03 August 2021, 15:18:39 UTC
5a19533 Update package-lock.json 03 August 2021, 06:05:56 UTC
39c653c fix: omit inlay hints for setters (#45228) 02 August 2021, 23:27:22 UTC
975aabe Ensure all `SortText` entries have the same length (#45292) * Ensure all `SortText` entries have the same length. * Update Baselines and/or Applied Lint Fixes * Update the exact same enum to the exact same values in fourslash. 🙄 * Make `SortTextId` a const enum, switch to use an explicit offset in `SortTextId`. Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com> 02 August 2021, 23:27:01 UTC
f30ba36 LEGO: Merge pull request 45299 LEGO: Merge pull request 45299 02 August 2021, 23:13:44 UTC
d2f324b Add test for intersection narrowing bug (#45296) 02 August 2021, 23:12:09 UTC
9cc3070 expose getImmediateAliasedSymbol() publicly (#44644) Signed-off-by: Kubilay Kahveci <kahvecikubilay@gmail.com> 02 August 2021, 22:57:54 UTC
642060d Replace non-null assertion with optional chain on assert nodes (#43788) 02 August 2021, 22:26:48 UTC
c23abc8 fix(45192): show implement interface QF for re-exported types (#45245) 02 August 2021, 22:19:19 UTC
bfd5b2f Fix decorator metadata references to type-only-imported namespaces (#44915) * Add test * Fix metadata references to type-only-imported namespaces * Use `!!` instead of `|| false` 02 August 2021, 21:18:15 UTC
7669bfb Actually instantiate the type of the annotation used for contextual types (#45285) 02 August 2021, 19:44:56 UTC
afe9cf5 Update package-lock.json 02 August 2021, 06:06:07 UTC
52af8bf Update package-lock.json 01 August 2021, 06:06:09 UTC
582e404 Update package-lock.json 31 July 2021, 06:05:54 UTC
fcf7baf fix(44812): add outlining spans for comments inside blocks (#44847) 30 July 2021, 22:56:32 UTC
76d7543 Fix bigInt completions (#45059) * Fix bigInt completions * Added regresion test 30 July 2021, 21:40:50 UTC
bbd9c3a Use arrow functions to bind globals correctly in web scenarios (#45242) * Use arrow functions to bind globals correctly in web scenarios https://github.com/microsoft/vscode/issues/127700#issuecomment-889443607 * Add missing spread operators 30 July 2021, 21:22:30 UTC
8cdcec4 Avoid provide hints for binding patterns (#44961) * Avoid provide hints for binding patterns * Rename as 56 30 July 2021, 16:43:20 UTC
0f6e6ef Avoid no-op export map updates (#45238) * Add id and version to ManyToManyPathMap ...so that unchanged maps can be recognized without having to examine their contents. * Track cache version on BuilderState In practice, `updateExportedFilesMapFromCache` is called repeatedly without the cache changing in between. When this occurs, there's no need to update the `BuilderState` (this was already the net effect, but it took a long time to determine that no work was required). * Fix typo in comment 30 July 2021, 16:27:32 UTC
9d957c6 Fix getChildCount/At methods in EndOfFileTokens (#44991) * Fix getChildCount/At methods in EndOfFileTokens Before, they were hardcoded to return `0` and `undefined!`, respectively, but that is inaccurate for `EndOfFileToken`s with attached jsdoc. * Add tests for getChild* methods on EndOfFileTokens 30 July 2021, 16:03:19 UTC
42915c3 Update package-lock.json 30 July 2021, 06:06:14 UTC
db0f793 Allow narrowing for any left-hand in operand (#45152) * allow narrowing for any left-hand in operand 29 July 2021, 21:06:45 UTC
366e9de Fix compiler crash on property symbols without declarations (#45190) * don't track computed name if symbol has no declaration * add compiler test * add non serializable property declaration emit error * don't track computed name if symbol has no declaration * fix small stuff * rebase: add non serializable property declaration emit error * use symbolToString instead of symbolName 29 July 2021, 19:42:54 UTC
6277305 Fix import statement completions for export= in JS files (#45128) 29 July 2021, 17:28:47 UTC
c79ec7b fix(45225): do not show add missing member QF for libraries files (#45231) 29 July 2021, 17:22:27 UTC
7e8bba6 Fix template string refactoring and nodeFactory bug Instead of letting `createTemplate*` generate a broken raw string from the cooked one, grab the source code for it. Also, add a missing bit to `\`-quote `$`s. As the comment in the code says, it could just `\`-quote `${` since other `$`s are valid, but I think that it's less confusing to always quote $s (but the change is in the comment if minimalism is preferred). Also, a small-but-confusing bug in `getCookedText()`. Many tests for all of this. Fixes #40625 29 July 2021, 08:23:06 UTC
52ca2dd Update package-lock.json 29 July 2021, 06:06:00 UTC
7c197be feat(45210): add inlay hints for getters and setters (#45214) 28 July 2021, 21:52:37 UTC
d1d65cb Update package-lock.json 28 July 2021, 06:06:05 UTC
b81eb6c fix(45182): allow property access in arrow function (#45193) 27 July 2021, 16:46:17 UTC
85e0e5a fix(44837): add graceful recovery for require completions (#45151) 26 July 2021, 22:26:43 UTC
9334a15 Add transitive pnpm import statement completions test (#45186) 26 July 2021, 21:24:59 UTC
9665bc6 Supress hints for access expr too (#45121) 26 July 2021, 18:59:14 UTC
11c7dae fix(45114): throw an error when using '#' as an identifier (#45124) 26 July 2021, 18:39:17 UTC
ba22616 fix(45157): omit error after property declaration without semicolon (#45165) 26 July 2021, 16:57:58 UTC
1296239 Update package-lock.json 26 July 2021, 06:07:42 UTC
f449ab1 Update package-lock.json 25 July 2021, 06:06:00 UTC
90e1554 Update package-lock.json 24 July 2021, 06:05:56 UTC
48aecfa Consider module augmentations in files referenced by imports in watch/incremental (#45156) * Consider module augmentations in files referenced by importsin watch/incremental * Accept baselines * Accept other baseline * Hooray optional chaining * Delete outdated and unuseful comment 23 July 2021, 23:32:52 UTC
f029a82 Filter auto imports by symbol flags before resolving module specifiers (#45168) * Filter auto imports by symbol flags before resolving module specifiers * Don’t filter types out of import statement completions 23 July 2021, 22:56:34 UTC
a947bbb Update package-lock.json 23 July 2021, 06:06:15 UTC
7c4c0a3 Update package-lock.json 22 July 2021, 06:06:22 UTC
9c8a90d Check cancellation token during exportInfoMap generation (#45138) 21 July 2021, 21:17:34 UTC
e064817 feat(42639): allow narrowing type in 'in' operator with the identifier on the left side (#44893) 21 July 2021, 16:10:32 UTC
1e2c77e Update package-lock.json 21 July 2021, 06:07:17 UTC
31d98ec Don’t try to create auto import provider when host program doesn’t exist (#45126) * Guard against creating auto import provider without host program * Also don’t pre-seed auto import provider if updateGraph didn’t produce a program * Rename `isFirstLoad` 20 July 2021, 18:16:58 UTC
365b256 Fix and validate post-increment/decrement in module emit (#44968) 19 July 2021, 20:34:42 UTC
476054e Fix auto import crashes caused by unrelocatable symbols (#45055) * Add failing test * Fix auto import crashes caused by unrelocatable symbols * Use util for testing if symbol is an external module 19 July 2021, 17:32:47 UTC
36225c3 Detect preference for U`node:`-prefixed node core modules (#45080) 19 July 2021, 16:56:24 UTC
ddbd829 LEGO: Merge pull request 45092 LEGO: Merge pull request 45092 18 July 2021, 23:17:56 UTC
a84ca30 LEGO: Merge pull request 45088 LEGO: Merge pull request 45088 18 July 2021, 05:14:11 UTC
64e19ff LEGO: Merge pull request 45087 LEGO: Merge pull request 45087 17 July 2021, 23:17:42 UTC
7ad7617 LEGO: Merge pull request 45085 LEGO: Merge pull request 45085 17 July 2021, 17:13:32 UTC
4ca716c Update package-lock.json 17 July 2021, 06:06:08 UTC
5e55501 LEGO: Merge pull request 45083 LEGO: Merge pull request 45083 17 July 2021, 05:14:50 UTC
cf8217f LEGO: Merge pull request 45081 LEGO: Merge pull request 45081 16 July 2021, 23:13:58 UTC
b300ef4 Check for watched directories before clearing map (#44947) 16 July 2021, 22:35:38 UTC
1aac355 fix(45049): fix diagnostic for missing property initializer (#45052) 16 July 2021, 22:10:42 UTC
ba2e260 fix(44701): allow renaming string literal in rhs/lhs of equality (#44708) 16 July 2021, 21:45:06 UTC
193b749 Properly propagate silentNeverType in intersections (#45073) * Properly propagate silentNeverType in intersections * Add regression test 16 July 2021, 18:20:04 UTC
d0efe90 Dont swallow declaration emit errors when issued on nodes without names (#44995) 16 July 2021, 17:30:22 UTC
back to top