Commit Graph

788 Commits

Author SHA1 Message Date
Konstantin Solomatov
28bf0b1f56 Use leading flag set to true in debouncing events from extension trees (#88051)
* Use leading flag set to true in debouncing events from extension trees

* - remove the flag for debounce in extHostTreeView
- refactor test extHostTreeView's test to test prod behavior
- fix a small bug in debounce

* Minor cleanup
2020-01-24 12:02:19 +01:00
Pine Wu
38549a606c Allow link on Diagnostic#code for #11847
Squashed commit of the following:

commit 76689c23011bf960f5ba3e199659e8180455466d
Author: Pine Wu <octref@gmail.com>
Date:   Fri Jan 24 10:19:44 2020 +0100

    Clarify API

commit 88d772d62da5d912b54285aa52dc6d6a108ca587
Author: Pine Wu <octref@gmail.com>
Date:   Fri Jan 24 10:17:28 2020 +0100

    Tooltip

commit 11ef8012ae3e560d6db6fff26ba3c258e7eae4a6
Author: Pine Wu <octref@gmail.com>
Date:   Thu Jan 23 16:50:28 2020 +0100

    Hover to show link color and use cmd/alt click

commit 38655a70b3eed56b99e8018fb5c79bd41b6c4f56
Author: Pine Wu <octref@gmail.com>
Date:   Thu Jan 23 15:21:13 2020 +0100

    Add hack to always render underline a bit below

commit 959f6b13bf81885cc370f6099e5123142089599e
Author: Pine Wu <octref@gmail.com>
Date:   Thu Jan 23 11:32:37 2020 +0100

    Fix compile error

commit b5c50e872935e74503451bd2801227f82b8410f4
Author: Pine Wu <octref@gmail.com>
Date:   Thu Jan 23 11:19:52 2020 +0100

    Bring code link everywhere for Diagnostics

commit f88cd4cc4e2064fd96853373e26c12670161bf60
Author: Pine Wu <octref@gmail.com>
Date:   Wed Jan 22 17:24:54 2020 +0100

    Add Diagnostic#code2 and render it in hover/inline/panel

commit 2a13e3e4f62fd3707f2c03c1e814a8fdc557c367
Author: Pine Wu <octref@gmail.com>
Date:   Wed Jan 22 13:49:42 2020 +0100

    WIP
2020-01-24 10:30:19 +01:00
Matt Bierner
f3dbcea32a Adds a backup method (#88948)
Adds a backup method to the custom editor API proposal. This method allows custom editors to hook in to VS Code's hot exit behavior

If `backup` is not implemented, VS Code will assume that the custom editor cannot be hot exited.

When `backup` is implemented, VS Code will invoke the method after every edit (this is debounced). At this point, this extension should back up the current resource.  The result is a promise indicating if the backup was successful or not

VS Code will only hot exit if all backups were successful.
2020-01-23 16:14:27 -08:00
Matt Bierner
ead3e2373d Correctly convert null to a resource scope (#89131)
For #87768

I believe that calling `vscode.workspace.getConfiguration('section', null)` is supposed to create  a specific config accessor that works for any resource. Currently it behaves the same as if you omitted the second param
2020-01-23 10:01:06 -08:00
Matt Bierner
dcb5998b75 Fix resource scope access error logging (#89130)
For #87768

It seems that this log message is meant to be fired when accessing a resource scoped config without a resource
2020-01-23 10:00:50 -08: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
Rachel Macfarlane
7d55753182 Use authentication provider display name in settings sync notification 2020-01-22 15:43:25 -08:00
Rachel Macfarlane
c1eacb4e56 Expose authentication providers array 2020-01-22 11:37:20 -08:00
Alex Ross
c3a5ac0820 Adopt deprecation service for deprecated task constructor
Part of https://github.com/microsoft/vscode/issues/88391
2020-01-22 12:43:01 +01:00
Pine Wu
87cefc9bf6 Add signature/qualifier for #39441
Squashed commit of the following:

commit 2bbee1ef5d
Author: Pine Wu <octref@gmail.com>
Date:   Wed Jan 22 11:48:44 2020 +0100

    Separate testing changes

commit 047e81e90f
Author: Pine Wu <octref@gmail.com>
Date:   Wed Jan 22 11:44:30 2020 +0100

    Tweak layout

commit 078b21f6dc
Author: Pine Wu <octref@gmail.com>
Date:   Tue Jan 21 15:20:07 2020 +0100

    UI changes

commit a869c0fa50
Author: Pine Wu <octref@gmail.com>
Date:   Tue Jan 21 12:28:35 2020 +0100

    WIP
2020-01-22 11:53:17 +01:00
Pine Wu
f8053fa247 Drop string from label2 for #39441 2020-01-21 10:42:14 +01:00
Pine Wu
999af5dc91 Fix converter 2020-01-21 10:29:53 +01:00
Pine Wu
be285784f2 details -> type 2020-01-21 09:46:13 +01:00
Pine Wu
c1a0defa5f Merge remote-tracking branch 'origin/master' into pine/alwaysShowInlineDetails 2020-01-21 09:13:22 +01:00
Sandeep Somavarapu
caf838e1cd fix #26707 2020-01-20 22:14:51 +01:00
Johannes Rieken
63142fc2cb add API proposal for workspace edit metadata, #77728 2020-01-20 15:31:59 +01:00
Alex Ross
1bafcbe022 Add proposed api check to new tunnels api 2020-01-20 15:09:22 +01:00
Alex Ross
017aef63b9 Add tunnel list changed event API 2020-01-20 14:41:10 +01:00
Alex Ross
40aa781ab8 Add API to get an array of tunnel descriptions 2020-01-20 12:30:11 +01:00
Johannes Rieken
0d3b5da08b bulk - refactor much to be prepared for WorkspaceEditMetadata 2020-01-20 12:18:04 +01:00
Alex Ross
71570aa4e8 Add candidate port filtering to proposed API 2020-01-20 11:38:45 +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
Matt Bierner
5335a721fa Add backup capability for custom editors 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
Rachel Macfarlane
b80e813365 Updates to authentication provider API 2020-01-15 15:45:29 -08:00
Rachel Macfarlane
ac5756dd7c Sync account state between windows 2020-01-15 10:55:34 -08:00
Benjamin Pasero
2585092dbe tests - reduce output of integration tests (#84283) 2020-01-15 12:56:22 +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
Rachel Macfarlane
60beab2535 Move settings sync auth into built in extension 2020-01-14 14:50:37 -08:00
Pine Wu
79a01a0f27 Revert isDetailsResolved and implement CompletionItemLabel 2020-01-14 17:20:41 +01:00
Daniel Imms
a62805844e Expose IExtHostTerminalService.getDefaultShellArgs internally
Fixes #88280
2020-01-13 07:45:08 -08:00
Johannes Rieken
e69cc0760c update telemetry message with index of changed field #87187 2020-01-13 12:26:42 +01:00
Johannes Rieken
f36e0c13c6 fix #88310 2020-01-13 10:43:20 +01:00
Matt Bierner
cb4ef36e6d Make sure we restore the previous editor when switching back to it 2020-01-10 18:19:41 -08:00
Matt Bierner
a0328d26ac Add 'vscode.reopenWith' API command
Fixes #88426

Add an api command that allows extensions to open/reopen a file with a specific we custom editor. Use this to allow re-opening a failed to load image as text/binary

For #77131
2020-01-10 14:25:21 -08: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
Sandeep Somavarapu
ea1097d2b0 #26707 Inspect returns languages 2020-01-09 02:34:11 +01:00
Sandeep Somavarapu
29759db68b #26707 Make uri optional 2020-01-08 17:43:19 +01:00
Andre Weinand
ec211900d8 improved error DA error reporting; fixes #87196 2020-01-08 16:53:36 +01:00
Alex Ross
d70c0a9a3f Fix openExternal and asExternalUri (#88211)
We allow tunneling for extensions regardless of whether they are in a local or remote extension host.
2020-01-08 10:20:20 +01:00
Alex Ross
62a2317176 Option for hiding candidate ports 2020-01-07 17:13:45 +01:00
Sandeep Somavarapu
9608852189 #26707 Change resource to uri 2020-01-07 15:02:40 +01:00
Matt Bierner
af9dddd0fc Require second parameter for Map.set
Converts cover the was relying on the old signature to either use delete or have the correct types
2020-01-06 11:41:38 -08:00