Commit Graph

1973 Commits

Author SHA1 Message Date
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
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
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
3c8732fab1 Prevent Duplicate String Literal Completions 2017-05-10 17:26:47 -07:00
Andy
12cfa248c1 Merge pull request #15673 from Microsoft/import-star-export-equals
Given `import *` of an `export =` module, raise an error but still return a symbol.
2017-05-10 17:04:04 -07:00
Andy
69324278d1 Merge pull request #15741 from Microsoft/import_propertyName_isWriteAccess
isDeclarationName: Return false for LHS of `import { x as y }` and `e…
2017-05-10 16:30:48 -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
Andy Hanson
2e36c83f77 isDeclarationName: Return false for LHS of import { x as y } and export { x as y } 2017-05-10 11:52:19 -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
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
Yui T
36ef849209 Update baaselines 2017-05-08 15:35:17 -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
Andy Hanson
8035e99921 Given import * of an export = module, raise an error but still return a symbol. 2017-05-08 12:00:52 -07:00
Andy Hanson
9e03d42fda In addStringLiteralCompletionsFromType, use getBaseConstraintOfType instead of getApparentType 2017-05-08 10:33:48 -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
Nathan Shively-Sanders
aceadeb04b Update baselines 2017-05-04 16:13:32 -07:00
Andy Hanson
705774e707 Remove tests that depended on exact number of jsdoc tag names 2017-05-04 14:38:06 -07:00
Nathan Shively-Sanders
9eaf40bded Merge branch 'master' into spelling-correction 2017-05-03 15:34:32 -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
Nathan Shively-Sanders
2479c071f9 Update baselines 2017-05-01 11:42:22 -07:00
Mohamed Hegazy
5e7778b36f Merge pull request #15491 from SaschaNaz/newformat
No space after new keyword on constructor signature
2017-05-01 09:43:12 -07:00
Andy Hanson
969da26d45 Add isWriteAccess 2017-05-01 09:03:12 -07:00
Andy Hanson
a70b79072b importTracker: Fix error for undefined importClause 2017-05-01 07:54:41 -07:00
Kagami Sascha Rosylight
61f494ec5d no space after new on constructor signatures 2017-05-01 23:11:59 +09:00
Yui
a1a2006074 Merge pull request #15160 from Microsoft/master-jsxChildren
[Master] Type checking JSX children
2017-04-21 10:02:13 -07:00
Andy Hanson
4ff180d814 Fix null error in importTracker: VariableDeclaration might not have a VariableStatement ancestor 2017-04-21 07:55:16 -07:00
Yui T
b7a30c11bd Update tests and baselines 2017-04-19 22:33:54 -07:00
Kanchalai Tanglertsampan
f6f0813528 Merge branch 'master' into master-jsxChildren
# Conflicts:
#	src/compiler/checker.ts
#	src/compiler/diagnosticMessages.json
2017-04-17 13:31:12 -07:00
Kanchalai Tanglertsampan
9a23b75f05 Update baselines and tests (2) 2017-04-17 13:00:38 -07:00
Andy
72feaad893 Merge pull request #14001 from Microsoft/refactor_findallrefs
Refactor findAllReferences. Now supports renamed exports and imports.
2017-04-14 09:57:54 -07:00
Mohamed Hegazy
ccda015578 Fix failing fourslash test 2017-04-14 09:38:53 -07:00
Nathan Shively-Sanders
11f715c724 Merge pull request #15036 from Microsoft/remove-readonly-from-spread-properties
Remove readonly from spread properties
2017-04-12 16:32:16 -07:00
Kanchalai Tanglertsampan
f0990460a6 Add tests 2017-04-12 12:17:27 -07:00
Nathan Shively-Sanders
0ffe24c64b Expand spread property find-all-ref test 2017-04-12 11:47:23 -07:00
Nathan Shively-Sanders
28cdaf24e9 Address PR:fix find-all-refs and slim down code
Also add readonly to find-all-ref test
2017-04-12 11:31:52 -07:00