File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
extensions/vscode-api-tests/src/singlefolder-tests Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -934,7 +934,7 @@ suite('vscode API - workspace', () => {
934
934
async function test77735 ( withOpenedEditor : boolean ) : Promise < void > {
935
935
const docUriOriginal = await createRandomFile ( ) ;
936
936
const docUriMoved = docUriOriginal . with ( { path : `${ docUriOriginal . path } .moved` } ) ;
937
- await deleteFile ( docUriMoved ) ; // ensure target does not exist
937
+ await deleteFile ( docUriMoved ) ;
938
938
939
939
if ( withOpenedEditor ) {
940
940
const document = await vscode . workspace . openTextDocument ( docUriOriginal ) ;
@@ -967,8 +967,9 @@ suite('vscode API - workspace', () => {
967
967
const document = await vscode . workspace . openTextDocument ( newUri ) ;
968
968
assert . strictEqual ( document . isDirty , true ) ;
969
969
970
- await document . save ( ) ;
971
- assert . strictEqual ( document . isDirty , false ) ;
970
+ const result = await document . save ( ) ;
971
+ assert . strictEqual ( result , true , `save failed in iteration: ${ i } (docUriOriginal: ${ docUriOriginal . fsPath } )` ) ;
972
+ assert . strictEqual ( document . isDirty , false , `document still dirty in iteration: ${ i } (docUriOriginal: ${ docUriOriginal . fsPath } )` ) ;
972
973
973
974
assert . strictEqual ( document . getText ( ) , expected ) ;
974
975
You can’t perform that action at this time.
0 commit comments