mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
untitled - share save/saveas logic in one place
This commit is contained in:
@@ -160,7 +160,7 @@ export class MainThreadDocuments implements MainThreadDocumentsShape {
|
||||
// --- from extension host process
|
||||
|
||||
$trySaveDocument(uri: UriComponents): Promise<boolean> {
|
||||
return this._textFileService.save(URI.revive(uri));
|
||||
return this._textFileService.save(URI.revive(uri)).then(target => !!target);
|
||||
}
|
||||
|
||||
$tryOpenDocument(_uri: UriComponents): Promise<any> {
|
||||
|
||||
Reference in New Issue
Block a user