From 48d37fc9762dbf2d2a7755966ebd9261ad28b286 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Wed, 20 Jun 2018 16:07:19 +0200 Subject: [PATCH] some jsdoc #10659 --- src/vs/vscode.proposed.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/vs/vscode.proposed.d.ts b/src/vs/vscode.proposed.d.ts index 3b46a0f02ef..63abc9c53fd 100644 --- a/src/vs/vscode.proposed.d.ts +++ b/src/vs/vscode.proposed.d.ts @@ -621,8 +621,29 @@ declare module 'vscode' { //#region joh: https://github.com/Microsoft/vscode/issues/10659 export interface WorkspaceEdit { + + /** + * Create a regular file. + * + * @param uri Uri of the new file.. + * @param options Defines if an existing file should be overwritten or be ignored. + */ createFile(uri: Uri, options?: { overwrite?: boolean, ignoreIfExists?: boolean }): void; + + /** + * Delete a file or folder. + * + * @param uri The uri of the file that is to be deleted. + */ deleteFile(uri: Uri): void; + + /** + * Rename a file or folder. + * + * @param oldUri The existing file. + * @param newUri The new location. + * @param options Defines if existing files should be overwritten. + */ renameFile(oldUri: Uri, newUri: Uri, options?: { overwrite?: boolean }): void; // replaceText(uri: Uri, range: Range, newText: string): void; -- GitLab