File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/vs/workbench/services/workingCopy/common Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1110,10 +1110,13 @@ export class StoredFileWorkingCopy<M extends IStoredFileWorkingCopyModel> extend
1110
1110
primaryActions . push ( toAction ( {
1111
1111
id : 'fileWorkingCopy.saveAs' ,
1112
1112
label : localize ( 'saveAs' , "Save As..." ) ,
1113
- run : ( ) => {
1113
+ run : async ( ) => {
1114
1114
const editor = this . workingCopyEditorService . findEditor ( this ) ;
1115
1115
if ( editor ) {
1116
- this . editorService . save ( editor , { saveAs : true , reason : SaveReason . EXPLICIT } ) ;
1116
+ const result = await this . editorService . save ( editor , { saveAs : true , reason : SaveReason . EXPLICIT } ) ;
1117
+ if ( ! result . success ) {
1118
+ this . doHandleSaveError ( error ) ; // show error again given the operation failed
1119
+ }
1117
1120
}
1118
1121
}
1119
1122
} ) ) ;
You can’t perform that action at this time.
0 commit comments