Commit Graph

7777 Commits

Author SHA1 Message Date
Tyler James Leonhardt
6c8d8a2654 Have forceNewSession behave like createIfNone if no sessions are present (#148819)
* Have forceNewSession behave like createIfNone if no sessions are present

* include note in vscode.d.ts about forceNewSesssion behavior
2022-05-05 13:30:14 -07:00
Henning Dieterichs
f98ae66391 Merge pull request #148767 from microsoft/hediet/inline-completion-update
Updates inlineCompletions proposal from inlineCompletionsNew proposal.
2022-05-05 13:51:21 +02:00
Henning Dieterichs
bae40168ae Fixes issues from code review 2022-05-05 09:54:41 +02:00
Henning Dieterichs
3b08d52d0b Updates inlineCompletions proposal from inlineCompletionsNew proposal.
Also moves InlineCompletionList.commands to inlineCompletionsAdditions proposal.
2022-05-05 07:49:38 +02:00
Matt Bierner
93fd393a0e Add API proposal for reading files in data transfer (#148596)
* Add experimental support for reading files in data transfer

Adds a new `DataTransfer.asFile` method which lets you get file objects from a `DataTransfer`. This is currently only hooked up for drop into editors.

A few follow ups:

- Right now the file data is also read eagerly when it is transfered to the extension host. Before shipping this we would make this happen lazily instead
- The drop into editor api does not provide a nice way to do anything with the dropped files.

    We should at least support returning a `WorkspaceEdit`. However `WorkspaceEdit` only supports text files, so we would also need to add an API that lets it deal with binary files

* Make `asFile` return a value instead of a promise

`asFile().data()` already returns a promise so `asFile` doesn't also need to be async

* Trying resolving data files transfer lazily

* Cleaning up code for lazy drop

* Remove testing code

* Remove unneeded buffer serialize

* 💄
2022-05-04 12:59:27 -07:00
Jason Williams
e19f09713b Enable globs on tasks otherwise fallback to default - fixes #88106 (#141230)
* use glob on tasks otherwise fallback to default

* add support for test commands also

* try to find one globbed task otherwise fallback to defaults

* - get relativePath (but fallback to absolute if outside of workspace)
- bring back json schema

* Refactor and reduce duplicate code

* remove glob, make isDefault a string or boolean

* update taskConfig

* - rebase
- type updates
- splitPerGroupType should check explicitly for true on isDefault
- hygiene check

* Remove task glob from API

* Task group DTO updates

* Make sure globs run ahead of default task if there's multiple globs matching

* Style and name changes

* More naming and code re-use

* Glob doesn't work when only 1 glob match

Co-authored-by: Alex Ross <alros@microsoft.com>
2022-05-03 09:56:24 +02:00
沈鸿飞
19e728a2c0 In addition to WebviewPanel, let WebviewView also support transferring of TypedArrays (#148429) 2022-04-30 17:53:37 -04:00
Alex Ross
85ea9c5f65 Dispose thread earlier
Part of #148216
2022-04-27 15:59:25 +02:00
Benjamin Pasero
8a39cb9304 labels - make getPathLabel aware of remote OS 2022-04-26 18:09:01 +02:00
Alex Dima
0ca6fff829 Fixes #148043 2022-04-25 19:42:39 +02:00
Tyler Leonhardt
c22cb87311 include this.logService.error in a place. ref #147760 2022-04-22 18:18:53 -07:00
Johannes
e7bc9bb5fc don't return duplicates from vscode.extensions.allAcrossExtensionHosts, add ExtensionIdentifierSet fyi @alexdima 2022-04-22 12:43:25 +02:00
Logan Ramos
aa69f3d762 Fix #15178 Finalize tabs API 🎉 2022-04-21 11:08:12 -04:00
Johannes
ad4470522e propose extensions.allAcrossExtensionHosts and related APIs, https://github.com/microsoft/vscode/issues/145307 2022-04-21 14:45:46 +02:00
Tyler James Leonhardt
042921eee9 migrate non-encrypted strings in keyring (#147785) 2022-04-20 12:05:19 -07:00
Alexandru Dima
7ea39549f5 Merge pull request #147761 from microsoft/alex/extensions-on-all-hosts
Send all extension descriptions to all extension hosts
2022-04-20 17:03:11 +03:00
Alex Dima
0b2c629d21 Remove left-over console log calls 2022-04-20 17:01:58 +03:00
Alex Dima
3e7fed03dc Update the extension path tree after $deltaExtensions 2022-04-20 17:00:44 +03:00
Alex Dima
b9e8734a7b Do fs calls in parallel 2022-04-20 16:37:56 +03:00
Alex Dima
a045f3f48a Send all extension descriptions to all extension hosts (#145307) 2022-04-20 15:06:31 +03:00
Johannes
9530dca29d finalize notebookDocumentEvents-API, https://github.com/microsoft/vscode/issues/144662 2022-04-20 13:58:37 +02:00
Johannes
a9c39c582c rename type, add jsdoc https://github.com/microsoft/vscode/issues/144662 2022-04-20 12:50:54 +02:00
Johannes
8783c56eb7 fix https://github.com/microsoft/vscode/issues/147711 2022-04-20 11:30:37 +02:00
Johannes
5931aa8ed6 fix two issues with notebookType and document selectors, (1) make sure that notebookType: * matches only when a notebook is around, (2) include notebookType-property when converting from extHost type to renderer type, fyi @dbaeumer 2022-04-20 09:47:13 +02:00
Matt Bierner
50ea16198d Remove the concat text document api proposal
Fixes #146781
2022-04-14 14:39:44 -07:00
rebornix
cb80d2cb1d if resolve kernel failed, reset connection state 2022-04-14 12:10:15 -07:00
rebornix
280050dba5 💄 2022-04-14 11:19:50 -07:00
rebornix
f20a0f2a10 extract exthost/mainthread proxy kernels. 2022-04-14 11:10:48 -07:00
rebornix
ec30263535 Merge remote-tracking branch 'origin/main' into rebornix/lazy-kernel 2022-04-14 10:09:45 -07:00
rebornix
61095a1347 notebook controller or id 2022-04-14 10:07:49 -07:00
Logan Ramos
db30f3d981 Change TabChangeEvent variable names 2022-04-14 09:43:53 -04:00
Johannes Rieken
35c34e1a9a add TabGroupChangeEvent-event which is similar to the TabChangeEvent (#147443) 2022-04-14 09:08:28 -04:00
Johannes
c4dd43dd79 💄 2022-04-14 14:53:24 +02:00
Johannes
4ea02deebd ignore text document version whenever that document is marked as being created, fixes https://github.com/microsoft/vscode/issues/146964 2022-04-14 11:04:35 +02:00
Connor Peet
82d8e0f018 web: add telemetry api for embedders (#146931)
* web: add telemetry api for embedders

* fixup! expose just the telemetry level instead of publicLog

* fixup! move telemetry level under env

* fixup! pr comments

* fixup! build
2022-04-13 10:27:56 -07:00
Sandeep Somavarapu
eda166b7fa Move output service to workbench/services 2022-04-13 12:00:09 +05:30
rebornix
a2e45088bc controler id 2022-04-12 17:24:15 -07:00
Tyler Leonhardt
527d63162a address feedback by having concrete ValidationMessage type 2022-04-12 17:18:13 -07:00
Logan Ramos
20bd040c95 Merge internal options to timeline options (#147304) 2022-04-12 11:14:19 -07:00
Henning Dieterichs
841c777ad8 Introduces InlineCompletionList.commands and improves documentation comments. 2022-04-12 19:32:40 +02:00
Martin Aeschlimann
eb154fd289 Merge pull request #147234 from ImCa0/patch-1
Fix spell check errors in translatable strings
2022-04-12 08:49:54 +02:00
Matt Bierner
21173541e1 Make postMessage's behavior more sane
Fixes #146253

Two parts to this change:

- Make postMessage return false if a message cannot be delivered to a webview

- Don't queue messages for hidden (and non-retained) webviews. This was potentially causing a huge flood of messages to be dumped into the webview once it becomes visible again
2022-04-11 15:18:41 -07:00
Logan Ramos
ccf4a9e339 Remove property level owner from telemetry types 2022-04-11 15:18:30 -04:00
Logan Ramos
783c0f8921 Use closeAllEditors for closeGroup 2022-04-11 13:55:55 -04:00
Logan Ramos
27cb4a5934 Add move patching tests 2022-04-11 13:53:27 -04:00
Logan Ramos
40abe3cc6c Update typings 2022-04-11 13:22:04 -04:00
ImCaO
49b661886b Fix spell check errors in translatable strings 2022-04-12 00:03:22 +08:00
rebornix
860221a193 two kernel types 2022-04-11 08:05:40 -07:00
Logan Ramos
f45ed40f5a Remove debug console log 2022-04-11 10:51:53 -04:00
Logan Ramos
2cbe5991f9 Fix #145773 2022-04-11 10:48:54 -04:00