Commit Graph

20 Commits

Author SHA1 Message Date
Pascal Fong Kye
e3033faeee File operation events support multiple resources (#98988)
* refactor: use array of resources

* refactor: use an array of uricomponentspair

* feat: move many resources

* refactor: rename data to files

* feat: use array of files for copy

* refactor: use move with multiple resources

* refactor: use move method with array of files

* refactor: rename data to files

* feat: moveOrCopy array of resources on paste

* refactor: use concise loop syntax

* test: assert number of events

* refactor: rename uricomponentspair

* support multiple files on WorkingCopyFileEvent

* feat: support multiple resources
onWillRunWorkingCopyFIleOperation onDidRunWorkingCopyFileOperation

* refactor: make source optional for consistency

* refactor: support resources for delete

* test: isolate tests

* fix: iterate over resources

* feat: support operations on delete

* feat: adopt deleting multiple resources

* fix: typing and sequential flow of copyservice

* fix: typing and naming

* fix: typing and naming

* fix: use different message for multiple overwrites

* refactor: naming consistency

* fix: use array resources

* fix: message for multiple overwrites

* fix format

* clean up working copy file service

* refactor multiple overwrites message helper

* use openeditors to bulk open

* split drop copy and move

* add returns

Co-authored-by: Benjamin Pasero <benjpas@microsoft.com>
2020-06-24 10:32:55 +02:00
Johannes Rieken
926fc23f13 more strict functions #81574 2020-02-11 10:28:47 +01:00
Johannes Rieken
0d3b5da08b bulk - refactor much to be prepared for WorkspaceEditMetadata 2020-01-20 12:18:04 +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
eff2320473 check timeout on extension host, blame extension when exceeded, #43768 2019-11-19 12:36:42 +01:00
Johannes Rieken
839719d489 simplify AsyncEmitter usage 2019-11-19 12:11:19 +01:00
Johannes Rieken
094fd80e20 adding configurable timeout, #43768 2019-11-19 11:37:36 +01:00
Johannes Rieken
c977eb647e tweak events and add some jsdoc, #43768 2019-11-18 14:20:41 +01:00
Johannes Rieken
6d541cae40 simpler edits collection, #43768 2019-11-18 14:02:42 +01:00
Johannes Rieken
6536592dac allow workspace edit in all will-events, #43768 2019-11-18 13:54:12 +01:00
Johannes Rieken
aedcdc9a8e some tests for working copy events, #43768 2019-11-04 15:57:54 +01:00
Johannes Rieken
36c3e8756c adjust API proposal to account for N files being created, moved, and deleted 2019-11-01 16:50:56 +01:00
Johannes Rieken
dddf8faced add event for create and delete operations 2019-11-01 12:30:36 +01:00
Johannes Rieken
31160103a3 migrate proposed API onto new events 2019-11-01 12:05:32 +01:00
Matt Bierner
029009eafd Marking most private emitters as readonly
Emitters should generally not be reassigned as their corresponding event would also be lost. Marking these as readonly just to enforce this
2019-09-23 17:31:18 -07:00
Johannes Rieken
32da48e7a0 consistent dto namings 2019-08-05 16:50:13 +02:00
Johannes Rieken
c0821aa5e9 move extHost-files to common 2019-04-10 10:26:52 +02:00
Johannes Rieken
81456a7212 move api/common to api/browser 2016-01-11 14:44:13 +01:00
Benjamin Pasero
5906207073 workbench api linting 2015-12-21 18:51:51 +01:00
Johannes Rieken
8aadd81678 debt - rename PluginHostXYZ to ExtHostXYZ, do the same for filenames 2015-12-21 11:46:00 +01:00