https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
53a34ce Optimize checking for signatures with control flow effects 29 September 2019, 15:08:42 UTC
20e2be1 Merge pull request #33642 from microsoft/undoListFiles Undo showing redirected files in --listFiles 27 September 2019, 22:10:24 UTC
c80d565 Enable forceConsistentCasingInFileNames by default in newly generated configs (#39) (#33614) *Issue number of the reported bug or feature request: #17542* **Describe your changes** Enabled `forceConsistentCasingInFileNames` in newly generated `tsconfig.json`s created by `tsc --init`. **Testing performed** The configuration option changed in the related tests. **Additional context** n/a Signed-off-by: Prakash Lalwani <plalwani4@bloomberg.net> 27 September 2019, 21:42:30 UTC
49a52d0 Merge pull request #33636 from microsoft/rootReferenceRedirect Fix the issue when file is attached to project because its a root file name but program contains instead its d.ts 27 September 2019, 21:36:08 UTC
c283809 Update user baselines (#33635) 27 September 2019, 21:33:05 UTC
f713668 Undo showing redirected files in --listFiles 27 September 2019, 21:26:38 UTC
2938168 Support some late-bound special property assignments (#33220) * Support some late-bound special property assignments * Integrate PR feedback * PR feedback * Enable declaration on core tests * Specialize type of binary expression used for late binding, speculative fix to navigation bar, merge check and type for elem/property accesses * Add test showing current nav bar behavior (specifically the lack thereof) 27 September 2019, 20:54:50 UTC
304fcee Updated: Only auto-import from package.json (#32517) * Move package.json related utils to utilities * Add failing test * Make first test pass * Don’t filter when there’s no package.json, fix scoped package imports * Use type acquisition as a heuristic for whether a JS project is using node core * Make same fix in getCompletionDetails * Fix re-exporting * Change JS node core module heuristic to same-file utilization * Remove unused method * Remove other unused method * Remove unused triple-slash ref * Update comment * Refactor findAlias to forEachAlias to reduce iterations * Really fix re-exporting * Use getModuleSpecifier instead of custom hack * Fix offering auto imports to paths within node modules * Rename things and make comments better * Add another reexport test * Inline `symbolHasBeenSeen` * Simplify forEachAlias to findAlias * Add note that symbols is mutated * Symbol order doesn’t matter here * Style nits * Add test with nested package.jsons * Fix and add tests for export * re-exports * Don’t fail when alias isn’t found * Make some easy optimizations * Clean up memoization when done * Remove unnecessary semicolon * Make getSymbolsFromOtherSourceFileExports pure * Cache auto imports * Revert "Cache auto imports" This reverts commit 8ea482958786aba0185b4b1b0497d6658ffbc385. * Handle merged symbols through cache * Be safer with symbol declarations, add logging * Improve cache invalidation for imports and exports * Check symbol presence first * Only run cache invalidation logic if there’s something to clear * Consolidate cache invalidation logic * Fix reuseProgramStructure test * Add more logging * Only clear cache if symbols are different * Refactor ambient module handling * Start caching package.json stuff * Support package.json searching in fourslash * Move import suggestions cache to Project * Start making more module specifier work available without having the importing file * Going to backtrack some from here * Get rid of dumb cache, fix node core modules stuff * Start determining changes to a file have invalidated its own auto imports * Move package.json related utils to utilities * Add failing test * Make first test pass * Don’t filter when there’s no package.json, fix scoped package imports * Use type acquisition as a heuristic for whether a JS project is using node core * Make same fix in getCompletionDetails * Fix re-exporting * Change JS node core module heuristic to same-file utilization * Remove unused method * Remove other unused method * Remove unused triple-slash ref * Update comment * Refactor findAlias to forEachAlias to reduce iterations * Really fix re-exporting * Use getModuleSpecifier instead of custom hack * Fix offering auto imports to paths within node modules * Rename things and make comments better * Add another reexport test * Inline `symbolHasBeenSeen` * Simplify forEachAlias to findAlias * Add note that symbols is mutated * Symbol order doesn’t matter here * Style nits * Add test with nested package.jsons * Fix and add tests for export * re-exports * Don’t fail when alias isn’t found * Make some easy optimizations * Clean up memoization when done * Remove unnecessary semicolon * Make getSymbolsFromOtherSourceFileExports pure * Cache auto imports * Revert "Cache auto imports" This reverts commit 8ea482958786aba0185b4b1b0497d6658ffbc385. * Handle merged symbols through cache * Be safer with symbol declarations, add logging * Improve cache invalidation for imports and exports * Check symbol presence first * Only run cache invalidation logic if there’s something to clear * Consolidate cache invalidation logic * Fix reuseProgramStructure test * Add more logging * Only clear cache if symbols are different * Refactor ambient module handling * Finish(?) sourceFileHasChangedOwnImportSuggestions * Make package.json info model better * Fix misplaced paren * Use file structure cache for package.json detection when possible * Revert unnecessary changes in moduleSpecifiers * Revert more unnecessary changes * Don’t watch package.jsons inside node_modules, fix tests * Work around declaration emit bug * Sync submodules? * Delete unused type * Add server cache tests * Fix server fourslash editing * Fix packageJsonInfo tests * Add node core modules cache test and fix more fourslash * Clean up symlink caching * Improve logging * Function name doesn’t make any sense anymore * Move symlinks cache to host * Fix markFileAsDirty from ScriptInfo * Mark new Project members internal * Use Path instead of fileName * Rename AutoImportSuggestionsCache * Improve WatchType description * Remove entries() from packageJsonCache * Fix path/fileName bug * Also cache symlinks on Program for benefit of d.ts emit * Let language service use Program’s symlink cache 27 September 2019, 20:38:31 UTC
558ece7 Add support for capturing cpu profiles into tsc itself (#33586) * Add support for capturing cpu profiles into tsc itself * Accept baseline for new compiler option in showConfig * Fix lints * Support profiling build mode, only ever have one live profiling session * Minor modification to enable/disable semaphore, accept re-cased baseline * Add pid into autognerated cpuprofile path * Rename to fix case * Sanitize filepaths in emitted cpuprofile for easier adoption by enterprise people, add inspector to browser field 27 September 2019, 20:34:44 UTC
8d7fd2e Respect //@ts-nocheck in TS files (#33383) 27 September 2019, 19:06:05 UTC
a34fdb2 Better template literals support in checker (#32064) * Support template literals in enum declarations * Support template literals in const enum access * Support template literals in swith with typeof narrowing * Support template literals in element access discriminant * Support template literals in ambient module declaration * Unify symbols for template literals in computed properties * Unify expression position checks for template literals * Support template literals in rename and find all references * Mark computed properties with template literals as write access * Inline startsWithQuote 27 September 2019, 19:04:13 UTC
8e4f47c Fix the issue when file is attached to project because its a root file name but program contains instead its d.ts Fixes #33323 27 September 2019, 16:00:29 UTC
1c24e27 Add the test that fails with find all references 27 September 2019, 16:00:29 UTC
c0573c5 Prevent collision of imported type with exported declarations in current module (#31231) * check for exported type name for conflict * refactor baseline tests for import/export name collision 27 September 2019, 14:55:04 UTC
e72937d Update DOM (#33627) * Update DOM * Update baselines 27 September 2019, 00:20:05 UTC
b4941f6 Merge pull request #33625 from m-henderson/mh/33603-error-message-for-missing-member Better error message for missing member in tslib 26 September 2019, 23:22:41 UTC
b183b7f Merge branch 'master' into mh/33603-error-message-for-missing-member 26 September 2019, 22:30:25 UTC
64683a1 update message, generate diagnostics, update src and accept baselines 26 September 2019, 22:15:35 UTC
61cb06c Allow `allowJs` and `declaration` to be used together (#32372) * Allow allowJs and declaration to be used together This intorduces a new symbol-based declaration emitter - currently this is only used for JSON and JavaScript, as the output is likely worse than what the other declaration emitter is capable of. In addition, it is still incomplete - it does not yet support serializaing namespaces. * Add tests for various import/export forms, add notes on export as namespace and fix export * from * Tests & fixes for computed names * Add test with current @enum tag behavior * fix declaration emit for jsdoc @enum tags * Small adjustments to base class serialization to fix bugs in it * Guard against type/type parameter confusion when using typeParameterToName a bit * Integrate feedback from PR * Fix issue with export= declarations visibility calculation and type declaration emit that impacted all forms of declaration emit * Only make one merged getCommonJsExportEquals symbol for a symbol * Support preserving type reference directives in js declarations * Skip declare mdoifiers for namespace members in ambient contexts * FAKE ALIASES AND NAMESPACES EVERYWHERE * Dont do namespace sugar when type members contain keyword names * Fix json source file export modifier under new output * Such clean nested aliasing, very wow * Fix lint * Add visibility errors, reuse type nodes where possible * Suppoer having correctly named import types in bundled js declaration emit & adjust binding to allow namespaces with aliases to merge when the aliases look to be type-only * Better support for module.exports = class expression * Fix discovered crash bug * Allow export assigned class expressions to be reachable symbols from external declarations * Add missing semicolon * Support @enum tag post-merge * preserve comments on signatures and declarations where possible * Basic support for js classy functions * Add example we should do better with * Prototype assignments make things a bit wonky, but the example from the PR seems OK * Make a ton of changes to support the new way js classes are bound * Remove some old comments, fix import and export default names * Fix bug in object define handling and add tests for object define property declaration emit * Fix organization nits from PR comments * Preserve comments from jsdoc declarations on properties and js declaration type aliases * Merge export declarations with identical specifiers * Remove completed TODO comment * Split lint * Remove now-unused function * PR feedback * Add some project references tests, remove some checks from project refs codepaths that are now invalid * Update project references tests again * Merge and update project references tests * Rename case * Update test to include declaration output * Remove yet another project refernces redirect extension check * Update comment * Add additional import ref to test * Add shorthand prop to test * Fix comment text * Extract var to temp * Simplify function and add whitespace * Update project refs test to use incremental edit entry * Stylistic refactors in the symbol serializer * Another round of PR feedback, mostly style, small bugfix with constructors, and test showing bug in export assigned class expression name shadowing * Use x instead of index 26 September 2019, 21:27:16 UTC
62a4357 Enable eslint cache (#33619) 26 September 2019, 20:44:10 UTC
500a0df Add useDefineForClassFields flag for Set -> Define property declaration (#33509) * Disallow property/accessor overrides Unless the base property or accessor is abstract * Disallow uninitialised property overrides This causes quite a few test breaks. We'll probably want to revert many of them by switching to the upcoming `declare x: number` syntax. * Updates from design review + fix ancient bug 1. Don't error when overriding properties from interfaces. 2. Fix error when overriding methods with other things. This had no tests so I assume that the code was always dead and never worked. * Need to add a couple of errors and squash one Will update after checking out other branch for a minute * Everything works so far Need to test properties initialised in constructor * Check for constructor initialisation * change error wording * Improve error wording * Add codefix to add missing 'declare' * Always emit accessors in .d.ts files * Allow 'declare' on any uninitialised property decl * Undo code moves * Let sleeping dogs lie * Correctly set NodeFlags.Ambient And simplify redundant parts of check. * Remove more unneeded code * Update baselines * Update baselines * Update baselines * Ignore this-property assignments * Fix base-in-interface check * Do not error when base parent is interface * Fix base interface check * Add missed baselines * Fix check * Fix new errors in services * Fix new errors in services * Fix errors in testRunner * Add flag and turn off errors when on * Structure of new emit is correct, fake content It is 'hi'. * Basically right emit * Fix one last unitialised property declaration * Haha no I missed another one * Fix whitespace back to CRLF * Minor fix and code cleanup * New test case * Fix bug in isInitializedProperty * Updates from design meeting. 1. Change flag name to useDefineForClassFields (and flip polarity). 2. Forbid ES3 + useDefineForClassFields (since there is no defineProperty). 3. Forbid overriding an abstract property-with-initializer with an accessor. * Update baselines * Object.defineProperty for methods too Using code from Ron from his upcoming refactor of the factory functions. * Update slow baselines * Improve error message * Update src/compiler/transformers/utilities.ts Co-Authored-By: Andrew Branch <andrewbranch@users.noreply.github.com> * Add test of computed properties * Remove done TODO 26 September 2019, 20:25:05 UTC
7d9b22e Add semicolon preference to formatter options (#33402) * Add UserPreferences for semicolons * Prototype formatter semicolon removal * Implement semicolon insertion * Fix existing tests * Start adding tests * Fix some edge cases of semicolon deletion * Fix semicolon removal before comments * Fix indentation * Test on checker * Replace semicolon-omitting writer with formatter preference * Fix writing new nodes, update protocol * Rename option * Really fix formatting synthetic nodes * Fix refactoring misses * Un-update submodules gahhhh * Update APIs * Update for ESLint * Revert accidental test change * De-kludge deduplication of EOF processing * Omit last element semicolon from single-line object-like types * Revert "Omit last element semicolon from single-line object-like types" This reverts commit 5625cb023743215d4721bf07b2d41f831399977d. * Fix straggler test * Add test for leading semicolon class members * Rename a lot of stuff for clarity * Invert some boolean logic 26 September 2019, 20:23:29 UTC
3dd7b84 Merge pull request #33567 from microsoft/resolution Sort the paths for module specifier by closeness to importing file path 25 September 2019, 23:29:06 UTC
250d5a8 Merge pull request #33050 from microsoft/recursiveTypeReferences Recursive type references 25 September 2019, 20:16:39 UTC
4ee251b Merge pull request #33372 from m1gu3l/patch-1 Better Array.sort compareFn docs 25 September 2019, 19:11:39 UTC
b544901 Merge master 25 September 2019, 18:46:36 UTC
1866cfa Update the baselines 25 September 2019, 18:37:00 UTC
91be368 Merge pull request #33178 from jwbay/nonNullableCallSignaturesTreeWalk Flag non-nullable functions in `if` statements as errors (tree walk version) 25 September 2019, 18:06:24 UTC
75117ac Merge pull request #33598 from microsoft/fix33582 Fix issues caused by reachability analysis of `this.foo(...)` like calls. 25 September 2019, 17:27:04 UTC
91c66a0 Add tsc baselining test for scenario that changed. 25 September 2019, 17:05:10 UTC
4c9986f Merge master 25 September 2019, 16:59:07 UTC
0d4e594 Accept new baselines 25 September 2019, 16:34:30 UTC
cefd1e4 Add regression test 25 September 2019, 16:34:24 UTC
8e232e4 Limit this.foo(...) reachability checks to explicit this types 25 September 2019, 16:30:25 UTC
3d6a182 Accept change in existing baseline 25 September 2019, 16:07:51 UTC
9faca24 Merge pull request #33593 from typescript-bot/user-update-Microsoft-20190803 🤖 User test baselines have changed 25 September 2019, 15:58:58 UTC
041b16c Merge branch 'master' into resolution 25 September 2019, 15:20:09 UTC
4468d88 Merge pull request #33566 from microsoft/baselining PR to baseline `tsc` output rather than just baselining `tsc --b` 25 September 2019, 15:19:33 UTC
16275f6 Merge branch 'baselining' into resolution 25 September 2019, 15:10:11 UTC
3d30a02 Update user baselines 25 September 2019, 14:16:14 UTC
e6b45ad Merge pull request #3 from typescript-bot/user-update-jwbay-20190801-nonNullableCallSignaturesTreeWalk 🤖 User test baselines have changed for nonNullableCallSignaturesTreeWalk 24 September 2019, 23:50:54 UTC
382ff17 Update emitting timestamps during testing 24 September 2019, 23:20:07 UTC
2b7ab89 Merge branch 'baselining' into resolution 24 September 2019, 21:04:22 UTC
220ee81 Accept the baselines 24 September 2019, 20:55:17 UTC
bdd74b0 Remove all baselines 24 September 2019, 20:52:56 UTC
585532d Merge branch 'master' into baselining 24 September 2019, 20:26:05 UTC
992c211 Merge pull request #32028 from microsoft/referencesPrototypeSourceFile For editing experience, use source instead of .d.ts files from project references 24 September 2019, 20:16:53 UTC
7fd93fd Accept API baseline changes 24 September 2019, 19:23:47 UTC
fd3ba67 Reword the option description per feedback 24 September 2019, 19:22:42 UTC
f24cad2 Update the error summary reporter to take sys as parameter 24 September 2019, 19:15:37 UTC
3061a41 Add getTypeArguments method to TypeChecker interface 24 September 2019, 18:53:49 UTC
27752c6 Merge branch 'master' into recursiveTypeReferences # Conflicts: # src/compiler/checker.ts 24 September 2019, 18:52:40 UTC
2e985e7 Merge pull request #33581 from microsoft/fix-lint-20190924 Fix lint on master 24 September 2019, 16:57:04 UTC
bf0fc85 Fix after merging latest baselining branch 24 September 2019, 16:55:50 UTC
bd7d370 Merge branch 'baselining' into resolution 24 September 2019, 16:53:13 UTC
8c2cd88 Make time and tick local to test case so it doesnt affect the baseline 24 September 2019, 16:46:32 UTC
41c3e54 change eslint-disable rule name 24 September 2019, 16:38:44 UTC
b2f4af4 Fix that works with both LKG and built compilers 24 September 2019, 16:16:47 UTC
f0bf72f Fix linting issue 24 September 2019, 15:57:01 UTC
4ddf191 try eslint-disable-next-line instead 24 September 2019, 15:47:45 UTC
aca0bb9 Fix lint on master 24 September 2019, 15:30:18 UTC
64c3fca Merge pull request #33578 from typescript-bot/user-update-Microsoft-20190802 🤖 User test baselines have changed 24 September 2019, 15:18:20 UTC
f110480 Merge pull request #33263 from microsoft/infer-from-usage/similarity-to-builtins Infer from usage by similarity to builtin types 24 September 2019, 14:44:34 UTC
5962a5c Merge branch 'master' into recursiveTypeReferences # Conflicts: # src/compiler/checker.ts # src/compiler/types.ts 24 September 2019, 14:29:05 UTC
0a4f39a Update user baselines 24 September 2019, 14:10:40 UTC
3aa3326 Accept new baselines 24 September 2019, 13:55:47 UTC
e3d23cc Add tests 24 September 2019, 13:55:38 UTC
bf992a5 Merge pull request #32695 from microsoft/assertionsInControlFlow Assertions in control flow analysis 23 September 2019, 23:57:56 UTC
00a43d7 Cache propagating variance flags in the relationship cache (#32225) * Cache propagating variance flags in the relationship cache * Convert base fields in relation comparison result to flags 23 September 2019, 23:55:19 UTC
367b820 Hoist and distribute type parameter constraints over type parameters … (#33453) * Hoist and distribute type parameter constraints over type parameters when comparing against union targets when fetching union constraints * Fix PR nits 23 September 2019, 23:52:03 UTC
26caa37 Introduce flattened error reporting for properties, call signatures, and construct signatures (#33473) * Introduce flattened error reporting for properties, call signatures, and construct signatures * Update message, specialize output for argument-less signatures * Skip leading signature incompatability flattening * Add return type specialized message 23 September 2019, 23:08:44 UTC
6c2ae12 Relax the constraints of isValidBaseType to allow base types to be constructor types (#33146) * Relax the constraints of isValidBaseType to allow base types to be constructor types * Fix nit * Reduce confusion between isConstructorType and isValidBaseType * Update comment 23 September 2019, 22:58:03 UTC
84e857b use forEachEntry 23 September 2019, 22:57:32 UTC
4f25774 Merge pull request #33477 from Nathan-Fenner/error-on-extra-jsx-prop report error on extraneous JSX prop instead of element name 23 September 2019, 22:26:57 UTC
ff10599 Merge pull request #33563 from orta/remove_gulpfile_errors Remove errors from the gulpfile 23 September 2019, 21:54:41 UTC
f9ca8ba Update user baselines (#33557) 23 September 2019, 21:09:51 UTC
432da93 Add doc comments for fileExists and directoryExists implementation 23 September 2019, 20:54:12 UTC
04638a1 Update user baselines 23 September 2019, 20:45:24 UTC
c67c68e Sort the paths for module specifier by closeness to importing file path Fixes #32970 23 September 2019, 20:41:46 UTC
86c7d84 update missing baselines 23 September 2019, 19:02:13 UTC
0da5415 Remove errors from the gulpfile 23 September 2019, 18:16:30 UTC
bf08d3b Fix linting issues 23 September 2019, 13:14:52 UTC
8604d4e Include type operators in aliased type checks 21 September 2019, 16:07:49 UTC
db7c03d Merge branch 'master' into recursiveTypeReferences # Conflicts: # src/compiler/checker.ts # src/compiler/types.ts # tests/baselines/reference/api/tsserverlibrary.d.ts # tests/baselines/reference/api/typescript.d.ts 21 September 2019, 15:52:14 UTC
5d09688 Merge pull request #33228 from microsoft/fix32976 Less aggressive contextual signature instantiation 21 September 2019, 14:31:24 UTC
5b9a56f Merge pull request #33057 from jablko/patch-2 Allow readonly arguments to Promise.all(), etc. 21 September 2019, 12:02:14 UTC
bcdf33d Fix forEachChild 21 September 2019, 00:44:19 UTC
c3dcc37 Merge branch 'master' into assertionsInControlFlow # Conflicts: # src/compiler/checker.ts 21 September 2019, 00:23:27 UTC
97d69d4 Accept new baselines 21 September 2019, 00:18:08 UTC
21b5418 Add tests 21 September 2019, 00:17:39 UTC
2d62050 Show redirected files in --listFiles 20 September 2019, 21:23:04 UTC
d6a3a94 Add test that fails to emit declarations correctly 20 September 2019, 21:11:10 UTC
b762770 Add test to verify tsc like command line input 20 September 2019, 21:10:48 UTC
4786279 Expose method to baseline fs 20 September 2019, 21:10:47 UTC
10e3f11 Merge pull request #33510 from microsoft/controlFlowLoopCaching Enable caching for control flow paths that precede loops 20 September 2019, 21:09:47 UTC
ee6f00d Merge pull request #33536 from orta/ping_for_playgrounds When a packed version of TypeScript is requested, request a build of Monaco 20 September 2019, 21:03:12 UTC
1cad8ed check for SyntaxKind.JSXAttribute instead of located-ness of name prop 20 September 2019, 21:00:11 UTC
cc3ee30 Fix grammar issues on CONTRIBUTING.md (#33535) 20 September 2019, 20:11:22 UTC
26c816f When a packed version of TypeScript ios requested, also send a request to create a build of monaco for the playground 20 September 2019, 19:20:10 UTC
007b4b1 Minor simplification 20 September 2019, 17:24:02 UTC
back to top