Andy
813864f021
For import completion, use an existing namespace import ( #20457 )
2017-12-21 11:16:09 -08:00
Daniel Rosenwasser
89b5d8cb14
Merge pull request #19204 from Kingwl/fix-completions-with-template-literal-type
...
fix completions for string literal types with template string (#19162 )
2017-12-19 11:18:21 -08:00
Andy
60bd262437
Don't treat class name as a completion list blocker if the position comes after it ( #20762 )
2017-12-18 12:41:05 -08:00
Andy
1562a278f8
Don't add completion for method if the this parameter doesn't match ( #20616 )
2017-12-18 11:28:04 -08:00
Andy
2efc92d1dc
Adjust formatting rule priority: Never delete space after case ( #20615 )
2017-12-18 10:54:54 -08:00
Andy
9a62454485
Include static 'this' accesses in references of class ( #20483 )
2017-12-18 10:54:22 -08:00
Andrew Casey
5e2dec7727
Merge pull request #20729 from amcasey/GH19839
...
Refine Extract Local
2017-12-15 16:51:25 -08:00
Andrew Casey
08a9c61640
Update fourslash baseline
2017-12-15 16:31:27 -08:00
Wesley Wigham
dd933f4413
Fix get symbol at location to behave correctly for parameter assignments and jsx attributes ( #20706 )
...
* Fix get symbol at location to behave correctly got parameter assignments and jsx attributes
* Handle all those edge cases that weren;t explicitly handled
* Fix part of bug WRT getTypeAtLocation and for loops
* Baseline corrections pursuant to #20710
* Restore jsdoc tag interpretation
* Clean up some code, revert fourslash tests
* Cleanup types used by PR feedback
2017-12-15 15:50:22 -08:00
Wesley Wigham
d89d68f426
make jsx attributes mutable locations ( #20710 )
2017-12-15 10:02:56 -08:00
Benjamin Lichtman
26c1a49d59
Merge pull request #20640 from uniqueiniquity/revertToJsDocInclusionList
...
Revert to inclusion list for JsDoc comment completion
2017-12-14 14:37:31 -05:00
Ryan Cavanaugh
f6603cd9f2
Merge pull request #20545 from RyanCavanaugh/codefixOmnibus
...
Omnibus fixes for telemetry-sourced crashes
2017-12-13 12:49:58 -08:00
Andy
8ad4aeece1
Make ChangeTracker#newLineCharacter public, to avoid having to pass newLineCharacter around as a parameter ( #20574 )
...
* Make ChangeTracker#newLineCharacter public, to avoid having to pass newLineCharacter around as a parameter
* Don't require newLineCharacter as input to ChangeTracker methods, and make it private again
2017-12-12 12:23:13 -08:00
uniqueiniquity
03b036b630
Revert "Loosen restrictions on jsdoc completion locations"
...
This reverts commit 612616a105 .
2017-12-11 15:56:31 -08:00
Andy
b629ff4204
Fix bug: FunctionDeclaration may have missing name ( #20618 )
2017-12-11 09:45:20 -08:00
Ryan Cavanaugh
5c99c67b4b
Fixes #20542
2017-12-07 12:39:17 -08:00
Ryan Cavanaugh
b7b43fe601
Fixes #20527
2017-12-07 12:39:16 -08:00
Ryan Cavanaugh
2cf7295c4e
Fix #20520
2017-12-07 12:38:44 -08:00
Ryan Cavanaugh
6e74f7ee11
Fix #20523
2017-12-07 12:38:08 -08:00
Andy
19ea189b42
Support a "getCombinedCodeFix" service ( #20338 )
...
* Support a "getCombinedCodeFix" service
* Rename things
* Code review
* Rename things
* Update API baselines
* CodeActionAll -> CombinedCodeActions
* Take a `scope` parameter instead of `fileName` for flexibility
* Renames and bugfixes
* Make API changes internal
* Code review
* Update comment
2017-12-07 12:14:18 -08:00
Andy
18a7c3fb53
For import fix, prefer symlink over a real path ( #20395 )
...
* For import fix, prefer symlink over a real path
* fixes
* Use best result from all symlinks
* Make originalPath optional more
* Only include real path if a symlink isn't available
2017-12-06 11:27:38 -08:00
wenlu.wang
ae25d09761
add supports of completion label list ( #20362 )
2017-12-06 07:01:37 -08:00
Andy
8f23bf813c
Add textChanges methods to insert nodes at the start of multiline bodies ( #20445 )
...
* Add textChanges methods to insert nodes at the start of multiline bodies
* Replace constructor body if not already multiline
2017-12-05 08:33:29 -08:00
Andy
93551ab93b
Update test that import code fix doesn't use node_modules global import if classic resolution is set ( #20453 )
2017-12-04 13:15:45 -08:00
Andy
334bf4eaf7
Remove 'debugger' statement from test ( #20444 )
2017-12-04 10:47:50 -08:00
Mohamed Hegazy
65af685b49
Remove periods from refactor/quickfix messages ( #20237 )
...
* Fix #19959 and #19958 : Remove un-localizable messages
* Update message
* Reorder error messages
* Fix https://github.com/Microsoft/TypeScript/issues/15399 : remove periods at the end of messages
* Accept baselines for error code changes
* accept baselines for removed periods
* Update diagnostic messages
2017-12-01 16:38:59 -08:00
Andy
fd4d8ab96e
Support a 'recommended' completion entry ( #20020 )
...
* Support a 'recommended' completion entry
* Code review
* Restore duplicate comments
2017-12-01 13:00:01 -08:00
Andrew Casey
8f1cdc9b0c
Merge pull request #20373 from amcasey/PropertyUnderscore
...
Don't offer to prepend an underscore to the name of an unused private property
2017-11-30 13:08:26 -08:00
Andy
75e5b13775
Don't suggest import completions for /a/node_modules if we're in /b ( #19928 )
...
* Don't suggest import completions for /a/node_modules if we're in /b
* Remove test for delving into dependencies of dependencies
2017-11-30 11:25:01 -08:00
Andy
43a35bad2e
Miscellaneous fixes to avoid duplicate completions ( #20349 )
...
* Miscellaneous fixes to avoid duplicate completions
* Move typeHasCallOrConstructSignatures to utility
2017-11-30 09:36:17 -08:00
Andy
56a046ddf4
installTypesForPackage refactor: Trigger even if resolved to a ".js" file ( #20353 )
...
* installTypesForPackage refactor: Trigger even if resolved to a ".js" file
* Use `extensionIsTypeScript`
2017-11-30 08:41:15 -08:00
Andrew Casey
d7da7d48d3
Update affected fourslash test
2017-11-29 18:27:56 -08:00
Andy
93dca009f9
In navigation tree, don't merge static with non-static ( #20347 )
2017-11-29 15:25:06 -08:00
Andy
94ea38859b
Disable import fix for method of 'export =' value ( #20208 )
...
* Disable import fix for method of 'export =' value
* Exclude primitives, but allow other interfaces
* Use type.flags
* Fix comment
2017-11-28 17:46:06 -05:00
Andy
cb5fd53731
Handle shebang in import code fix ( #20306 )
2017-11-28 15:41:59 -05:00
Andy
bbb56fed11
Support parameter properties in getRelatedSymbol ( #20202 )
2017-11-28 14:12:28 -05:00
Andy
185f15d2af
Support both baseUrl and relative paths when adding missing import ( #19724 )
...
* Support both baseUrl and relative paths when adding missing import
* Code review
* Always use getRelativePathNParents, not getRelativePathLength
2017-11-28 14:01:51 -05:00
Mohamed Hegazy
6b3cfc7008
Fix #19959 and #19958 : Remove un-localizable messages ( #20019 )
...
* Fix #19959 and #19958 : Remove un-localizable messages
* Update message
* Update diagnostic messages
2017-11-24 22:02:48 -08:00
Andrew Casey
dc3b4166b2
Update test baseline
2017-11-22 15:11:38 -08:00
Andy
6e57c2630f
Support getJSDocCommentsAndTags for special property assignments ( #20193 )
2017-11-21 14:29:52 -05:00
Andy
7c5a0ec9c6
Clean up outliningElementsCollector ( #20143 )
...
* Clean up outliningElementsCollector
* Use depthRemaining instead of maxDepth
2017-11-21 14:27:26 -05:00
Andy
97bb471e48
For import completion, if multiple re-exports exist, choose the one with the shortest path ( #20049 )
...
* For import completion, if multiple re-exports exist, choose the one with the shortest path
* Code review
2017-11-17 14:35:32 -08:00
Andy
e7adb1ce79
Bundle fileName with CodeActionCommand ( #19881 )
...
* Bundle fileName with CodeActionCommand
* Update test
* Fix API tests
* Add new overloads in services
* Fix overload
* Update API baselines
2017-11-17 14:16:38 -08:00
Andy
74a44e09a7
Support semantic classification of alias ( #20012 )
2017-11-17 08:04:51 -08:00
Andy
9992395f42
Support arbitrary prototype property assignments in navigation bar ( #19923 )
2017-11-16 16:51:02 -08:00
Andy
478b404f42
Detect re-exports from "export *" in completions ( #20043 )
2017-11-16 11:15:14 -08:00
Andy
94581c1946
Strip "/index" from import fix module specifiers ( #19962 )
...
* Strip "/index" from import fix module specifiers
* Require "node" module resolution
* More tests
2017-11-16 11:12:34 -08:00
Ron Buckton
a21a129abb
Merge branch 'master' into dynamicNames
2017-11-15 15:24:05 -08:00
Andy
4b96edf72f
Treat ... in jsdoc type as creating a synthetic rest parameter -- not as an array type ( #19483 )
...
* Treat `...` in jsdoc type as creating a synthetic rest parameter -- not as an array type
* Change type parsing so `...T[]` parses as `...(T[])` and not `(...T)[]`
* Replace the last parameter with ...args, and make access to it potentially undefined
* Code review
2017-11-15 13:04:08 -08:00
Andy
d49491b3a7
smartIndenter: Don't indent after control-flow ending statements like break; ( #20016 )
...
* smartIndenter: Don't indent after control-flow ending statements like `break;`
* Fix bug
* Fix bug for function after `return`
2017-11-15 11:08:51 -08:00