https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
cfaca9a temp 05 February 2020, 16:57:00 UTC
0944110 Expose hasOnlyExpressionInitializer as a public type guard (#33229) Exposes `hasOnlyExpressionInitializer` as a public function so users of TypeScript compiler APIs do not have to roll their own `HasExpressionInitializer` type guards. Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 05 February 2020, 00:01:20 UTC
044355b Add rxjs to the docker suite (#33500) 05 February 2020, 00:00:08 UTC
da8d3ef Drop support for defunct Chakra host (#33797) 04 February 2020, 23:53:45 UTC
2e97918 Make Response.performanceData public (#36595) 04 February 2020, 23:07:48 UTC
8c31700 Enable @typescript-eslint/space-before-function-paren, @typescript-eslint/no-unused-expressions (#36569) * use @typescript-eslint/no-unused-expressions instead of no-unused-expressions * enable @typescript-eslint/space-before-function-paren 04 February 2020, 22:43:25 UTC
7726464 De-duplicate indentations in JSX Texts (#36552) * WIP on making the JSX text node not include whitespace * Scans to the last newline for JSX correctly * Handle JSX closing element wrapping * Offload all jsx text indentation handling to indentMultilineCommentOrJsxText * Switch from find node -> find inde in formatting Co-authored-by: Wesley Wigham <wwigham@gmail.com> 03 February 2020, 22:09:50 UTC
1c42fd4 fix(33600): disallow convertFunctionToEs6Class Quick Fix for IIFE (#36580) 03 February 2020, 21:52:08 UTC
ba4f59f Update user baselines (#36578) 03 February 2020, 20:48:57 UTC
ef8eb0c Fix contextually typed object literal completions where the object being edited affects its own inference (#36556) * Conditionally elide a parameter from contextual type signature calculation * Slightly different approach to forbid inference to specific expressions * Handle nested literals and mapped types correctly * Delete unused cache * Rename ContextFlags.BaseConstraint and related usage * Add tests from my PR * Update ContextFlags comment Co-Authored-By: Wesley Wigham <wwigham@gmail.com> * Update comments and fourslash triple slash refs Co-authored-by: Wesley Wigham <wwigham@gmail.com> 31 January 2020, 23:37:18 UTC
ad24904 resolvedJSDocType should cache on node, not symbol (#36561) 31 January 2020, 23:19:45 UTC
86556d6 Fix `export *` that resolves to something type-only (#36558) * Fix `export *` that resolves to something type-only * Add same tests but non-tsserver 31 January 2020, 23:09:27 UTC
8db1d7b Do not adjust location for import/export keywords with more than one possible binding (#36560) 31 January 2020, 22:58:30 UTC
9a357c1 Fix wrong script info used to resolve line/offset for call hierarchy items (#36559) 31 January 2020, 22:41:25 UTC
01af3aa Support 'find references' on most declaration-related keywords (#36490) * Allow 'find references' to work on most declaration keywords * Add support for rename * Add more keywords, move logic out of checker and into services * Add additional type and expression keywords 31 January 2020, 19:53:57 UTC
afddaf0 Fix declaration for Array.prototype[Symbol.unscopables] (#36540) 31 January 2020, 18:42:02 UTC
fcf2850 Fix overzealous renaming of emit helpers in es module emit (#36541) 31 January 2020, 18:41:47 UTC
24d8f79 Fix crash in emitTokenWithComment (#36542) 31 January 2020, 18:41:09 UTC
80ad0de Fixes to handle file names in module resolution watching and createGetCanonicalFileName (#36106) * Add test case to verify directory casing preservation when watching * Fix unicode file name handling when watching failed lookup locations * Add special file name lower conversion routine and use that instead of toLowerCase Fixes #31819 and #35559 * Remove unicode from code * Replace toLocaleLowerCase on filenames with ts.toFileNameLowerCase * Make the intent of using toFileNameLowerCase more clear and why we make the restriction on turkish I with dot on top of it * Update baselines for newly added tests in master 31 January 2020, 18:40:57 UTC
ad8feb5 Filter out private fields in string literal property completions. Also some minor simplifications. Fixes 36082. 31 January 2020, 03:42:32 UTC
75d1ead Improvements based on @sandersn's notes 31 January 2020, 03:42:04 UTC
1a1ed74 Add a similar test for `target.symbol.valueDeclaration` (With the same question still open.) 31 January 2020, 03:42:04 UTC
68a9d45 Avoid testing `isClassDeclaration` if there's no `valueDeclaration` I'm not sure if this is enough -- perhaps it's better to make the test dig through the interface/s to the class? Fixes 36059. 31 January 2020, 03:42:04 UTC
f24f363 Fixes JSX attribute escaping when parent pointers are missing (#35743) * Fixes JSX attribute escaping when parent pointers are missing * Fix whitespace change 31 January 2020, 00:52:31 UTC
8ed1297 fix spelling errors (#36523) * fix spelling errors * remove changes in lib/* 30 January 2020, 21:39:54 UTC
bfff115 fix(35069): insert blank line after last new import (#36531) 30 January 2020, 19:20:09 UTC
4c378c0 Report config file parsing diagnostics correctly with tsc --b (#36520) * Refactor the test * Add tests for syntax errors in tsconfig not being reported * Report config file parsing diagnostics correctly Fixes #36515 * Fix errors in existing tests for unintended tsconfig parse errors * Fix lint 30 January 2020, 19:18:06 UTC
c1e45ac Fix use-before-def errors for ESNext property declarations (#36465) * Fix use-before-def errors for ESNext property declarations Fixes #36441 Fixes #36442 * Handle property declarations in nested classes 30 January 2020, 18:58:07 UTC
8a0b882 Fix contextually typed parameter issues (#36476) * Fix multiple issues with contextually typed parameters * Accept new baselines * Fix lint error * Add tests * Address CR feedback * Add fourslash tests 30 January 2020, 18:50:39 UTC
140fee9 Capture fakes.version instead of the current version string in baselines (#36518) * Capture CURRENT.VERSION instead of the current version string in baselines * Use fakes.version * Move replacer into patchHostForBuildInfoReadWrite 30 January 2020, 00:15:09 UTC
2fac535 Fix type-only imports in interface 'extends' and import=/export= (#36496) * Handle when files get checked in different orders * Fix interface extends clause * Fix import= something type only from a module * Revert apparently unnecessary addition * Revert "Revert apparently unnecessary addition" This reverts commit 7444b0b72ea2e628ff414b675ef42723a6a7695d. * Disallow `import = a.b.c` on anything with type-only imports * Safety first * Add test for TS Server single-file open * Add big comment * Extract error reporting function for import aliases * Delete blank line * Un-export, comment, and colocate some utils * Combine 3 type-only marking function calls into one * Add more export default tests 29 January 2020, 23:00:17 UTC
aec732a Actually use the caches resolvedJSDocType (#36516) 29 January 2020, 22:58:06 UTC
36169b4 Class fields w/esnext+[[Define]]:no shadow error (#36405) * Class fields w/esnext+[[Define]]:no shadow error With useDefineForClassFields: true and ESNext target, initializer expressions for property declarations are evaluated in the scope of the class body and are permitted to reference parameters or local variables of the constructor. This is different from classic Typescript behaviour, with useDefineForClassFields: false. There, initialisers of property declarations are evaluated in the scope of the constructor body. Note that when class fields are accepted in the ECMAScript standard, the target will become that year's ES20xx * add negative test case * Add explanatory comment 29 January 2020, 22:47:44 UTC
8da3eff Subtypes of ErrorConstructor extend it (#35549) Previously subtypes of Error extended Error, but the matching subtypes of ErrorConstructor did not extend ErrorConstructor. The members in es5.d.ts are identical, so there's no need except for allowing interface merging into ErrorConstructor to affect subtypes as well. 29 January 2020, 21:26:00 UTC
1bbcb55 @typedef's nested Object syntax disallows type arguments (#36172) Previously the jsdoc index signature syntax was incorrectly treated the same as Object: ```js /** @typedef {Object} AllowsNesting * @property ... */ /** @typedef {Object.<string,string>} IncorrectlyAllowsNesting */ ``` Fixes #34911 29 January 2020, 20:53:00 UTC
502e711 Dont use sourcemap if it contains inlined sources (#36384) Fixes #35014 29 January 2020, 19:21:42 UTC
566202f Fix commas in JSON (#36497) 29 January 2020, 18:50:03 UTC
c42ef57 createPrivateIdentifier: names must start with # (#36506) 29 January 2020, 18:11:30 UTC
0cf100d Add constructor functions to aliasable expressions (#36108) * Add constructor functions to aliasable expressions Fixes #35228, at least the crash. There are still a couple of errors that are probably incorrect. Note that isJSConstructor relies on parent pointers and the ability to merge symbols, so I had to move isAliasSymbolDeclaration (back?) to the checker. * add simple test case * remove errors in test * fix bad merge 29 January 2020, 17:36:59 UTC
49282d9 Nested this container (#36495) * Add nestedThisContainer test * Fix #36492 29 January 2020, 17:35:23 UTC
9fd0202 fix(36481): allow renaming private fields (#36499) 29 January 2020, 17:21:19 UTC
6769313 Fix potential leaks in checker (#36491) 29 January 2020, 00:48:28 UTC
869a821 Make javascript require goto def similar to ts import equals (#36487) Fixes #34996 29 January 2020, 00:23:56 UTC
39311da fix(36385): return failed exit code if tsconfig doesn't exist and there are no input files. (#36474) 29 January 2020, 00:11:19 UTC
8eee8db NoEmit and incremental are allowed with listFilesOnly (#36488) Fixes #32882 28 January 2020, 23:59:09 UTC
e87b2e3 Merge pull request #36063 from uniqueiniquity/addWeakCompletionProperty Add completion property to identify completions from unchecked files 28 January 2020, 21:53:47 UTC
0e9416c Disallow incremental with noEmit (#36483) Fixes #32882 28 January 2020, 21:11:45 UTC
f91f762 Fix js declaration emit for exporting default which looks like namespace merge (#36482) Fixes #35074 28 January 2020, 20:21:36 UTC
2cc7a5d fix(33362): 'extract to function' for variable that is assigne… (#36455) 28 January 2020, 20:10:12 UTC
fdf2989 Merge pull request #36383 from uniqueiniquity/redirectInfo Redirect info 28 January 2020, 19:51:06 UTC
2dd89ca Use deepEqual in tests for clarity 28 January 2020, 19:30:23 UTC
cf33f7b Don’t use 'import =' for auto-import when esModuleInterop is on unless it’s already been done (#36475) * Revisit esModuleInterop import kind priority yet again * Test was wholly redundant * Check for precedent is simpler now 28 January 2020, 19:05:04 UTC
9968f14 Update config.yml (#36419) 28 January 2020, 16:33:54 UTC
1bb6ea0 Allow type-only namespace imports in implements clauses (#36464) * Add test * Allow type-only symbols in implements clauses * Add more complex test 28 January 2020, 00:13:30 UTC
a87512d Add # to completion trigger character, (#36462) Handle private identifiers little better by creating token for private identifier when its just # Report same error as invalid character but from language service we can now provide completions for this.# Fixes #36367, #36250 27 January 2020, 22:25:20 UTC
3ece65a When looking at outlines for try functions, allow for not finding a child to provide a span when requesting outlines (#36389) 27 January 2020, 20:59:49 UTC
e1bce18 Type-only auto imports (#36412) * WIP * Promote existing type-only imports to regular if needed * Add completions test adding to type-only import * Update tests, revert whole-import-clause replacement codefix strategy to preserve import specifier formatting * Revert unnecessary changes * Delete unused function * } 27 January 2020, 20:53:32 UTC
757e670 Fix getExpandoSymbol for already-expando symbols (#36457) * Fix getExpandoSymbol for already-expando symbols getExpandoSymbol is intended to get the symbol of the expando in a declaration like ```js var C = class { } ``` However, when this occurs in a `module.exports` assignment, alias resolution already jumps to the exported symbol -- in this case the expando symbol: ``js // @filename: first.js module.exports = class { } // @filename: other.js /* @type {import("./first")} */ var C ``` `getExpandoSymbol` is then called on `class { }` instead of `module.exports = class { }`. Previously, `getExpandoSymbol` would incorrectly treat `class { }` the same as the export assignment and get the expando ... from the expando itself. This resulted in merging the expando with itself, which causes bogus errors and could cause other problems. Now `getExpandoSymbol` checks that the expando "initializer" is different from the declaration. * Better check for getExpandoSymbol of expando Check the declaration directly instead of the initialiser. 27 January 2020, 20:32:56 UTC
c239626 fix(36140): handle quotesPreference option in interface implementation (#36398) 27 January 2020, 20:25:31 UTC
20e8eba Issue better error for exporting primitive type (#36424) * Issue better error for exporting primitive type * Delete nonsense 27 January 2020, 16:11:21 UTC
3054500 fix(36068): Incorrect quick fix for undeclared private field i… (#36373) 25 January 2020, 02:28:42 UTC
18cd79e Allow `infer` type variables to have constraints inferred (#32093) * Allow `infer` type variables to have constraints infered and allow the breakdown of substitutes in simplifiable source inferences * Still skip conditional inference when `extends infer Q` so such a pattern still acts as a constraint size breaker 25 January 2020, 00:59:20 UTC
08e6bc2 Trampolines for large binary expressions (#36248) * WIP * Test no longer crashes, but emit trampoline is incomplete and skips pipeline phases * Fix lints, use non-generator trampoline in emit (still skips pipeline) * Final version with emitBinaryExprssion work stack that is only used if possible * Fix lints * retarget to es2015 for testing * Use bespoke state machine trampolines in binder and checker * Remove now extraneous code in parser * Adjust fixupParentReferences to use a depth first preorder traversal rather than breadth first * Reintroduce incremental fast bail in fixupParentReferences * Revert target to es5 * PR feedback * Small edit for devops rebuild with updated definition * Fix comment nits, add internally extraneous check back into transformer 25 January 2020, 00:29:55 UTC
e479a9f Respond to CR 25 January 2020, 00:23:54 UTC
f3cc6f6 Remove distinction between CI lint and local lint (#36430) 25 January 2020, 00:23:14 UTC
096e1b1 Handle error reporting of files when new file is created after its opened in editor (#36271) * If script info is not attached to the project on which wild card is invoked, update it. * Instead of getting default project before starting error list timer, get it at that time if no project is specified Fixes #35794 * Fix the open File watch triggered setting 25 January 2020, 00:07:48 UTC
8c18c76 Add tests 25 January 2020, 00:02:14 UTC
8e0b091 es2018: visit other binding elements when transforming object destructuring with rest (#35872) * es2018: visit other binding elements when transforming object destructuring with rest fixes: #35771 * more tests 24 January 2020, 23:50:29 UTC
7c05e1a Add --force option to npm install commands in dockerfiles (#36431) 24 January 2020, 23:29:27 UTC
f047111 Track changes to redirect info 24 January 2020, 23:15:05 UTC
9ef9bb0 Fix crash on erroneous enum member merged with exported type alias (#36429) 24 January 2020, 23:00:15 UTC
368db99 ESNext+[[Define]]: reference to param props illegal (#36425) * ESNext+[[Define]]: reference to param props illegal When target: "esnext" and useDefineForClassFields: true, property declaration initialisers should not be able to reference parameter properties; class fields are initialised before the constructor runs, but parameter properties are not: ```ts class C { foo = this.bar constructor(public bar: string) { } } ``` emits code that looks like this: ```js class C { bar foo = this.bar constructor(bar) { this.bar = bar } } new C('x').foo.length // crashes; foo is undefined ``` This PR adds an error on foo's declaration with ESNext+[[Define]]. * improve test 24 January 2020, 22:53:28 UTC
43fc19c Emit statements before super (#36417) * Emit statements before super When statements come before super, Typescript's emit is incorrect, whether there is an error or not. This change preserves statements that come before super whether there is an error or not. Here is the case with no errors: ```ts class Test extends Array { p: number constructor() { console.log("p is initialised in the constructor below super()") super() this.p = 1 } } ``` Notice that `p` is manually initialised in the constructor after `super()` instead of at the property declaration. * Update baselines Parameter properties in the error case now move below the super call. This is an improvement because it means the code is more likely to execute correctly. * remove outdated comments 24 January 2020, 22:52:48 UTC
9811090 Adds extension recommendation for rbuckton.tsserver-live-reload (#36426) 24 January 2020, 22:10:27 UTC
6b64c88 Fix crash on missing parent pointer in binder when transpiling export as ns (#36387) 24 January 2020, 21:36:05 UTC
751eb44 Add more detailed log for bad codefix request (#36420) 24 January 2020, 20:55:08 UTC
77d790b Update user baselines (#36411) 24 January 2020, 20:35:54 UTC
29895e8 Handle header comments better by comparing its end line with first node line (#36413) Fixes #31508 24 January 2020, 19:20:41 UTC
420b478 Add prefix/suffix only to binding element name (#33538) 24 January 2020, 18:46:41 UTC
9e712dd Consider SymbolFlags.Method as function-esque during js declaration emit (#36274) 24 January 2020, 18:29:23 UTC
6f0c641 fix(lib/es2019): `Symbol.description` may be `undefined` (#36263) * fix(lib/es2019): `Symbol.description` may be `undefined` * Update user baselines (EB-Forks#1) Co-authored-by: TypeScript Bot <ts_bot@rcavanaugh.com> 24 January 2020, 18:06:04 UTC
3b919e2 Update user baselines (#36382) 23 January 2020, 22:12:40 UTC
7036853 Merge branch 'master' into redirectInfo 23 January 2020, 22:12:01 UTC
09528dd Add tests 23 January 2020, 22:10:37 UTC
49eb0d7 Disallow 'declare' modifier on private named properties (#36381) Fixes: #36345 23 January 2020, 21:18:10 UTC
677e45c Dont add "use strict" prologue in json emit (#36380) * Add test for strict with isolated modules and resolveJson Test for #36372 * Dont add "use strict" prologue in json emit Fixes #36372 23 January 2020, 21:01:11 UTC
b05dde7 Update type-only import semantics to allow type queries (#36092) * Change type-only semantics to allow type queries * Don’t error using type-only import in ambient context * Fix default import * Fix namespace import * Update more baselines * Prevent circular resolution * Track const enum expression usage * Update baselines * Perf tuning 1 * Test commit for perf impact * Weave type-only alias declaration finding into alias resolution * Fix namespace import of type-only exported symbols * type-only exports do not contribute to the module object type * Update APIs * Fix enum casing, remove type-only conversion suggestion * Short circuit type-only checks in resolveEntityName faster * Fix casing in API * Remove unused parameter * Fix error on qualified names in type queries * Allow type-only imports in computed property names * Fix computed property names of types and abstract members * Remove unused util * Commit missing baselines * Rename “check” functions so as not to overload the word “check” 23 January 2020, 20:53:36 UTC
c9c3792 Produce redirect info about files when requested 23 January 2020, 20:32:36 UTC
0276e7f noErrorTruncation affects semantic diagnostics (#36306) 23 January 2020, 19:10:05 UTC
ef5573b Add `as` completions (#36359) 23 January 2020, 16:29:06 UTC
75f88ee Do not short-circuit module visibility calculation when alias visibility is requested (#36339) 22 January 2020, 22:49:29 UTC
eac2180 Be more tolerant with private identifier parsing, issue more targeted errors, and support private identifiers in forgotten 'this' codefix (#36188) * Support private identifiers in forgotten this codefix * Parse invalid private identifiers as identifiers and issue targeted errors * Update codefix * Remove accidentally deleted newline 22 January 2020, 21:41:15 UTC
770fbcb Add jest to fp-ts user test (#36360) It was missing because I *think* they just added it. 22 January 2020, 21:38:25 UTC
1d5749e Fix local and exported type alias merging (#36237) * Fix local and exported type alias merging * Add baselines 22 January 2020, 21:16:49 UTC
82a3eb5 Add a list of PR owners for tooling to use (#36357) 22 January 2020, 20:09:01 UTC
da61231 Include super.XXX(...) assertion method calls in CFA (#36293) * Support super.XXX in assertions * Add tests 22 January 2020, 19:21:11 UTC
c8e2f58 Completions for `asserts` and `declare` (#36355) * Add completions for `asserts` * Add declare assertions. 22 January 2020, 18:43:33 UTC
5e59eec Adds support for showing default exports in the navtree (#35477) * Adds support for showing default exports in the navtree - Fixes #34601 * Handle the feedback in #35477 * Navigation items using default export or export = will get noted if they are a const vs function 22 January 2020, 13:13:04 UTC
38eccba feat(29624): better errors for non-exported types (#36187) 21 January 2020, 21:03:22 UTC
342f4c0 forceConsistentCasingInFileNames affects module resolution (#36334) 21 January 2020, 20:45:13 UTC
back to top