Andy
df57cdc2d6
Have CompletionEntryDetails source use a relative path ( #19917 ) ( #20022 )
...
* Have CompletionEntryDetails source use a relative path
* Use getCanonicalFileName from services Instead of creating a new one
2017-11-15 07:06:13 -08:00
Benjamin Lichtman
adfd5d3488
Porting #19249 and #19968 to release-2.6 ( #20002 )
...
* Add support for JSX fragment syntax
* Update tests
* Add baselines
* Update API baselines
* Respond to CR
* Respond to CR
* Respond to CR
* Remove unnecessary type annotation
* Error when using fragment with jsxFactory
* Added test for preventing fragment with jsxFactory
* Extract JSXChildren checking
* Add test
* Update baseline
2017-11-14 10:09:52 -08:00
Sheetal Nandi
82f7bcb74e
Merge pull request #19931 from Microsoft/constEnumWithWatch
...
[release-2.6] Ensure that enum member value is computed before using it
2017-11-10 16:54:09 -08:00
Sheetal Nandi
a2c1385f2e
Ensure that enum member value is computed before using it
...
Fixes #19898
2017-11-10 14:59:07 -08:00
Andy
92ade591df
For import completion of default import, convert module name to identifier ( #19875 ) ( #19883 )
...
* For import completion of default import, convert module name to identifier
* Suggestions from code review
2017-11-09 13:55:24 -08:00
Andy
c56a8224e5
Allow applyCodeActionCommand to take an array ( #19870 ) ( #19884 )
...
* Allow applyCodeActionCommand to take an array
* Use this.host.newLine
2017-11-09 13:55:13 -08:00
Sheetal Nandi
047854d27d
Merge pull request #19817 from Microsoft/directoryRename
...
[release-2.6] Handle the watch when folders are added/removed/renamed in wild card folder
2017-11-07 13:08:28 -08:00
Sheetal Nandi
012dedcfa3
Handle the folder create/delete in the configured project
2017-11-07 11:15:16 -08:00
Sheetal Nandi
4854d98f14
Add test case when inside wild card watched directory folder is renamed
2017-11-07 11:15:00 -08:00
Andy
618efc0b1f
Add hyphen in completionEntryDetails-full ( #19808 ) ( #19814 )
2017-11-07 10:17:44 -08:00
Andy
45594d11db
Fix assertion -- an import may come from a require() call ( #19667 ) ( #19810 )
...
* Fix assertion -- an import may come from a require() call
* Add test for `import("./a")`
2017-11-07 09:17:55 -08:00
Sheetal Nandi
aaeb9b0c61
Merge pull request #19779 from Microsoft/fileNotOnDisk
...
[release-2.6] Handles script infos that dont exist on the disk and are opened with non-rooted disk path
2017-11-06 15:25:44 -08:00
Sheetal Nandi
6baf1680af
Add testcase for non existent file without absolute path when opened with/without projectRoot
2017-11-06 12:27:11 -08:00
Sheetal Nandi
2cb14e5e8e
Handle the script infos that are opened with non rooted disk path
...
Fixes #19588
2017-11-06 12:26:36 -08:00
Sheetal Nandi
11d46130ae
Test where script info path and program path differ because of current directory
2017-11-06 12:23:07 -08:00
Mohamed Hegazy
d61f9f1c14
Update LKG
2017-11-06 11:36:52 -08:00
Mohamed Hegazy
138accd1ac
Port generated lib files ( #19772 )
2017-11-06 10:31:38 -08:00
Andy
e2c6db2e20
For getCompletionsAtPosition, require a flag to provide completions with code actions ( #19687 ) ( #19731 )
...
* For getCompletionsAtPosition, require a flag to provide completions with code actions
* Change name
* Increase API version
* Update API baselines
* Add comment
* Update API baseline
2017-11-03 16:38:35 -07:00
Andy
c074c77348
Add CompletionDetailsFull request ( #19689 ) ( #19727 )
...
* Add CompletionDetailsFull request
* Update API baselines
* Make internal
2017-11-03 15:54:42 -07:00
Mohamed Hegazy
2da8014efa
Port master into release-2.6 11/2 ( #19699 )
...
* Port generated lib files (#19690 )
* Handle cases when npm install doesnt get triggered with the actual file added
Fixes #19597
* Add regression test for #19395
Thanks to @mjbvz for finding it and @sandersn for reducing it.
* Correct typo - pass correct argument
All of the other calls in extractSymbol are already correct.
* Assert that enclosing declaration is not synthesized
2017-11-02 17:43:47 -07:00
Andy
3ac5daa5d2
Support completion details for special JsDoc completions ( #19494 ) ( #19512 )
2017-11-02 13:53:10 -07:00
Mohamed Hegazy
4e41dd3230
Update version ( #19674 )
2017-11-02 11:03:31 -07:00
Mohamed Hegazy
477bdc78bb
Update LKG
v2.6.1
2017-10-30 20:17:26 -07:00
Andy
6bc04a9ab9
Use lowercased names for generated locale directories ( #19581 )
2017-10-30 19:20:17 -07:00
Andy
0f32f55b75
Make getCompletionEntryDetails and getCompletionEntrySymbol parameters non-optional ( #19507 ) ( #19592 )
...
* Make getCompletionEntryDetails and getCompletionEntrySymbol parameters non-optional
* Increment servicesVersion
* Update api baselines
2017-10-30 19:16:12 -07:00
Mohamed Hegazy
1359a93c30
Update LKG
2017-10-26 14:17:30 -07:00
Andy
a7e172bfa0
Support multiple completions with the same name but different source module ( #19455 ) ( #19496 )
...
* Support multiple completions with the same name but different source module
* Use optional parameters for source
* Simplify use of `uniques`
* Update test
* Fix `undefined` error
2017-10-26 14:03:03 -07:00
Sheetal Nandi
c35e90ef5e
Merge pull request #19484 from Microsoft/reloadScriptsWithoutProject
...
[release-2.6] On "reload" command, reload contents of file from disk irrespective of project presence and even if file already containing its own text
2017-10-25 16:48:57 -07:00
Sheetal Nandi
96c66a61b4
Add test case to verify reload works without open project
2017-10-25 15:48:25 -07:00
Sheetal Nandi
b16e6d43d1
Reload contents of file from disk irrespective of project presence and file already containing its own text
...
Fixes #19336
2017-10-25 15:48:21 -07:00
Mohamed Hegazy
6489a75461
Update LKG
2017-10-24 14:55:45 -07:00
Sheetal Nandi
1a1c672911
Merge pull request #19445 from Microsoft/foundWhileSearchingNodeModules
...
[release-2.6] Mark the files found during node_modules search correctly when reusing program structure completely
2017-10-24 11:51:52 -07:00
Sheetal Nandi
4e56347d58
Set the files found during node_modules search correctly when reusing existing program structure
...
This marks files reused correctly as from external library resulting in not using them for files to be emitted and computed for output structure
Fixes #19327
2017-10-24 10:40:33 -07:00
Sheetal Nandi
aaaa280df7
Add the test case that fails and reports error for files not in root directory in watch mode
...
Test case for #19327
2017-10-24 10:40:28 -07:00
Mohamed Hegazy
3134111fd1
Merge pull request #19434 from Microsoft/port-master-10-23
...
Port fixes from master to release-2.6 10/23
2017-10-24 10:01:50 -07:00
Mohamed Hegazy
a362bbf43a
Fix lint error
2017-10-24 09:23:19 -07:00
Andy
02cc07c7f8
For @types installing quickfix, only activate for implicit-any module ( #19394 ) ( #19429 )
2017-10-24 08:05:13 -07:00
Mohamed Hegazy
b9182d1dc3
Check for noImplicitAny + strict correctelly
2017-10-23 15:12:17 -07:00
Mohamed Hegazy
97eabde79d
Check for --strict along with --noImplicitAny for code fix
2017-10-23 15:07:46 -07:00
Mohamed Hegazy
809674d66e
Port generated lib files
2017-10-23 15:07:37 -07:00
Nathan Shively-Sanders
43fc3ce503
More tests for getParameterSymbolFromJSDoc
2017-10-19 19:38:21 -07:00
Nathan Shively-Sanders
2dcc6607bf
Consolidate jsdoc node getters
...
They are now used both in getJSDocCommentsAndTagsWorker and in
geParameterSymbolFromJSDoc.
2017-10-19 19:38:09 -07:00
Nathan Shively-Sanders
cae12cb144
Fix getParameterSymbolFromJSDoc
2017-10-19 19:37:55 -07:00
Nathan Shively-Sanders
0fedfc5c67
Test:jsdoc @param errors on vardecls/assignments
2017-10-19 19:37:37 -07:00
Mohamed Hegazy
4c1d076268
Update LKG
2017-10-19 16:06:03 -07:00
Mohamed Hegazy
46b866c126
Merge pull request #19359 from Microsoft/port-master-10-19-2
...
Port master into release-2.6 10/19
2017-10-19 16:04:43 -07:00
Mohamed Hegazy
0a6715757e
Merge branch 'master' into release-2.6
2017-10-19 15:44:14 -07:00
csigs
8730ace40c
LEGO: Merge pull request 19358
...
LEGO: Merge pull request 19358
2017-10-19 15:10:50 -07:00
csigs
fd3ededf09
LEGO: check in for master to temporary branch.
2017-10-19 22:10:33 +00:00
Andy
c1b4d59752
Fixup line and offset of rename location of refactor ( #19265 )
...
* Fixup line and offset of rename location of refactor
* Fixes
* Handle "\r" only documents
* Update api baselines
* Fix error if an edit comes *after* the rename location
* Add bounds check
* Simpler implementation: get new text, then calculate line starts the usual way
2017-10-19 14:31:23 -07:00