Andy Hanson
0defde7185
Services utilities: Combine isInsideComment with isInComment
2017-05-16 15:05:46 -07:00
Sheetal Nandi
303d7b209e
Merge branch 'master' into completionListForClassElementDeclarations
2017-05-12 15:31:52 -07:00
Sheetal Nandi
99ea9c730f
Add the members of interfaces that need to be implemented to class element completion
2017-05-12 12:13:16 -07:00
Mohamed Hegazy
1becbf4d2c
Merge pull request #15754 from charlespierce/string_literal_completion
...
Prevent Duplicate String Literal Completions
2017-05-12 11:07:00 -07:00
Andy
bed1e02f87
Merge pull request #15783 from Microsoft/goToDef-default
...
goToDefinition: Skip default and `=` imports
2017-05-12 11:00:41 -07:00
Andy Hanson
aaf6b83cb5
Don't goto aliased symbol with no declarations; and update tests
2017-05-12 10:26:39 -07:00
Andy Hanson
d6fa91edcd
goToDefinition: Skip default and = imports
2017-05-11 15:49:30 -07:00
Andy Hanson
5a4be34aaf
Merge branch 'master' into union-completion
2017-05-11 15:24:13 -07:00
Sheetal Nandi
588c4eca42
Filter out existing members of the class from the completion list
2017-05-11 14:19:35 -07:00
Andy
7a64de3aa9
Merge pull request #15772 from Microsoft/getWidth
...
findAllReferences: Clean up uses of `getWidth` and `getStart`
2017-05-11 13:23:10 -07:00
Andy
83beae7b8d
Merge pull request #15751 from Microsoft/tsx-gotodef
...
Fix bug for goto-definition on a TSX constructor using an alias declaration
2017-05-11 13:12:22 -07:00
Andy Hanson
6d6cdac645
Handle escaped identifiers
2017-05-11 12:22:10 -07:00
Andy Hanson
20a70f99b1
findAllReferences: Clean up uses of getWidth and getStart
2017-05-11 11:58:54 -07:00
Sheetal Nandi
a8ad40f131
Add async to the list of class element completion keyword and refactoring according to feedback
2017-05-11 11:42:36 -07:00
Charles Pierce
cff19ab3d3
Switch map to be used as a set rather than a map
2017-05-11 10:42:25 -07:00
Charles Pierce
3c8732fab1
Prevent Duplicate String Literal Completions
2017-05-10 17:26:47 -07:00
jramsay
8cf8184a57
Merge pull request #15744 from Microsoft/CompileOnSaveFixInResolveModuleName
...
Fix compile on save issues in VS 2015
2017-05-10 16:09:38 -07:00
Andy Hanson
f05a85d56f
Fix bug for goto-definition on a TSX constructor using an alias declaration
2017-05-10 15:49:40 -07:00
Andy Hanson
f3fe0138a2
Also make EnumMember have Type meaning
2017-05-10 12:21:01 -07:00
Andy Hanson
e26d2ae139
An enum should include a Namespace SemanticMeaning
2017-05-10 12:15:30 -07:00
Jason Ramsay
5a19e30c27
In shims.ts resolveModuleName should only return resolved modules found in ts files (.ts, .d.ts, .tsx)
2017-05-10 11:38:10 -07:00
Andy
76cc39e20e
Merge pull request #15703 from Microsoft/require-calls
...
importTracker: Require calls are stored in `sourceFile.imports`, no need to search for them
2017-05-10 08:10:25 -07:00
Nathan Shively-Sanders
3768daeeca
Merge pull request #15594 from Microsoft/get-name-of-declaration-wrapper
...
Get name of declaration uniformly, even for JS-style assignment declarations.
2017-05-10 08:08:07 -07:00
Andy
25796f0432
Merge pull request #15677 from Microsoft/find-all-refs-mapped-type
...
findAllReferences: Don't need to check for `symbol.declarations`
2017-05-09 12:21:40 -07:00
Nathan Shively-Sanders
370b5618a0
Merge branch 'master' into spelling-correction
2017-05-09 10:01:03 -07:00
Andy Hanson
318ccf24b5
importTracker: Require calls are stored in sourceFile.imports, no need to search for them
2017-05-09 09:55:16 -07:00
Nathan Shively-Sanders
0080c5fd66
Merge branch 'master' into get-name-of-declaration-wrapper
...
This PR included a fix that I already checked in this morning.
2017-05-08 15:39:57 -07:00
Nathan Shively-Sanders
9392342f78
Switch to Declaration/NamedDeclaration hierarchy
2017-05-08 15:07:50 -07:00
Andy Hanson
73a944711f
Remove checks for symbol.declarations
2017-05-08 13:51:08 -07:00
Andy Hanson
eb9d4c0586
findAllReferences: Given a synthetic property, find references for the original property.
2017-05-08 13:25:12 -07:00
Ron Buckton
47bd4d3a87
Merge pull request #15531 from Microsoft/moreFactoryFuncs
...
More factory functions
2017-05-08 12:05:05 -07:00
Andy
abb2b828b8
Merge pull request #15668 from Microsoft/completions-keyof
...
In addStringLiteralCompletionsFromType, use getBaseConstraintOfType instead of getApparentType
2017-05-08 11:52:39 -07:00
Andy Hanson
883ccaee5f
Remove old commented-out code from signatureHelp
2017-05-08 11:30:09 -07:00
Andy Hanson
9e03d42fda
In addStringLiteralCompletionsFromType, use getBaseConstraintOfType instead of getApparentType
2017-05-08 10:33:48 -07:00
Andy
681f33ef4a
Merge pull request #15560 from Microsoft/tokenRange
...
Make TokenRange an interface and remove `ITokenAccess` delegation
2017-05-05 17:23:40 -07:00
Sheetal Nandi
fcb0f46178
Tune the completion list for static and private modifiers
...
Do not show inherited members in completion for when writing private member
Show only static inherited members when writing static member
2017-05-05 11:30:32 -07:00
Sheetal Nandi
37a2cddabc
Give the class element completion on typing keywords like public, private, readonly
...
Also when name of the function is location, make sure we are actually looking at the same symbol before using the declaration to get signature to display
2017-05-05 11:30:32 -07:00
Sheetal Nandi
b3d793608d
Completion list for a class extending another class should contain members from base class
...
Handles #7158
2017-05-05 11:30:32 -07:00
Andy
1511c2eda7
Merge pull request #15593 from Microsoft/jsdoctagnames
...
Deduplicate jsDocTagNames and sort alphabetically
2017-05-05 07:24:12 -07:00
Nathan Shively-Sanders
d35f6c3581
getNameOfDeclaration uniformly, including JS decls
...
JS-style assignment declarations have a name, but it's not stored on the
name property of the BinaryExpression. This commit adds
`getNameOfDeclaration` to uniformly get the name of a declaration.
It also reworks the declaration of `Declaration` so that accessing
`name` is an error unless the type does *not* include
BinaryExpression.
2017-05-04 16:12:54 -07:00
Andy Hanson
7dddcb816f
Deduplicate jsDocTagNames and sort alphabetically
2017-05-04 14:16:09 -07:00
Nathan Shively-Sanders
9eaf40bded
Merge branch 'master' into spelling-correction
2017-05-03 15:34:32 -07:00
Andy Hanson
99c18744d2
Add isCallOrNewExpression helper
2017-05-03 10:57:57 -07:00
Andy Hanson
c61a371e62
Make TokenRange an interface and remove ITokenAccess delegation
2017-05-03 10:07:27 -07:00
Arthur Ozga
4c0735218e
move import getCodeActions into named method
2017-05-02 15:52:17 -07:00
Andy Hanson
e12b708221
For completions of union type, get all possible properties
2017-05-02 15:38:15 -07:00
Andy Hanson
b6bd396983
Fix formatting for async computed method: Allow space between 'async' and '['
2017-05-02 09:42:32 -07:00
Ron Buckton
d37426d865
Fill out remaining factory functions
2017-05-01 13:40:47 -07:00
Nathan Shively-Sanders
1bff5b749e
Codefix:suggest spellings+update others w/new codes
2017-05-01 11:41:01 -07:00
Andy
20bba9c662
Merge pull request #15496 from Microsoft/rm_fallthrough
...
unusedIdentifierFixes: Factor out nested switch statements and fix implicit fallthrough
2017-05-01 10:13:40 -07:00