Commit Graph

240 Commits

Author SHA1 Message Date
Matt Bierner
5a7d0a1ed2 Adopt resolveCodeAction for JS/TS refactorings 2020-09-18 18:17:31 -07:00
Johannes Rieken
f8ad845310 Allow executeCodeActionProvider API command to set the number of items to resolve, unit test to check that and the whole resolve machinery 2020-09-16 13:52:26 +02:00
Johannes Rieken
136cc276d1 proposed API for CodeActionProvider#resolveCodeAction and all the wiring 2020-09-16 12:34:20 +02:00
Johannes Rieken
44b1737a9c chore - when target might be undefined use target?.dispose() over dispose(target) 2020-09-08 17:34:53 +02:00
Benjamin Pasero
f922e8b757 debt - remove lib.array-ext.d.ts and support Array.includes (fix #102566) (#105404) 2020-08-26 13:07:30 +02:00
Martin Aeschlimann
fae07df7c3 onTypeRename: wordPattern (for #104823) 2020-08-21 13:54:43 +02:00
Wenlu Wang
9d6054c99d Add ts/js deprecated support (#97742)
* Add ts/js deprecated support

* Support callhierarchy

* avoid tags

* fix lint

* fix lint

* Avoid changes

* Avoid assign

* Avoid changes

* Avoid styles

* Add temp deps for build

* update version

* add config item

* fix type

* Use expiremental namepsace

* fix types
2020-06-22 14:01:37 -07:00
Johannes Rieken
9f83b385d4 remove telemetry, update jsdoc, https://github.com/microsoft/vscode/issues/96779 2020-05-27 12:16:15 +02:00
Alex Dima
468706e8e2 Fixes #96664: Accept number[] besides Uint32Array for semantic tokens 2020-05-04 12:02:33 +02:00
Johannes Rieken
ce850e02d5 debt - don't send data that's not needed, make resolve a function not a property 2020-05-04 09:47:19 +02:00
Johannes Rieken
425616820c validate on client (using faster ways), don't send repeated data, #95325 2020-05-04 09:47:19 +02:00
Johannes Rieken
01c243f25f fix #95715 2020-04-21 11:47:13 +02:00
Johannes Rieken
8f1b2e5657 use async-await to prevent new callback-functions, https://github.com/microsoft/vscode/issues/95325 2020-04-17 09:06:34 +02:00
Johannes Rieken
ab24124841 use map over switch, "more strict" signature, don't send default type, https://github.com/microsoft/vscode/issues/95325 2020-04-16 16:14:12 +02:00
Johannes Rieken
17cdb4783e suggest ignores replace or insert range when one of them matches the corresponding default 2020-04-14 12:48:01 +02:00
Alex Dima
7320a04ba0 Add tests to encode/decode SemanticTokensDto 2020-03-24 10:08:14 +01:00
Pine Wu
c833780356 Clean up API and add stopPattern 2020-03-10 12:38:03 -07:00
Alexandru Dima
84c838d1e3 Scaffold on type rename 2020-03-10 12:33:16 -07:00
Alex Dima
c2a604a18c Add DocumentSemanticTokensProvider.onDidChangeSemanticTokens 2020-03-02 13:45:25 +01:00
Johannes Rieken
8b95561098 show names of formatting edits and code actions providers when they block save. also add links that links that open the settings editor for each feature, #90851 2020-02-21 15:35:30 +01:00
Alex Dima
7169e432d8 Fixes #42649 2020-02-17 22:19:03 +01:00
Andre Weinand
e588a9cd1a Introduce evaluatable expression API; fixes #89084 2020-02-14 12:53:56 +01:00
Matt Bierner
fb622a8b83 Move code action documentation contribution point to come from metadata
For #86788
2020-02-11 11:36:23 -08:00
Johannes Rieken
3b2fde6477 more strictFunctions #81574 2020-02-11 09:35:48 +01:00
Johannes Rieken
5d85d2eeef suggest - don't send default ranges for each item 2020-01-23 15:29:50 +01:00
Johannes Rieken
b6c765ed7f change telemetry event name, #87187 2020-01-23 10:40:11 +01:00
Pine Wu
c1a0defa5f Merge remote-tracking branch 'origin/master' into pine/alwaysShowInlineDetails 2020-01-21 09:13:22 +01:00
Matt Bierner
ff9fd2fa1a Custom Editors: pass original edit objects back to extensions
For #88719

With this change, instead of passing custom editor edit json back and forth with the extension host, we keep the original edit objects on the extension host. This means that we can pass extensions back the exact same edit object they first hand to us. It also means that edits no longer need to be json serializable.
2020-01-19 20:14:25 -08:00
Pine Wu
591a43e8de label2 2020-01-17 17:13:45 +01:00
Pine Wu
86218b280c Merge remote-tracking branch 'origin/master' into pine/alwaysShowInlineDetails 2020-01-17 15:43:53 +01:00
Alex Dima
9e1d730cf2 SemanticTokens - implement feedback received in API call:
- extract a separate DocumentRangeSemanticTokensProvider that deals with a document range
- extract a separate provideDocumentSemanticTokensEdits that deals with updating via SemanticTokensEdits a previous result
2020-01-16 18:02:02 +01:00
Johannes Rieken
1ba18afb07 move API proposal to stable API, #10266 2020-01-16 17:18:29 +01:00
Johannes Rieken
a8f2db516b slightly more compact dto, no need to send false 2020-01-16 13:02:26 +01:00
Pine Wu
31ec4fe434 CompletionItemLabel#label -> name 2020-01-15 10:37:33 +01:00
Matt Bierner
3883ebd061 Add common service for logging deprecated api usage (#88585)
* Add common service for logging deprecated api usage

For #88391

Adds a new `ExtHostApiDeprecationService`. This service logs a warning and telemetry when a deprecated API is used.

Updates some of the more simple deprecated apis to use this new service

* Note that extensionId cannot be undefined

* Fix event name
2020-01-14 15:27:42 -08:00
Pine Wu
79a01a0f27 Revert isDetailsResolved and implement CompletionItemLabel 2020-01-14 17:20:41 +01:00
Johannes Rieken
e69cc0760c update telemetry message with index of changed field #87187 2020-01-13 12:26:42 +01:00
Matt Bierner
1b70625f8c Use import type when importing vscode under src
When the core references `vscode`, we only want to import the types and never generate a real import (which will fail to load). Use `import type` to better enforce this
2020-01-10 14:25:21 -08:00
Johannes Rieken
c40b6072bc propose CompletionList#isDetailsResolved, #39441 2020-01-09 15:50:34 +01:00
Johannes Rieken
e25b9c9f0b allow prepareCallHierarchy to also return an array 2019-12-16 16:36:06 +01:00
Matt Bierner
a4177f50c4 Use object for refactor.disabled
For #85160

Using an object is more explict with property names and will let us introduce additional properties in the future if needed
2019-12-11 20:15:30 -08:00
Johannes Rieken
34fb5e910e print warning and telemetry message when resolveCompletionItem is changing the insert behaviour, #86122 2019-12-09 12:51:42 +01:00
Johannes Rieken
64b177b2e0 fix #86300 2019-12-05 11:22:46 +01:00
Alex Dima
d6dae16f40 Remove areas from the semantic tokens API 2019-12-02 10:41:32 +01:00
Matt Bierner
4cc8710a38 Add CodeAction.disabled
For #85160
2019-11-20 17:10:00 -08:00
Alexandru Dima
47dfc2debf Avoid having very small delta areas 2019-11-18 11:34:13 +01:00
Alexandru Dima
22ff01e6ff Fix issue when areas with 0 tokens would be used for delta encoding 2019-11-18 09:41:10 +01:00
Alex Dima
3c2ac03c19 Better logging 2019-11-14 23:25:08 +01:00
Alex Dima
4dbb961407 Fix issue with appended deltas having the wrong order & add unit tests to semantic areas delta computation 2019-11-14 14:03:52 +01:00
Alex Dima
15beb36ccf Merge remote-tracking branch 'origin/master' into alex/semantic-exploration 2019-11-14 09:16:10 +01:00