Anders Hejlsberg
71d70ef161
Merge pull request #29563 from Microsoft/fixSwitchControlFlow
...
Fix switch statement control flow logic
2019-01-24 10:36:52 -08:00
Anders Hejlsberg
500c4729e9
Add additional repro
2019-01-24 10:12:35 -08:00
Anders Hejlsberg
83f7f4d190
Add regression test
2019-01-24 09:30:46 -08:00
xiaofa
d7601b755f
fix trailing comma should not allowed in dynamic import argument
2019-01-24 18:16:34 +08:00
Ryan Cavanaugh
2f6c65e691
Merge pull request #26653 from Kingwl/improve_type_arguments_parser_1
...
parse less than token rather than left shift in context of type argum…
2019-01-23 16:21:12 -08:00
Sheetal Nandi
73fe3fc0f5
Merge pull request #29532 from Microsoft/umdModuleGlobalMerge
...
Handle find all references for symbol merged with UMD module and global var
2019-01-23 11:13:58 -08:00
Sheetal Nandi
d42185373a
PR feedback
2019-01-23 10:48:17 -08:00
Ron Buckton
76b78a4df5
Fix crash in signatureHelp
2019-01-22 15:02:30 -08:00
Sheetal Nandi
f0227ecb2c
Handle find all references for symbol merged with UMD module and global var
...
Fixes #29093
2019-01-22 14:52:39 -08:00
kingwl
e8497096d8
Merge branch 'master' into improve_type_arguments_parser_1
2019-01-20 01:54:49 +08:00
Andrew Casey
3a2f6a3ed1
Merge pull request #29470 from amcasey/InterfaceImplementations
...
Don't treat interfaces as implementations
2019-01-18 16:28:49 -08:00
Pranav Senthilnathan
d38c616e29
Fix resolution of properties from prototype assignment in JS ( #29302 )
...
* fix type derived from prototype assignment
* accept new baselines
* remove direct intersection with object literal assigned to prototype
* add tests
* change webpack submodule commit
* fix submodule commits
* comment and simplify getJSDocTypeReference
* remove circularity guards that aren't hit anymore
2019-01-18 16:00:18 -08:00
Wesley Wigham
20285e66e9
Include all flow nodes made within try blocks as antecedents for catch or finally blocks ( #29466 )
...
* Include all flow nodes made within `try` blocks as antecedents for `catch` or `finally` blocks
* Fix typo
2019-01-18 14:43:31 -08:00
Andrew Casey
737fda928c
Don't treat interfaces as implementations
...
...even if they're in ambient contexts. Same for type aliases.
2019-01-17 15:45:01 -08:00
Wesley Wigham
addeff325b
Make the relationship between partial mapped types and the empty object not apply for subtype relationship ( #29384 )
2019-01-17 15:42:58 -08:00
Wesley Wigham
b6ae492009
Add missing arity check on second inference pass ( #29386 )
2019-01-17 15:21:17 -08:00
Wesley Wigham
045a450972
Merge branch 'fix-generic-types-intersections' of git://github.com/flapenguin/TypeScript into flapenguin-fix-generic-types-intersections
2019-01-17 10:49:04 -08:00
Andrew Casey
94ca50177a
Merge pull request #29451 from amcasey/GH27937
...
Consider JSX namespace imports when moving statements between files
2019-01-17 10:19:02 -08:00
Andrew Casey
4029e70c97
Illustrate a case that isn't handled correctly
2019-01-16 19:24:51 -08:00
Andrew Casey
3e256e14dc
Add fourslash tests
2019-01-16 19:18:25 -08:00
Benjamin Lichtman
5fc8f1dd80
Add opt-in user preference for prefix and suffix text on renames ( #29314 )
...
* Add user preference to control renaming through exports
* Only impact renaming
* Update baselines
* Use flag to control all prefix and suffix text and imports
* [WIP] add tests
* Only skip export import specifier with flag
* [WIP] Update tests
* Update test
* Pick up preference from host and update test
* Shorten flag name
* Add missing utility function
* Update comment
* [WIP] rename flag and respond to cr
* [WIP] Add flag for forRelatedSymbol
* Use larger search symbol set for old-style rename
* Respond to CR
* Fix small error
* Fix type mismatch
* Update comment and remove unnecessary exprot
* Respond to CR
2019-01-16 10:58:07 -08:00
Wesley Wigham
41a7bf4b73
Fake up value declaration for synthetic jsx children symbol so they get excess property checked ( #29359 )
2019-01-15 22:31:57 -08:00
Daniel Rosenwasser
9cd5f2dd3c
Add regression test. ( #29433 )
2019-01-15 17:39:02 -08:00
Wesley Wigham
49689894d7
Elaborate jsx children elementwise ( #29264 )
...
* Heavy WIP, but has good contextual typing fix
* Add arity error, refine messages and spans
* Small error message change
* Better error messages, text-specific message
2019-01-15 11:32:36 -08:00
Benjamin Lichtman
c5948bf068
Merge pull request #29385 from uniqueiniquity/renameImportPref
...
Add user preference to opt-in to renaming import paths
2019-01-15 10:29:57 -08:00
Ron Buckton
5763e2c3d4
Remove overzealous simple relationship check for unique symbols
2019-01-14 17:08:04 -08:00
Sheetal Nandi
d53619a30d
Merge pull request #29418 from Microsoft/exportEquals
...
Handle generating action for export equals with anonymous symbol
2019-01-14 16:12:32 -08:00
Sheetal Nandi
6e54cbdaff
Handle generating action for export equals with anonymous symbol
...
Fixes #28845
2019-01-14 15:32:13 -08:00
Wesley Wigham
3d2bf6a75f
Fix implement interface quickfix import types ( #29410 )
...
* Pass module specifier resolution host thru types constructed by implements quickfixes
* Add regression test
* Fix scope node for generated methods, fix lints
2019-01-14 13:56:27 -08:00
Wesley Wigham
dc0f4afe5e
Save & recalculate declare flag modifier on late printed statements ( #29412 )
...
* Save & recalculate declre flag modifier on late printed statements
* Accept related baseline updates
2019-01-14 13:53:04 -08:00
Sheetal Nandi
d4055a3234
Merge pull request #26017 from ajafff/rest-param-destructuring
...
allow BindingPattern in FunctionRestParameter
2019-01-14 10:58:19 -08:00
Gabriela Britto
e5708e1903
Merge pull request #29352 from Microsoft/qualified-name-param-tag-error
...
Qualified name param tag error
2019-01-14 10:28:08 -08:00
Benjamin Lichtman
d029fae35c
Add user preference to opt-in to renaming import paths
2019-01-11 14:45:08 -08:00
Sheetal Nandi
9f19c06dbf
Merge pull request #29372 from JoshuaKGoldberg/codefix-enable-decorators
...
Added codefix to enable experimentalDecorators in the user's config file
2019-01-11 12:45:28 -08:00
Josh Goldberg
8d28f9230c
Added codefix to enable experimentalDecorators in the user's config file
...
Starts on #29035 by creating a codefix to enable the `experimentalDecorators` setting in a user's config file, if one exists. The issue's discussion also mentions giving a more precise error message if the user has a jsconfig or tsconfig or creating one if not; I'd rather tackle those in separate PRs to keep this one small.
Doesn't create the code action if no config file is present. Otherwise keeps to the precedent of returning without action when the config file contents aren't the expected JSON structure (looking at `fixCannotFindModule.ts`). Moves a couple JSON helpers from that file into the sibling `helpers.ts` so both codefixes can use them.
2019-01-11 09:20:12 -05:00
Martin Probst
f3f5877c5f
Add tests for noLib with <reference lib> and bundling.
2019-01-11 09:02:49 +01:00
Martin Probst
cc7ddaed28
Add tests for noLib with <reference lib>.
2019-01-11 09:02:49 +01:00
Gabriela Britto
b3633fab52
Add more tests for qualified name param without top level object error
2019-01-10 15:04:16 -08:00
Wesley Wigham
aba0b700b6
Allow circular umd-merged-with-augmentation refs to resolve to the module as intended ( #29335 )
2019-01-10 14:48:15 -08:00
Wesley Wigham
76f444e338
Allow nonnull assertions in references ( #29351 )
2019-01-10 14:45:19 -08:00
Gabriela Britto
ebe193c6d7
Minor refactor in paramTagNestedWithoutTopLevelObject.ts
2019-01-10 14:05:10 -08:00
Gabriela Britto
e2524e3750
Add test for qualified name param without top level object error
2019-01-10 09:55:06 -08:00
Anders Hejlsberg
52b82560e8
Merge pull request #29338 from Microsoft/fixConditionalTypeResolution
...
Fix conditional type resolution
2019-01-09 17:18:12 -08:00
Anders Hejlsberg
9fda7014ca
Add regression tests
2019-01-09 16:16:24 -08:00
Wesley Wigham
d0aff9bdcd
Fix crash ( #29333 )
2019-01-09 14:23:57 -08:00
Sheetal Nandi
387be1fffa
Merge pull request #29316 from Microsoft/randomIdentifier
...
Verify that completion with new identifier location returns isNewIdentifierLocation: true
2019-01-09 13:01:22 -08:00
Daniel Rosenwasser
6bfb935929
Merge pull request #25445 from a-tarasyuk/bug/24542-bad-error-message-for-import-ing-an-export
...
24542 - bad error message for `import *`-ing an `export=`
2019-01-09 11:02:14 -08:00
Klaus Meinhardt
b52a7fc3ea
Exclude JSDoc @extends from 'super()' checks ( #29308 )
...
* Exclude JSDoc @extends from 'super()' checks
This fixes a similar problem as #29244 where JSDoc `@extends`
* fix check 'super can only be referenced in a derived class'
2019-01-09 10:35:22 -08:00
Sheetal Nandi
3f5c0b81a3
Fix existing test
2019-01-09 10:28:53 -08:00
Wesley Wigham
19c72c758a
Allow untyped calls on unions of untyped things ( #29265 )
2019-01-08 11:05:55 -08:00