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
8153397e91
Lazily compute signature type predicates ( #17600 )
...
* Lazily compute signature type predicates
* Use an instance of IdentifierTypePredicate to represent an unresolved type predicate
* Simplify `getMaybeTypePredicate`
* Invert representation of `resolvedTypePredicate`
* Remove `__unresolvedTypePredicate` type and remember to use `noTypePredicate` instead of `undefined` when in all `createSignature` calls
* Fix style of getTypePredicateOfSignature
* Use in createGetSymbolWalker
* Fix bugs for unions of type predicates
* Code review
* Make noTypePredicate purely an implementation detail of getTypePredictateOfSignature
* Add test
* Add test for #19642
* Add test with reversed order
2017-12-05 08:32:34 -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
Nathan Shively-Sanders
2ec2238c1b
Merge pull request #20198 from Microsoft/jsdoc-values-as-namespaces
...
Jsdoc values as namespaces
2017-11-30 12:56:11 -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
Nathan Shively-Sanders
69bbfedd63
Merge branch 'master' into jsdoc-values-as-namespaces
2017-11-30 10:34:50 -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
011b567918
Don't offer to prepend an underscore to the name of an unused private property
2017-11-29 18:05:36 -08:00
Andy
93dca009f9
In navigation tree, don't merge static with non-static ( #20347 )
2017-11-29 15:25:06 -08:00
Nathan Shively-Sanders
61fe04ba0d
Merge branch 'master' into jsdoc-values-as-namespaces
2017-11-28 15:01:40 -08:00
Wesley Wigham
5ee640d2b6
Move utilities for getting type parameter constraints and defaults from public lazy members to services ( #20162 )
2017-11-28 13:37:42 -08: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
Cameron Taggart
b36379c597
replaced @parm typo with @param ( #20277 )
2017-11-27 10:10:55 -08: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
643e9fc1e4
Offer global completions in all blocks
2017-11-22 14:25:31 -08:00
Nathan Shively-Sanders
bee7d06761
Binder-based prop-assignment decls: messy version
2017-11-22 13:52:45 -08:00
Andy
7c5a0ec9c6
Clean up outliningElementsCollector ( #20143 )
...
* Clean up outliningElementsCollector
* Use depthRemaining instead of maxDepth
2017-11-21 14:27:26 -05:00
Andy
53796eed59
Clean up lexical classifier ( #20123 )
2017-11-20 16:25:51 -08: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
0c0f4b81ae
Simplify documentHighlights ( #20091 )
2017-11-17 10:19:35 -08:00
Andy
74a44e09a7
Support semantic classification of alias ( #20012 )
2017-11-17 08:04:51 -08:00
Andy
36f7f307f5
lineAction: Use an enum instead of true | false | undefined ( #20086 )
2017-11-17 06:13:56 -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
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
Andy
592ee00906
Have CompletionEntryDetails source use a relative path ( #19917 )
...
* Have CompletionEntryDetails source use a relative path
* Use getCanonicalFileName from services Instead of creating a new one
2017-11-14 14:26:49 -08:00
Ron Buckton
804c7d3690
Merge branch 'master' into dynamicNames
2017-11-13 13:24:20 -08:00
Ron Buckton
ae11ae55c5
Fix getReturnTypeFromBody widening
2017-11-13 13:19:49 -08:00
Ryan Cavanaugh
de7fbc041a
Merge pull request #19542 from RyanCavanaugh/fix19533
...
Exclude legacy safelist files in external projects
2017-11-10 15:28:35 -08:00
Wesley Wigham
06dd3f246f
Fail fast on synthetic nodes in services ( #19894 )
2017-11-10 12:55:07 -08:00
Andy
b94940525b
Allow applyCodeActionCommand to take an array ( #19870 )
...
* Allow applyCodeActionCommand to take an array
* Use this.host.newLine
2017-11-09 13:17:47 -08:00
Andy
65a191fa2b
For import completion of default import, convert module name to identifier ( #19875 )
...
* For import completion of default import, convert module name to identifier
* Suggestions from code review
2017-11-09 13:13:23 -08:00
Ryan Cavanaugh
b043edd61c
Merge
2017-11-09 12:42:37 -08:00
Andy
5ad7e9516b
Remove unnecessary wrapper classes in ts.formatting.Rule ( #19744 )
...
* Remove unnecessary wrapper classes in ts.formatting.Rule
* RulesProvider -> immutable FormatContext
* Remove Rules class, just use a list of rules
* Remove Shared namespace, replace Shared.TokenRange with TokenRange
* Simplify TokenRange
* Separate Rule and RuleSpec
* Move FormattingRequestKind to formattingContext.ts
* Simplify references
* Fix lint
* Revert removal of trailing newlines
2017-11-08 13:39:03 -08:00
Andy
1a0ec81488
quickInfo: Display info for signature on a separate line from variable info ( #18698 )
2017-11-08 09:56:50 -08:00
Nathan Shively-Sanders
9b36e1155a
Merge pull request #19039 from Microsoft/guard-name-in-getSuggestionForNonexistentSymbol
...
In getSuggestionForNonexistentSymbol, guard name against undefined
2017-11-07 15:03:26 -08:00
Andrew Casey
62eeb7254c
Merge pull request #19791 from amcasey/ImportLineBreaks
...
Handle windows linebreaks in getSourceFileImportLocation
2017-11-07 11:34:39 -08:00
Andrew Casey
2715f890b4
PascalCase -> camelCase
2017-11-07 10:47:36 -08:00
Andrew Casey
3e339d88a1
Handle other linebreak characters and add boundary checks
2017-11-07 10:33:35 -08:00
Andrew Casey
d1fa006a1e
Use CharacterCode enum
2017-11-07 10:10:34 -08:00
Aluan Haddad
b2b54cbf5c
Import fix add import require support ( #19802 )
...
* import fix: suggest import..require where supported if synthetic defaults are unavailable
* Add tests for import..require fix when targeting CommonJS, AMD, and UMD modules
* fix failing tests
2017-11-07 09:45:30 -08:00
Andy
bd2e97597d
Enable 'no-empty' tslint rule ( #19769 )
...
* Enable 'no-empty' tslint rule
* Fix bug
2017-11-07 09:22:28 -08:00
Andy
2fcf8b7068
Fix assertion -- an import may come from a require() call ( #19667 )
...
* Fix assertion -- an import may come from a require() call
* Add test for `import("./a")`
2017-11-07 07:41:21 -08:00