@@ -13286,6 +13286,29 @@ declare module 'vscode' {
13286
13286
*/
13287
13287
export function findFiles(include: GlobPattern, exclude?: GlobPattern | null, maxResults?: number, token?: CancellationToken): Thenable<Uri[]>;
13288
13288
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
+
13289
13312
/**
13290
13313
* Save all dirty files.
13291
13314
*
@@ -13649,29 +13672,6 @@ declare module 'vscode' {
13649
13672
* Event that fires when the current workspace has been trusted.
13650
13673
*/
13651
13674
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>;
13675
13675
}
13676
13676
13677
13677
/**
0 commit comments