4410 Commits

Author SHA1 Message Date
Ryan Cavanaugh
69f73eba16 Return mapped locations in alternate fields 2018-05-11 17:22:10 -07:00
Andrew Casey
020d6c7ba3
Merge pull request #24048 from amcasey/GH23366
Ignore case when sorting imports
2018-05-10 19:11:44 -07:00
Andrew Casey
543c5daf9c Ignore case when sorting imports 2018-05-10 18:10:05 -07:00
Andrew Casey
7281bb7510 Stop deleting empty named import lists
Fixes #23892
2018-05-10 18:01:55 -07:00
Andy
2be6aaf813
Support '/' as a trigger character in path completions (#24042) 2018-05-10 16:50:26 -07:00
Andy
6ae4d3a516
Add code fix to remove unreachable code (#24028)
* Add code fix to remove unreachable code

* Code review

* Preserve more kinds of statements
2018-05-10 16:44:48 -07:00
Andy
e33e229a52
Extract 'moduleSpecifiers' namespace out of importFixes (#24010) 2018-05-10 16:30:24 -07:00
Andy
fd17f77cc9
Improvements to find-all-references for import types (#23998)
* Improvements to find-all-references for import types

* Add JS test
2018-05-10 15:31:06 -07:00
Andy
61a2949051
Don't count '/' in division as a completions trigger (#24038) 2018-05-10 14:59:33 -07:00
Andy
7271ec1240
Add 'move to new file' refactor (#23726)
* Add 'move to new file' refactor

* Code review, and support commonjs

* Compute movedSymbols completely before using, and support `export import`

* Fix assertion error: sort empty change before non-empty change

* Remove extra newline

* Add allowTextChangesInNewFiles preference

* Add the new file to 'files' in tsconfig

* Avoid parameter initializer

* Update API baselines

* Use path relative to tsconfig.json

* Code review

* Fix error where node in tsconfig file was missing a source file
2018-05-10 11:17:04 -07:00
Mohamed Hegazy
1b796ed04d
Merge pull request #23954 from Kingwl/readonly-getter-support
add support for readonly modifier
2018-05-10 11:10:03 -07:00
kingwl
44d10dcf59 fix incorrect find reference pos 2018-05-11 01:49:40 +08:00
王文璐
340e8cd56a find reference at begin of constructor 2018-05-10 11:20:07 +08:00
Andy
da413d6fef
Remove unnecessary filtering of tsx completions (#24004) 2018-05-09 15:18:45 -07:00
Mohamed Hegazy
6f9dc2f976
Merge pull request #23923 from Zzzen/master
Document highlights on async/await keywords should highlight other oc…
2018-05-09 09:51:04 -07:00
Andy
7fb7eecf2c
Add telemetry for open JS files (#23833)
* Add telemetry for open JS files

* Send event every time

* Keep stats even for closed files

* Remove tsCheckCountForOpenFilesTelemetry

* Use 'info.path'

* Update API
2018-05-09 07:51:46 -07:00
Zen
91a15dc609 improve performance 2018-05-09 22:42:44 +08:00
王文璐
8414a962ba update all reference in constructor 2018-05-09 18:41:46 +08:00
Alex Ryan
4cc345e4e0
Fix comment typos in utilities.ts 2018-05-08 14:58:18 -07:00
Andy
5725428f2d
fixUnusedIdentifier: Handle destructure with all bindings unused (#23805)
* fixUnusedIdentifier: Handle destructure with all bindings unused

* Add parameters test

* Add test for 'for' loop
2018-05-08 13:33:55 -07:00
Andy
ccfd3bf603
Handle BindingElement in fixUnusedIdentifier (#23819)
* Handle BindingElement in fixUnusedIdentifier

* Add array destructure tests
2018-05-08 11:23:01 -07:00
Andy
ddf20ecd6d
Support '.' as a trigger character (#23890)
* Support '.' as a trigger character

* Add a CompletionsTriggerCharacter type

* Add more trigger characters

* Add another type CompletionsTriggerCharacter

* Update API baselines
2018-05-08 09:52:46 -07:00
Ryan Cavanaugh
f35a20e29e
Merge pull request #23944 from RyanCavanaugh/projRefs
Project References Core Support
2018-05-09 04:45:38 +12:00
王文璐
88bf9277ff add support for readonly modifier 2018-05-08 12:26:34 +08:00
Andy
123ae530a7
convertToEs6Module: Replace 'module.exports =' with 'export default' without replacing nodes (#23948) 2018-05-07 15:45:43 -07:00
Andy
a50001c9da
Treat 'import("")' as a module reference (#23949) 2018-05-07 15:42:36 -07:00
Ryan Cavanaugh
ffa0ccba2a Project References Core support 2018-05-07 15:12:50 -07:00
Sheetal Nandi
8fc4242097
Merge pull request #23915 from Microsoft/jsonCompletions
Suggest json files in completion when resolveJsonModule is set and module resolution is node
2018-05-07 12:53:09 -07:00
Andy
004a558125
Avoid unnecessary newline when inserting node at start of class (#23935) 2018-05-07 12:40:33 -07:00
Andy
2604bb4dd3
Add 'string' ScriptElementKind (#23821) 2018-05-07 12:39:00 -07:00
Sheetal Nandi
92296b34dd Rename 2018-05-07 12:14:53 -07:00
Mohamed Hegazy
e39e6fc780
Merge pull request #23894 from Microsoft/importOutlining
Add outlining spans for Import declarations
2018-05-07 12:08:11 -07:00
Andy
a05feed839
generateGetAccessorAndSetAccessor: Preserve a parameter property declaration (#23318) 2018-05-07 11:33:00 -07:00
Andy
7fa5f70b9a
Remove verify.referencesAre, verify.referencesOf, verify.rangesReferenceEachOther (#23900) 2018-05-07 10:08:38 -07:00
Zzzen
34323b69fb Document highlights on async/await keywords should highlight other occurrences in the same body fix #22944 2018-05-06 12:27:10 +08:00
Mohamed Hegazy
64d6b24c87 Code review comments 2018-05-05 13:22:48 -07:00
Mohamed Hegazy
3bc3f2d404 Add comments to kinds 2018-05-05 12:38:59 -07:00
Mohamed Hegazy
12ed49bada Revert adding named import binding list outlining spans 2018-05-05 12:04:12 -07:00
Mohamed Hegazy
8072dae16b Change kind name to imports 2018-05-05 12:02:40 -07:00
Sheetal Nandi
e8cd6b1111 Suggest json files in completion when resolveJsonModule is set and module resolution is node
Fixes #23899
2018-05-04 17:10:48 -07:00
Mohamed Hegazy
ea96638701 Fix indentation 2018-05-04 15:59:55 -07:00
Mohamed Hegazy
82381280cf Merge branch 'master' into importOutlining 2018-05-04 15:58:56 -07:00
Andy
df9e2621d2
Fix find-all-refs for import("mod").Foo where Foo is a typedef (#23881)
* Fix find-all-refs for import("mod").Foo where Foo is a typedef

* Add Debug.assertNever message

* Ensure SemanticMeaning is matched
2018-05-04 13:32:40 -07:00
Sheetal Nandi
5133c70e7e
Merge pull request #22167 from Microsoft/requireJson
Resolve the modue names with "modulename.json" to json files when doing node module resolution
2018-05-04 12:42:10 -07:00
Mohamed Hegazy
2d725feb51 Add outlining span for named bindings in import declarations 2018-05-04 11:26:03 -07:00
Mohamed Hegazy
de13cc4692 Merge remote-tracking branch 'origin/master' into importOutlining 2018-05-04 10:40:58 -07:00
Mohamed Hegazy
f1713c92d3 Add outlining spans for import declarations 2018-05-04 10:39:47 -07:00
Mohamed Hegazy
1a320fcd5e
Merge pull request #23883 from Microsoft/outliningSpanKind
Fix #22419: Add `kind` field to `OutliningSpan`
2018-05-04 09:16:01 -07:00
Mohamed Hegazy
e52efb04f3 Fix #22419: Add kind field to OutliningSpan 2018-05-03 16:28:55 -07:00
Sheetal Nandi
15f9ea3d14 Merge branch 'master' into requireJson 2018-05-03 15:35:54 -07:00