Skip to content

Commit 4fb1e92

Browse files
authored
💄 move new save-functions close to existing saveAll function (microsoft#203356)
1 parent 09231ca commit 4fb1e92

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/vscode-dts/vscode.d.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13286,6 +13286,29 @@ declare module 'vscode' {
1328613286
*/
1328713287
export function findFiles(include: GlobPattern, exclude?: GlobPattern | null, maxResults?: number, token?: CancellationToken): Thenable<Uri[]>;
1328813288

13289+
/**
13290+
* Saves the editor identified by the given resource and returns the resulting resource or `undefined`
13291+
* if save was not successful or no editor with the given resource was found.
13292+
*
13293+
* **Note** that an editor with the provided resource must be opened in order to be saved.
13294+
*
13295+
* @param uri the associated uri for the opened editor to save.
13296+
* @returns A thenable that resolves when the save operation has finished.
13297+
*/
13298+
export function save(uri: Uri): Thenable<Uri | undefined>;
13299+
13300+
/**
13301+
* Saves the editor identified by the given resource to a new file name as provided by the user and
13302+
* returns the resulting resource or `undefined` if save was not successful or cancelled or no editor
13303+
* with the given resource was found.
13304+
*
13305+
* **Note** that an editor with the provided resource must be opened in order to be saved as.
13306+
*
13307+
* @param uri the associated uri for the opened editor to save as.
13308+
* @returns A thenable that resolves when the save-as operation has finished.
13309+
*/
13310+
export function saveAs(uri: Uri): Thenable<Uri | undefined>;
13311+
1328913312
/**
1329013313
* Save all dirty files.
1329113314
*
@@ -13649,29 +13672,6 @@ declare module 'vscode' {
1364913672
* Event that fires when the current workspace has been trusted.
1365013673
*/
1365113674
export const onDidGrantWorkspaceTrust: Event<void>;
13652-
13653-
/**
13654-
* Saves the editor identified by the given resource and returns the resulting resource or `undefined`
13655-
* if save was not successful or no editor with the given resource was found.
13656-
*
13657-
* **Note** that an editor with the provided resource must be opened in order to be saved.
13658-
*
13659-
* @param uri the associated uri for the opened editor to save.
13660-
* @returns A thenable that resolves when the save operation has finished.
13661-
*/
13662-
export function save(uri: Uri): Thenable<Uri | undefined>;
13663-
13664-
/**
13665-
* Saves the editor identified by the given resource to a new file name as provided by the user and
13666-
* returns the resulting resource or `undefined` if save was not successful or cancelled or no editor
13667-
* with the given resource was found.
13668-
*
13669-
* **Note** that an editor with the provided resource must be opened in order to be saved as.
13670-
*
13671-
* @param uri the associated uri for the opened editor to save as.
13672-
* @returns A thenable that resolves when the save-as operation has finished.
13673-
*/
13674-
export function saveAs(uri: Uri): Thenable<Uri | undefined>;
1367513675
}
1367613676

1367713677
/**

0 commit comments

Comments
 (0)