2968 Commits

Author SHA1 Message Date
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
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
Andy Hanson
30ccc7a5d0 Merge branch 'master' into map5 2017-01-17 10:42:27 -08:00
Andy
d80d8b759a Merge pull request #13535 from Microsoft/empty_types
Move `"types": []` to tsconfig-base
2017-01-17 10:40:59 -08:00
Andy Hanson
9fbadfdc67 Move "types": [] to tsconfig-base 2017-01-17 08:02:39 -08:00
Andy Hanson
f1e7142f3c Move code out of closure in getCompletionsAtPosition 2017-01-17 07:42:31 -08:00
Andy
4ba382a1d1 Merge pull request #13478 from Microsoft/string_literal_rest_parameter
Support completions for string literal in rest parameter
2017-01-17 06:40:15 -08:00
Andy
3b0f2c152b Merge pull request #13476 from Microsoft/findallrefs_unclosure
Move code out of closure in `getReferencedSymbolsForNode`
2017-01-16 09:18:39 -08:00
Andy Hanson
f1b481a1b6 Support completions for string literal in rest parameter 2017-01-13 14:13:49 -08:00
Andy Hanson
0b8de64a1b Move code out of closure in getReferencedSymbolsForNode 2017-01-13 13:20:39 -08:00
Andy
d86d850211 Merge pull request #13401 from Microsoft/navbar_exported_functions
Include "export" modifier on function assigned to an export (`export const x = () => 0;`).
2017-01-13 10:33:39 -08:00
Andy
43a2d3849b Merge pull request #13446 from Microsoft/export_equals_completion
Include properties of an `export =` value in import completions.
2017-01-13 09:55:43 -08:00
Andy Hanson
639f5cb6e5 Fix bug for constructor with modifier 2017-01-13 08:10:58 -08:00
Andy Hanson
765114fccd Refactor to move code into checker 2017-01-13 07:57:21 -08:00
Andy Hanson
113338c791 Merge branch 'master' into map5 2017-01-12 12:35:00 -08:00
Zhengbo Li
a36db0ea10 Merge pull request #13424 from zhengbli/13129
Change the module specifier search order
2017-01-12 12:06:28 -08:00
Andy Hanson
30e2fd6c20 Remove "noResolve" 2017-01-12 10:18:59 -08:00
Andy Hanson
733111a931 Use tsconfig inheritance 2017-01-12 07:46:55 -08:00
Andy Hanson
890676a5d8 Include properties of an export = value in import completions. 2017-01-12 07:33:36 -08:00
Zhengbo Li
c897235364 Change the module specifier search order 2017-01-11 14:30:37 -08:00
Andy Hanson
30462e11ef Merge branch 'master' into map5 2017-01-11 12:24:47 -08:00
Andy Hanson
37e18d9741 Add createMapFromTemplate helper 2017-01-11 09:52:50 -08:00
Andy Hanson
f0e1fd93f7 Merge branch 'master' into map5 2017-01-11 07:17:37 -08:00
Zhengbo Li
0c7e4bbb45 Update the message 2017-01-10 17:55:52 -08:00
Zhengbo Li
54f1230760 Change the remove unused local code fix message 2017-01-10 17:52:47 -08:00
Andy Hanson
2ae5806210 Include "export" modifier on function assigned to an export (export const x = () => 0;). 2017-01-10 13:04:32 -08:00
Andy Hanson
463626d56f Move helper to services/utilities 2017-01-09 13:51:25 -08:00
Andy Hanson
2124fcf588 goToDefinition: Use the name of a declaration (if possible) when creating DefinitionInfo. 2017-01-09 11:05:53 -08:00
Andy Hanson
23fa422b59 String literal completions: Use call signature only if we are *immediately* in a call expression 2017-01-09 07:52:52 -08:00
Andy Hanson
8c5afd7f54 Merge branch 'master' into map5 2017-01-06 13:03:34 -08:00
Zhengbo Li
b19a949ce4 Support path that specified index 2017-01-04 13:35:42 -08:00
Mohamed Hegazy
524fa64c8d Merge pull request #11547 from Microsoft/interfaceFixes
Codefix for implementing interfaces
2016-12-30 14:28:55 -08:00
Mohamed Hegazy
6418c2f9bb Merge pull request #12543 from wonderful-panda/fix-12536
tsserver: get candidates from <K extends keyof Foo> (fix #12536)
2016-12-30 13:23:07 -08:00
Andy Hanson
a67771265d Merge branch 'master' into map5 2016-12-29 09:11:19 -08:00
Zhengbo Li
69e0677ea1 Support quick fixes for UMD global (#12545)
* Support quick fixes for UMD global

* refactor
2016-12-28 15:04:15 -08:00
Andy Hanson
2e6f369e8f Replace SparseArray<T> with T[] 2016-12-28 09:41:45 -08:00
Andy Hanson
145f0b2f18 Add createMultiMap to replace multiMapAdd and multiMapRemove 2016-12-28 09:33:43 -08:00
Andy Hanson
932eaa3f90 Rename and consolidate map iteration helpers 2016-12-28 09:16:38 -08:00
Andy Hanson
39c19a74ea Inline keysOfMap and valuesOfMap. 2016-12-28 09:05:52 -08:00