Andy
72be7156d2
Support completions for unique symbol exported from module ( #25537 )
2018-07-10 10:47:43 -07:00
Benjamin Lichtman
b5f5513e4a
Merge pull request #25329 from uniqueiniquity/jsxFolding
...
Add outlining spans for JSX elements
2018-07-09 12:36:23 -04:00
Daniel Rosenwasser
fe2baac33f
Merge pull request #25422 from Microsoft/actualSignatureHelpTriggers
...
Actual signature help trigger filtering
2018-07-08 22:09:35 -07:00
Wesley Wigham
831be5d078
Introduce truncation into node builder and symbol display part writer ( #24258 )
...
* Introduce truncation into node builder and symbol display part writer
* Change default maxa truncation length to 240
* Fancy truncation + higher hard limit
2018-07-06 14:58:46 -07:00
Andy
64555aa6a9
navigateTo: Collect results from all referenced projects. ( #25283 )
...
* navigateTo: Collect results from all referenced projects.
* Don't use project references, just source maps
* Move more code to session
* Test when implementation file is deleted
* Use tsserver tests instead of fourslash tests to ensure session is used
* Support find-all-references
* Restore fourslash tests
* Update emit baselines (added missing newline)
* Support rename
* @weswigham code review
* Don't open/close files
* Avoid growing `toDo` too eagerly
* @sheetalkamat code review
* Also get symlinked projects for originalLocation
* Update API (#24966 )
* More @sheetalkamat code review
* Remove unnecessary test
* Update API (#24966 )
2018-07-05 15:39:03 -07:00
Mohamed Hegazy
383319ded6
Merge pull request #25423 from Microsoft/defaultExportName
...
Handle getting name of default export that's an alias
2018-07-05 12:21:53 -07:00
Mohamed Hegazy
8911c19f4f
Merge pull request #25313 from github-john-doe/typo
...
Typo
2018-07-05 11:43:12 -07:00
Andy Hanson
b1e916cae6
Handle getting name of default export that's an alias
2018-07-05 09:03:22 -07:00
Andy
204b70d7af
Don't add completions from a discriminated union type when the discriminant doesn't match ( #24770 )
...
* Don't add completions from a discriminated union type when the discriminant doesn't match
* Move code to checker
* Update API (#24966 )
* Use isTypeIdenticalTo
2018-07-03 17:05:51 -07:00
Daniel Rosenwasser
a3b2237437
Added tests for syntactic context.
2018-07-03 17:05:10 -07:00
Daniel Rosenwasser
53a0f2374a
Remove 'name' property which was invalid.
2018-07-03 17:05:10 -07:00
Anders Hejlsberg
eb7ff43f95
Merge pull request #25408 from Microsoft/contextualTupleTypes
...
Infer tuple types for contextually typed rest parameters
2018-07-03 14:02:48 -10:00
Andy
064ecd449e
Support code-fix-all for importFixes ( #25137 )
...
* Support code-fix-all for importFixes
* Change description
* Update API (#25283 )
2018-07-03 15:19:15 -07:00
Andy
e1a7f8497e
Restore NewFileContent type ( #25406 )
2018-07-03 13:36:45 -07:00
Daniel Rosenwasser
3e38693425
Amend test for comments, other string types.
2018-07-03 13:01:55 -07:00
Sheetal Nandi
95ad71864b
Fix the completion when base type is unknown type from unknown namespace
...
Fixes #25387
2018-07-03 12:35:25 -07:00
Daniel Rosenwasser
dc6653eb74
Renamed test.
2018-07-03 12:19:39 -07:00
Andy
304d45d833
Canonicalize path before calling startsWith ( #25364 )
...
* Canonicalize path before calling `startsWith`
* More specific type for sourceDirectory, and add fourslash test
* Update API (#24966 )
2018-07-03 11:23:19 -07:00
Daniel Rosenwasser
e13fd0c568
Merge pull request #24915 from Microsoft/triggerSignatureHelpIArdlyKnowSignatureHelp
...
Trigger characters in signature help
2018-07-02 23:36:57 -07:00
Anders Hejlsberg
17e959407c
Fix fourslash tests
2018-07-02 18:14:32 -10:00
Andy
efc1b7df08
More thoroughly test navigateTo ( #25239 )
...
* More thoroughly test navigateTo
* Fix #25233 and #25237
* Update API (#24966 )
2018-07-02 19:25:27 -07:00
Andy
5c57e14000
goToDefinition: Don't go to jsx constructor signature ( #25382 )
2018-07-02 17:18:07 -07:00
Andy Hanson
271bbb027c
Merge branch 'master' into fixAddMissingMember_all_dedup
2018-07-02 16:06:57 -07:00
Daniel Rosenwasser
159b3dcec0
Accepted baselines and updated fourslash test.
2018-07-02 16:05:07 -07:00
Daniel Rosenwasser
9651c4231e
Account for trigger reasons, as implemented by Roslyn.
2018-07-02 16:04:48 -07:00
Daniel Rosenwasser
c046958752
Merge remote-tracking branch 'origin/master' into triggerSignatureHelpIArdlyKnowSignatureHelp
2018-07-02 15:36:41 -07:00
Mohamed Hegazy
956f9d0be2
Merge pull request #25335 from Microsoft/codeFixAddMissingEnumMember_all
...
Combine code-fix-all for missing class member and missing enum member
2018-07-02 15:14:19 -07:00
Andy Hanson
f3bc891ae9
fixAddMissingMember: Improve deduplication in code-fix-all
2018-07-02 11:26:50 -07:00
Andy
7dc66e916a
moduleSpecifiers: specifier from "rootDirs" should be treated as relative ( #25369 )
2018-07-02 11:14:49 -07:00
Andy
ded446573a
ChangeTracker: Combine deleteDeclaration, deleteNode, and deleteNodeInList ( #25276 )
...
* ChangeTracker: Combine deleteDeclaration, deleteNode, and deleteNodeInList
* Change name
* Update API (#24966 )
2018-06-29 19:53:32 -07:00
Andy Hanson
2fa27ffdf7
Combine code-fix-all for missing class member and missing enum member
2018-06-29 19:39:19 -07:00
Benjamin Lichtman
2c14bf1d59
Add test
2018-06-29 17:12:06 -07:00
Benjamin Lichtman
f0e5056063
Add test
2018-06-29 11:34:58 -07:00
Mohamed Hegazy
c27dace3df
Merge pull request #25182 from Kingwl/fix-missing-enum-member
...
add quick fix for add missing enum member
2018-06-29 10:19:23 -07:00
John Doe
a40b357646
accross -> across
2018-06-28 18:50:55 -07:00
Wesley Wigham
297f12e92c
Add bailout case to sourcemap searching code ( #25212 )
...
* Add bailout case to sourcemap searching code
* Also skip sourcemappy comments like sourceURL
2018-06-28 11:40:31 -07:00
王文璐
d8cdd7552e
do not handle enum type member
2018-06-28 09:36:26 +08:00
Andy
c35cb86192
When renaming at a tsx opening/closing tag, just rename the current element ( #25273 )
2018-06-27 11:01:38 -07:00
Andy
d957b1c8c2
fixUnusedIdentifier: Remove arguments corresponding to unused parameters ( #25011 )
...
* fixUnusedIdentifier: Remove arguments corresponding to unused parameters
* Update API (#24966 )
* Fix handling of deletions: Make a list of things to delete and don't delete until the end
* Remove dummy test
* Bug fixes
* Update API (#24966 )
* Move code to textChanges
2018-06-27 09:26:47 -07:00
王文璐
d6f5fc6518
add Initializer if enum value is another enum
2018-06-27 21:03:50 +08:00
Andy
c8c547a706
Only add completion for a symbol if it is accessible ( #25096 )
2018-06-26 18:03:07 -07:00
Andy
ab9e913af3
getEditsForFileRename: Test both before and after the rename ( #25074 )
2018-06-26 16:55:51 -07:00
王文璐
a62a54df57
Merge branch 'master' into fix-missing-enum-member
2018-06-26 10:30:09 +08:00
王文璐
d5268c81e7
add quick fix for add missing enum member
2018-06-26 10:17:22 +08:00
Andy
0b5b7ef547
Fix removal of default import ( #25200 )
2018-06-25 12:41:32 -07:00
Andy
6cd27a3217
Support doc comment template at function expression ( #25050 )
2018-06-25 11:40:45 -07:00
Andy
8923a01481
Fix test failure ( #25199 )
2018-06-25 11:34:04 -07:00
Andy
9aa60f27eb
goToDefinition: Don't add duplicate definitions for PropertyAssignment and ArrowFunction at m: () => {} ( #24995 )
...
* goToDefinition: Don't add duplicate definitions for PropertyAssignment and ArrowFunction at `m: () => {}`
* Just use !isCallLikeExpression
2018-06-25 11:33:47 -07:00
Andy
b3a6428186
Fix completions trigger character on JSX opening tag ( #25167 )
2018-06-25 11:10:38 -07:00
Andy
806a661be3
Add refactor to convert named to default export and back ( #24878 )
...
* Add refactor to convert named to default export and back
* Support ambient module
* Handle declaration kinds that can't be default-exported
* Update API (#24966 )
2018-06-25 10:34:24 -07:00