From 5bd8d9f2a8dbe3513a03b86472810af90b8ad274 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Wed, 27 Jun 2018 15:08:55 +0200 Subject: [PATCH] more doc, fixes #52927 --- src/vs/vscode.proposed.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/vs/vscode.proposed.d.ts b/src/vs/vscode.proposed.d.ts index d48d52e96ee..d078e33475f 100644 --- a/src/vs/vscode.proposed.d.ts +++ b/src/vs/vscode.proposed.d.ts @@ -833,6 +833,21 @@ declare module 'vscode' { // deleteText(uri: Uri, range: Range): void; } + export namespace workspace { + /** + * Make changes to one or many resources as defined by the given + * [workspace edit](#WorkspaceEdit). + * + * The editor implements an 'all-or-nothing'-strategy and that means failure to modify, + * delete, rename, or create one file will abort the operation. In that case, the thenable returned + * by this function resolves to `false`. + * + * @param edit A workspace edit. + * @return A thenable that resolves when the edit could be applied. + */ + export function applyEdit(edit: WorkspaceEdit): Thenable; + } + //#endregion //#region mjbvz,joh: https://github.com/Microsoft/vscode/issues/43768 -- GitLab