@@ -320,7 +320,8 @@ export class StudioActions {
320320 this . api
321321 . actionQuery ( query , parameters )
322322 . then ( async ( data ) => {
323- if ( action . save && action . id != "6" && ! this . name . endsWith ( ".PRJ" ) && this . uri ) {
323+ const isPrj = this . name . toUpperCase ( ) . endsWith ( ".PRJ" ) ;
324+ if ( action . save && action . id != "6" && ! isPrj && this . uri ) {
324325 // Save the requested documents.
325326 // Ignore the save flag if this is a project or bulk import action.
326327 const bitString : string = action . save . toString ( ) . padStart ( 3 , "0" ) ;
@@ -354,14 +355,14 @@ export class StudioActions {
354355 }
355356 const actionToProcess : UserAction = data . result . content . pop ( ) ;
356357
357- if ( actionToProcess . reload ) {
358+ if ( actionToProcess . reload && ! isPrj ) {
358359 await vscode . commands . executeCommand ( "workbench.action.files.revert" , this . uri ) ;
359360 }
360361
361362 const attemptedEditLabel = getOtherStudioActionLabel ( OtherStudioAction . AttemptedEdit ) ;
362363 if ( afterUserAction && actionToProcess . errorText !== "" ) {
363364 if ( action . label === attemptedEditLabel ) {
364- if ( this . name . toUpperCase ( ) . endsWith ( ".PRJ" ) ) {
365+ if ( isPrj ) {
365366 // Store the "answer" so the caller knows there was an error
366367 this . projectEditAnswer = "-1" ;
367368 } else if ( this . uri ) {
@@ -380,7 +381,7 @@ export class StudioActions {
380381 // Only revert if we have a URI
381382 await vscode . commands . executeCommand ( "workbench.action.files.revert" , this . uri ) ;
382383 }
383- if ( this . name . toUpperCase ( ) . endsWith ( ".PRJ" ) ) {
384+ if ( isPrj ) {
384385 // Store the answer. No answer means "allow the edit".
385386 this . projectEditAnswer = answer ?? "1" ;
386387 }
0 commit comments