https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
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
7ef66f6 LEGO: Merge pull request 45072 LEGO: Merge pull request 45072 16 July 2021, 17:13:11 UTC
d8f2aae Shorten baseline names (#45054) Fixes #45051 16 July 2021, 17:01:36 UTC
00596e1 fix(44168): exclude adding export to existing exported identifier (#44755) 16 July 2021, 16:40:17 UTC
23ebe04 fix(44902): resolve members in Union or Intersection types (#44904) 16 July 2021, 16:07:52 UTC
e4da7a9 LEGO: Merge pull request 45067 LEGO: Merge pull request 45067 16 July 2021, 11:13:22 UTC
8268f2a Avoid bogus circularity error on context sensitive constructor property assignments (#44601) * Avoid bogus circularity error on context sensitive constructor property assignments * Add JS case and ensure its fixed 16 July 2021, 00:06:56 UTC
87cff4e LEGO: Merge pull request 45060 LEGO: Merge pull request 45060 15 July 2021, 23:13:30 UTC
6d3772f Fix auto import require of CJS module with module:es2015+ and allowSyntheticDefaultExports (#44955) 15 July 2021, 23:08:05 UTC
541e553 Specific diagnostic suggestions for unexpected keyword or identifier (#43005) Error message improvement for unexpected tokens in the following situations: * A word was parsed that seems to have a low edit distance from a known common keyword * A word was parsed that seems to be a known common keyword and a name _without_ a space in-between * Parsing in a particular type of node (mostly a class property declaration) got a different word or token than expected ___ * Specific diagnostic suggestions for unexpected keywords or identifier * Don't reach into there, that's not allowed * Improved error when there is already an initializer * Specific module error message for invalid template literal strings * Skip 'unexpected keyword or identifier' diagnostics for declare nodes * Improve error for function calls in type positions * Switch class properties to old diagnostic * Corrected errors in class members and reused existing textToKeywordObj map * Corrected more baselines from the merge * Update src/compiler/parser.ts Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> * Mostly addressed feedback * Clarified function call type message * Split up and clarified parsing vs error functions * Swap interface name complaints back, and skip new errors on unknown (invalid) tokens * Used tokenToString, not a raw semicolon * Inline getExpressionText helper * Remove remarks in src/compiler/parser.ts Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> 14 July 2021, 20:50:55 UTC
3358f13 Fix namespace name conflict detection in "Convert named imports to namespace import" action (#45019) * fix namespace conflict detection 14 July 2021, 18:07:12 UTC
2b8296b chore(typo): fix comment (#45016) 14 July 2021, 16:28:48 UTC
9247ef1 Update package-lock.json 14 July 2021, 06:06:00 UTC
40ec839 Fixes JSDoc @type function with variable args is interpreted incorrectly (#44864) * Fixes #44386 * Add test * Move test from fourslash to conformance 14 July 2021, 00:17:24 UTC
0996bff Support syntactic diagnostics in partial mode (#44859) * Initial work to support syntactic diagnostics in partial mode. * Test out 'syntacticDiagnosticsSync' requests. * Added a 'geterr' test. * Accepted baselines. * Remove/clean up comments. 13 July 2021, 18:22:34 UTC
acdf62f Fix "Union types are not being narrowed down correctly in 4.3 #44401" (#44771) * Fix "Union types are not being narrowed down correctly in 4.3 #44401" * On undefined constraint, add the original type to constraints. 13 July 2021, 18:02:18 UTC
c17fd8c Update package-lock.json 13 July 2021, 06:06:06 UTC
f453a28 LEGO: Merge pull request 45000 LEGO: Merge pull request 45000 13 July 2021, 05:13:14 UTC
8e855d1 Watch mode watches for changes in package.json files used in resolution (#44935) * watch mode watches for changes in package.json files used in resolution * Pathify result of realpath * Actually accept pathified baselines 13 July 2021, 00:23:08 UTC
0746f70 LEGO: Merge pull request 44989 LEGO: Merge pull request 44989 12 July 2021, 17:14:10 UTC
3c604f1 LEGO: Merge pull request 44987 LEGO: Merge pull request 44987 12 July 2021, 11:13:35 UTC
back to top