3391 Commits

Author SHA1 Message Date
Ryan Cavanaugh
ec00bb9b72 Merge pull request #16697 from RyanCavanaugh/preserveMethodComments
Preserve method comments in JS->ES6 conversion.
2017-06-29 15:40:16 -07:00
Andrew Casey
ac72803bb2 Merge pull request #16684 from amcasey/Vsts434619
Watch for the creation of missing files
2017-06-29 13:41:18 -07:00
Andy
179a3e10b5 Handle depth in all readDirectory implementations (#16646) 2017-06-29 11:04:33 -07:00
Andrew Casey
587309d029 Update error case check
`getTouchingWord` indicates failure by returning the sourceFile node,
rather than `undefined`.
2017-06-29 10:39:30 -07:00
t_
51fb7e9a81 Add alwaysStrict option (#16562)
* Add alwaysStrict option

* Enable alwaysStrict

* Fix for strict mode

* keep whitespace
2017-06-28 19:44:15 -07:00
Andy
c4319e3b94 Clean up uses of ensureScriptKind (#16714)
* Clean up uses of ensureScriptKind

* Remove unneeded parentheses
2017-06-28 14:29:16 -07:00
Andy
2ccfe502f7 Fix scope of @typedef references (#16718)
* Fix scope of @typedef references

* Remove unused variables
2017-06-28 13:30:23 -07:00
Andy
9013665e22 Replace FileMap with Map where there is no keyMapper (#16724)
* Replace FileMap with Map where there is no keyMapper

* Remove `toKey` and use `keyMapper` directly
2017-06-28 13:15:34 -07:00
Andy
9260a399a3 Remove duplicate switch cases (#16721) 2017-06-28 12:53:43 -07:00
Andy
42e08f5578 findAllRefs: Find string references inside of template strings (#16723) 2017-06-28 12:53:12 -07:00
Andy
18357543c6 Provide better services for incomplete generic calls (#16535)
* Provide better services for incomplete generic calls

* Use clearer name

* Remove `inferredAnyDefaultTypeArgument` and `getBestGuessSignature`; have `resolveSignature` always get the best signature if !produceDiagnostics

* Update names and comments
2017-06-27 09:14:23 -07:00
Ryan Cavanaugh
b52747e12c Add property comments as well 2017-06-26 10:54:18 -07:00
Andy
fd22a88abc Code cleanup in jsTyping.ts (#16632) 2017-06-23 10:03:01 -07:00
Ryan Cavanaugh
04d750f9f8 Preserve method comments in JS->ES6 conversion. Fixes #16622 2017-06-22 11:45:34 -07:00
Andrew Casey
aac7fb7cef Merge pull request #16664 from amcasey/TokenWorker
Short-circuit getTokenAtPositionWorker
2017-06-22 10:44:47 -07:00
Andrew Casey
2690d792c1 Short-circuit getTokenAtPositionWorker
The children of a given node are sorted by start position so, if one of
them starts after a given position, all subsequent children all start
after that position.
2017-06-20 15:32:32 -07:00
Sheetal Nandi
31653de3c3 Merge pull request #16566 from Microsoft/keywordFilters
Fix the completion for parameters
2017-06-15 15:44:33 -07:00
Sheetal Nandi
4ce8af3652 Show public/private/protected/readonly when looking for constructor parameter and otherwise parameter declaration or property declaraiton should result in no completion
Fixes #15937
2017-06-15 11:16:35 -07:00
Sheetal Nandi
09f0b3471a Merge branch 'master' into ownJsonParsing 2017-06-15 09:59:37 -07:00
Sheetal Nandi
187febd10f Merge pull request #16494 from Microsoft/dontCreateScriptInfosWithFileExistsAndReadFile
Fixes the memory leak because of project and its corresponding script info even after project is removed
2017-06-14 15:17:25 -07:00
Mohamed Hegazy
3532875af7 Merge branch 'master' into completionWithMeaning 2017-06-13 17:41:24 -07:00
Arthur Ozga
9cd04e06fd Merge pull request #16309 from aozgaa/codeFixPrefixUnused2
Code fix prefix unused2
2017-06-13 11:16:33 -07:00
Sheetal Nandi
1f167786ad Merge branch 'master' into completionWithMeaning 2017-06-13 11:16:32 -07:00
Arthur Ozga
2a05bb1441 Merge pull request #16433 from Microsoft/suppressBraceCompletionOfQuotesinComments
Suppress brace completion of Quotes in Comments
2017-06-13 11:07:52 -07:00
Yui
23f618b6bc Merge pull request #16406 from Microsoft/master-fix16402
[Master] Language Service on Dynamic import
2017-06-13 10:22:45 -07:00
Mohamed Hegazy
1d0087dd2d Update version 2017-06-12 18:28:10 -07:00
Sheetal Nandi
1bf1209f7e Cleanup script infos that are not part of any project when the project is closed or inferred projects are refreshed
Also dispose some pointers so that the closures get disposed with project and script infos
2017-06-12 16:52:36 -07:00
Arthur Ozga
70bace78a0 respond to comments 2017-06-12 15:36:34 -07:00
Andy
6a8a6c34b4 getPossibleSymbolReferencePositions: Always use full start (#16420) 2017-06-12 15:24:31 -07:00
Nathan Shively-Sanders
93bdd3cb39 Fix reference to isTypeParameterDeclaration in services
Fixes build break
2017-06-12 15:07:04 -07:00
Andy
7fb821e45b Support completions in destructuring in for-of (#16454) 2017-06-12 12:12:51 -07:00
Andy
2748b3b334 Add isForInOrOfStatement utility (#16455) 2017-06-12 11:08:41 -07:00
Andy
44d5c44cb5 Document highlights for a JSX tag should just be the matching tag, not all references (#16453) 2017-06-12 11:08:21 -07:00
Arthur Ozga
798db1e884 Suppress brace completion of Quotes in Comments 2017-06-09 21:10:01 -07:00
Andy
09321b3834 Convert Extension to a string enum (#16425) 2017-06-09 19:32:44 -07:00
Sheetal Nandi
2ec92b9c02 Dont create script snapshots for files that arent source files 2017-06-09 18:30:17 -07:00
Andy
13b7d17da7 Don't bind JSDoc type parameter in a TS file (#16413)
* Don't bind JSDoc type parameter in a TS file

* Fix tests

* Remove unnecessary non-null assertions
2017-06-09 14:52:01 -07:00
Kanchalai Tanglertsampan
2e55b6ae16 Implement LS on string-literal of dynamic import 2017-06-09 10:01:17 -07:00
Arthur Ozga
b9885eed5a Only add underscore in
* for-in
* for-of
* parameters
2017-06-08 18:43:02 -07:00
Andy
0d36d0e39f Support completions for qualified names in JSDoc (#16380)
* Support completions for qualified names in JSDoc

* Fix typo
2017-06-08 17:21:36 -07:00
Kanchalai Tanglertsampan
7d2d35d0bf Include dynamic import during pre-processing needed by VS 2017-06-08 14:31:44 -07:00
Andy
43e3d60f09 Fix lint failure (#16338)
* Fix lint failure

* Use curly braces
2017-06-07 15:50:26 -07:00
Andy
abb9681248 Support completions for JSDoc @param tag names (#16299)
* Support completions for JSDoc @param tag names

* Undo change to finishNode

* Don't include trailing whitespace in @param range; instead, specialize getJsDocTagAtPosition
2017-06-07 12:28:52 -07:00
TravCav
b57830f7f9 enforcing curly braces (#16315) 2017-06-07 11:58:25 -07:00
Andy
68122ea4cc Support find-all-references for export = of class expression (#16327)
* Support find-all-references for `export =` of class expression

* Add comments
2017-06-07 11:16:12 -07:00
Ryan Cavanaugh
6007eb7dfb Merge pull request #16307 from RyanCavanaugh/refactor_refactor
Refactor refactor
2017-06-06 22:28:52 -07:00
Chuck Jazdzewski
ce1d1c81ef Add support for external file references in source maps 2017-06-06 17:45:08 -07:00
Ryan Cavanaugh
f739f68231 Tidy up 2017-06-06 16:08:24 -07:00
Arthur Ozga
ce5f7072a1 prefix identifiers 2017-06-06 15:23:10 -07:00
Ryan Cavanaugh
1f3ef7df7a Refactor refactor 2017-06-06 14:58:18 -07:00