Commit Graph
29661 Commits
Author SHA1 Message Date
Alexander TandGitHub c8147cb601 fix(33377): use quoteStyle option for string literals completions (#36720) 2020-02-20 08:45:07 -08:00
Nathan Shively-SandersandGitHub d76380419d Fix typo in getChangesSinceVersion (#36885) 2020-02-20 08:30:22 -08:00
Wesley Wigham 4a34294908 Unify padding impls and consistently use them 2020-02-19 17:21:51 -08:00
Wesley Wigham 77d3a69039 Fix lint 2020-02-19 17:03:10 -08:00
Wesley Wigham 283bf999df Cast sys.bufferFrom results in cases where global buffer and sys copy of buffer mismatch 2020-02-19 17:02:30 -08:00
Wesley Wigham 5144330c98 Fix implicit dependencies on es6 lib exposed by node changes 2020-02-19 16:43:40 -08:00
Wesley Wigham 4940ff8eb3 One _big_ script block (since it seems like FS edits are not persistent across steps?) 2020-02-19 13:49:41 -08:00
Wesley Wigham 38e1e660c8 Fix API baseline paths in script 2020-02-19 13:33:39 -08:00
Wesley Wigham 5db79df780 Limit dispatch triggers 2020-02-19 13:15:07 -08:00
Wesley Wigham cffaddc9f3 Add new release branch workflow 2020-02-19 13:10:47 -08:00
Wesley Wigham e3b6bd2b54 getDate not getDay, also 1-based months please 2020-02-19 11:39:17 -08:00
Andrew BranchandGitHub 1236a1006c Fix initialization error when destructuring from object literal that includes a spread assignment (#36865)
* Add test

* Fix superfluous error when destructuring from object that includes spread assignment

* Update baseline to include error case

* Remove redundant check
2020-02-19 08:28:12 -08:00
Jack BatesandGitHub 50e9c15e9d Add buildTsc to preTest for user test runner (#35781) 2020-02-19 07:48:43 -08:00
Jack BatesandGitHub e50f0aabd2 Include stdout in test worker error messages (#35921) 2020-02-19 06:50:31 -08:00
Alexander TandGitHub bab0c99584 fix(29565): Add missing super() quickFix errors for constructo… (#36601) 2020-02-18 13:00:31 -08:00
Alexander TandGitHub bc12123115 fix(29908): Declare static method/property quickfix can add st… (#36854) 2020-02-18 11:27:35 -08:00
CharlesandGitHub 7cc4a8df94 Wrap classes with decorators or static properties in an IIFE, even for ES2015+ (#32011)
* Always wrap classes with decorators or static properties in an IIFE

Currently only script targets less than or equal to ES5 will wrap classes.  However, the wrapping is also crucial to file size optimizations for ES2015+ as well.  Without the IIFE wrapper, minification tools do not elide the class.  This is due to references to the class being present within the downlevelled decorator and static property code.
This change represents the full completion of issue #15857

* Accept new baselines
2020-02-14 16:28:55 -08:00
TypeScript BotandGitHub 1d6bb8bb64 Update user baselines (#36801) 2020-02-14 16:01:38 -08:00
Andrew BranchandGitHub a2fe661e19 Import style punditry (#36814) 2020-02-14 15:57:30 -08:00
Andrew BranchandGitHub b82d3207e8 Fix organizeImports with type-only imports (#36807) 2020-02-14 15:24:39 -08:00
Klaus MeinhardtandGitHub 9b518c8f53 Exempt ambient private properties from noImplicitAny (#36640) 2020-02-14 15:01:18 -08:00
Alexander TandGitHub c59fcae117 fix(30003): formatter deletes comments after trailing comma (#36674) 2020-02-14 14:57:18 -08:00
Josh GoldbergandGitHub 1aaf314678 Marked internal createAnonymousType type as allowing undefined Symbols (#36016) 2020-02-14 14:52:05 -08:00
Andrew BranchandGitHub b1e706d911 Set correct pos for NamespaceExport (#36794)
* Set correct pos for NamespaceExport

* Update tests
2020-02-14 12:45:26 -08:00
TypeScript BotandGitHub 6639d25451 Update user baselines (#36796) 2020-02-14 08:44:36 -08:00
Andrew BranchandGitHub 950b36192a Fix renaming an ExportSpecifier name when propertyName is present (#36790)
* Fix renaming exportSpecifier name when propertyName is present

* Add baseline test for name without propertyName too
2020-02-13 16:55:52 -08:00
TypeScript BotandGitHub 888cd4db20 Update user baselines (#36765) 2020-02-13 15:10:01 -08:00
Daniel RosenwasserandGitHub 210090b483 No template refactor on plain strings (#36785)
* Add/convert to failing tests.

* Stop offering to convert single string literals to template expressions.

* Ensure we're actually testing for single quotes.
2020-02-13 12:22:53 -08:00
OrtaandGitHub 19c3bcb9a9 Adds puppeteer to test whether typescript.js runs in the browser (#35471)
* Adds puppeteer to test whether typescript.js runs in the browser

* Adds a check for the browser integration into the GitHub Actions CI

* Update to use playwright, and test in three browsers
2020-02-13 14:19:33 -05:00
Jack BatesandGitHub 0a7d54d104 Fix npm test if os.cpus().length == 1 (#35753) 2020-02-13 11:08:39 -08:00
Jack BatesandGitHub 98492d8daf Add --git-dir and --work-tree to user tests (#35362) 2020-02-12 15:21:29 -08:00
Anders HejlsbergandGitHub 7a1c5b7a20 Avoid expensive relationship checking in mapped type member resolution (#36754)
* Avoid expensive relationship checking in mapped type member resolution

* Accept new baselines
2020-02-12 15:05:01 -08:00
Alexander TandGitHub e435054b3b fix(36416): empty import path causes server crash (#36751) 2020-02-12 14:26:51 -08:00
Jack BatesandGitHub bf370659b3 Don't npm install the parent project with no args (#35359) 2020-02-12 14:19:46 -08:00
Wesley WighamandGitHub 2b64731a97 Fix getTypeAtLocation for as const to not issue a diagnostic (#36741)
* Fix getTypeAtLocation for `as const` to not issue a diagnostic

* use existing helpers for checks

* Fix lint
2020-02-12 13:43:02 -08:00
Ron Buckton 54102336f2 Merge branch 'Swatinem-separate-nodetypes' 2020-02-12 11:53:05 -08:00
Ron Buckton 195f6bb2ab Merge branch 'separate-nodetypes' of https://github.com/Swatinem/TypeScript into Swatinem-separate-nodetypes 2020-02-12 11:52:53 -08:00
01c86c749d Fix get candidate for overload failure checking (#36744)
* getCandidateForOverloadFailure:call resolveUntypedCall

This re-adds the missed errors and marks as used missed nodes from the
user and RWC baselines.

* Update baselines and remove new test

It was redundant with the old tests

* Defer resolveUntypedCall on resolution failure to give priority to parameter types fixed by overload signatures

Co-authored-by: Wesley Wigham <wwigham@gmail.com>
2020-02-12 11:42:56 -08:00
Ron BucktonandGitHub cf6b641709 Merge branch 'master' into separate-nodetypes 2020-02-12 11:23:51 -08:00
Wesley Wigham 6f079a4ebc Update versionMajorMinor to match package.json 2020-02-11 15:34:17 -08:00
Wesley WighamandGitHub 1fd0e8f9a6 Bump package.json version to reflect reality 2020-02-11 15:08:03 -08:00
Wesley WighamandGitHub 8481bc1d98 Do not report errors when we fail to find a module symbol at an import specifier when invoked via API (#36742) 2020-02-11 14:49:11 -08:00
Nathan Shively-SandersandGitHub a772c26a71 Error when property is specified more than once via a spread (#36727)
* add tests but not baselines or fixes

* Update original change

Still probably wrong; probably doesn't even compile beacuse I'm just
typing on my laptop.

* fix error code ok

* notes to self

* Error: property is specified more than once via spread

* make jsx tests stricter

* update semicolon error message

* use ?. because it is great

* use maybeTypeOfKind in new code

* restore jsx error

* add tests
2020-02-11 10:23:15 -08:00
Brad ZacherandGitHub 348c4dddc6 Throw syntax error for } and > in JSX text (#36636)
* Throw syntax error for `}` and `>` in JSX text

Fixes #36341

* Add codefix for error
2020-02-11 11:44:17 -05:00
Andrew BranchandGitHub ad8c209fc2 Use type-only imports in auto-imports when it would be an error not to, and use auto-imports in “implement interface” fix (#36615)
* Refactor fix-all-missing-imports to be reusable by other codefixes

* Migrate infer-from-usage to use ImportAdder

* Add infer from usage test importing more than one thing in a single fix

* Migrate implement interface / abstract members fixes to use ImportAdder

* Update old tests

* Use type-only imports when it would be an error not to

* Add another test

* Rename stuff
2020-02-10 17:13:35 -08:00
Wesley WighamandGitHub aece8c06b0 Allow intersections (and substitutions) to be checks against discriminable unions (#36663) 2020-02-10 15:26:46 -08:00
Sheetal NandiandGitHub 70e6f5b8a0 Handle walkThroughSnippet:/ and untitled:/ as dynamic files (#36722)
Handle walkThroughSnippet:/ and untitled:/ as dynamic files
Fixes #36681
2020-02-10 13:55:43 -08:00
fa3173f8f6 Either clone or pull, don't do both (#35230)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-02-07 10:17:44 -08:00
TypeScript BotandGitHub 909672450d Update user baselines (#36669) 2020-02-07 10:08:08 -08:00
Nathan Shively-SandersandGitHub 71c1da020f redo #28564 (#36665) 2020-02-07 09:55:29 -08:00