mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
* Return resulting `URI` from commands that save the active editor (fix #178713) * 💄 * address feedback * change to real proposed API * cleanup
This commit is contained in:
@@ -893,6 +893,14 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
|
||||
return extHostWorkspace.findTextInFiles(query, options || {}, callback, extension.identifier, token);
|
||||
},
|
||||
save: (uri) => {
|
||||
checkProposedApiEnabled(extension, 'saveEditor');
|
||||
return extHostWorkspace.save(uri);
|
||||
},
|
||||
saveAs: (uri) => {
|
||||
checkProposedApiEnabled(extension, 'saveEditor');
|
||||
return extHostWorkspace.saveAs(uri);
|
||||
},
|
||||
saveAll: (includeUntitled?) => {
|
||||
return extHostWorkspace.saveAll(includeUntitled);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user