3007 Commits

Author SHA1 Message Date
Arthur Ozga
9110461294 use getBaseTypeOfLiteralType 2017-02-15 14:24:25 -08:00
Arthur Ozga
92e4c6b7db Get Widened Type 2017-02-14 17:30:28 -08:00
Arthur Ozga
9897c69492 wip 2017-02-14 17:30:28 -08:00
Zhengbo Li
1f484a9a03 Merge pull request #13966 from zhengbli/13110
Delete the following new line when removing unused locals
2017-02-14 13:15:17 -08:00
Andy
0417e3f909 Merge pull request #14050 from Microsoft/tsx_completion
Detect non-tag uses of `<` in TSX completions
2017-02-14 12:13:15 -08:00
Mohamed Hegazy
72877ed596 Merge pull request #14035 from Microsoft/findallrefs_keyword_definition
When performing find-all-refs for a keyword, use the first result as the definition.
2017-02-14 12:06:59 -08:00
Arthur Ozga
c57fc1fa54 Merge pull request #14055 from aozgaa/UnduplicateAbstractMethodCodeFix
Unduplicate missing abstract member codefix
2017-02-14 11:42:28 -08:00
Arthur Ozga
6c2c2f8f3f use deduplicate 2017-02-14 11:30:19 -08:00
Mohamed Hegazy
53d095bd69 Update version 2017-02-13 20:35:54 -08:00
Arthur Ozga
21355982fd Offer missing abstract codefix once
* per class that is missing potentially many abstract members.
2017-02-13 16:58:14 -08:00
Andy Hanson
aa5c88f5a6 Detect non-tag uses of < in TSX completions 2017-02-13 14:44:05 -08:00
Anders Hejlsberg
7cd0e1a0e6 Merge pull request #13990 from Microsoft/fixPrivateProtected
Properly handle private and protected properties in intersections
2017-02-13 08:13:38 -10:00
Andy Hanson
778fed96fd When performing find-all-refs for a keyword, use the first result as the definition. 2017-02-13 06:47:41 -08:00
Mohamed Hegazy
84fc29f900 Fix lint failures detected by tslint@4.4.2 2017-02-09 12:46:09 -08:00
zhengbli
80568c5326 remove the new line after targeted line 2017-02-08 19:11:42 -08:00
Andy
51d4970ce0 Merge pull request #13760 from Microsoft/find_all_refs_tests
Change find-all-references tests to test for groups
2017-02-08 07:05:36 -08:00
Ron Buckton
a7728f8fa1 Clean up extraneous file 2017-02-07 11:24:05 -08:00
Ron Buckton
955b10edf9 Merge pull request #13825 from Microsoft/publicNodeFactories
Make most current Node factory functions public
2017-02-06 15:43:40 -08:00
Anders Hejlsberg
b830dea362 Clean up SymbolFlags, introduce CheckFlags in TransientSymbol 2017-02-05 13:20:10 -08:00
Ron Buckton
9a65a66423 Fix linter error 2017-02-04 22:46:38 -08:00
Zhengbo Li
df643d8d02 Merge pull request #13405 from zhengbli/13137
Support import fix for missing namespace
2017-02-02 16:11:08 -08:00
zhengbli
62f716aaa6 avoid removing comments when removing unused locals 2017-02-02 13:50:34 -08:00
Zhengbo Li
6c56b3d957 Fix casing in import quick fix 2017-02-02 02:17:49 -08:00
Mohamed Hegazy
a39c14ec2e Factor kind check to a separate function 2017-01-31 21:34:25 -08:00
Mohamed Hegazy
52841924da Support string literal completion in case labels 2017-01-31 20:24:36 -08:00
Mohamed Hegazy
3b1b5e241f Add string literal completion for equality expression 2017-01-31 16:44:59 -08:00
Andy Hanson
8515f7e2b5 Change find-all-references tests to test for groups
* Also always test for isWriteAccess and isDefinition
2017-01-31 06:59:16 -08:00
Vladimir Matveev
9b6f9305d9 support untyped imports in shims (#13758) 2017-01-30 13:19:44 -08:00
Daniel Rosenwasser
57e224ce3a Merge branch 'master' into fixMissingThis 2017-01-30 12:01:12 -08:00
Andy
65125791d2 Merge pull request #13643 from Microsoft/find_all_refs_default
Support find-all-references for default exports
2017-01-26 10:33:17 -08:00
Andy Hanson
5bf9b30c5d Replace isSearchedFor with directly passing searchSymbols 2017-01-26 09:50:38 -08:00
Andy Hanson
916e67a92c For goToDefinition, verify that tryGetSignatureDeclaration returns a signature declaration and not a FunctionType. 2017-01-25 13:02:02 -08:00
Andy Hanson
33b8677cb5 Change "getIsDefinedInLibraryFile" back to just "isDefinedInLibraryFile" 2017-01-24 14:32:39 -08:00
Andy Hanson
a478bfddd2 Simplify code in 'rename' 2017-01-24 13:44:36 -08:00
Andy Hanson
e8c3d548eb Fix tests 2017-01-24 12:56:21 -08:00
Nathan Shively-Sanders
053b3cd893 getFirstToken skips JSDoc
Fixes #13519.
This is a better fix than #13599.
Also fixes broken tests associated with #13599.
2017-01-23 16:01:29 -08:00
Andy Hanson
0ca4cb25d6 Support find-all-references for default exports 2017-01-23 14:31:29 -08:00
Andy Hanson
77a504bb64 Clean up code in findAllReferences 2017-01-23 13:25:08 -08:00
Anders Hejlsberg
5b9004e1bc Merge pull request #13604 from Microsoft/intersectionBaseTypes
Allow deriving from object and intersection types
2017-01-21 11:38:24 -10:00
Mohamed Hegazy
9ced124579 Merge pull request #13610 from basarat/patch-1
export the type `Log` that is used by exported functions
2017-01-20 17:27:45 -08:00
Mohamed Hegazy
9ac7c322b5 Merge pull request #13599 from Microsoft/getFirstToken-returns-jsdoc
getFirstToken returns jsdoc as single comment
2017-01-20 17:01:02 -08:00
Basarat Ali Syed
108d8cf584 export the type Log that is used by exported functions
closes https://github.com/Microsoft/TypeScript/issues/13559
2017-01-21 11:36:18 +11:00
Nathan Shively-Sanders
1183129bda getFirstToken returns jsdoc as single comment
This is a bit odd, but it's the way that 2.0 and earlier behaved. 2.1
broke it.
2017-01-20 10:17:11 -08:00
Andy Hanson
36a9f6798a Merge branch 'master' into find_all_refs_primitive 2017-01-20 06:50:52 -08:00
Andy Hanson
1267fd3030 Don't use nameTable for type keywords, and don't handle keyof. 2017-01-20 06:41:57 -08:00
Anders Hejlsberg
a6c5306479 Allow object intersection types as class/interface base types 2017-01-19 13:58:09 -08:00
Yui
d36cd9b51b Merge pull request #11683 from Microsoft/useCollator_toImprovcePerformance
Remove localeFix function and use collator object when we can
2017-01-18 14:03:57 -08:00
Andy Hanson
2d232c21a2 Support find-all-references for type keywords 2017-01-18 12:27:33 -08:00
Andy Hanson
bddcbc5f20 Move code out of closure in getDocumentHighlights, then again out of getSemanticDocumentHighlights and getSyntacticDocumentHighlights.
Also return a `Node[]` instead of a `HighlightSpan[]` where possible and do mapping from Node to HighlightSpan in one place.
2017-01-17 14:49:52 -08:00
Andy
65ef51d2f3 Merge pull request #12715 from Microsoft/map5
Use native maps when they're available
2017-01-17 11:04:28 -08:00