@@ -281,7 +281,7 @@ export class ProjectManager {
281281 */
282282 async showEnableDialog ( ) : Promise < boolean > {
283283 const enableLabel = localize ( 'project.action.enable' ) ;
284- const disableLabel = localize ( 'project.action.notEnable' ) ;
284+ const dontAskAgainLabel = localize ( 'project.action.notEnable' ) ;
285285 const remindLaterLabel = localize ( 'project.action.remindLater' ) ;
286286
287287 const choice = await vscode . window . showInformationMessage (
@@ -291,7 +291,7 @@ export class ProjectManager {
291291 detail : localize ( 'project.prompt.enableDetail' )
292292 } ,
293293 enableLabel ,
294- disableLabel ,
294+ dontAskAgainLabel ,
295295 remindLaterLabel
296296 ) ;
297297
@@ -314,7 +314,7 @@ export class ProjectManager {
314314 }
315315 }
316316 return enabled ;
317- case disableLabel :
317+ case dontAskAgainLabel :
318318 await this . saveWorkspaceProjectConfig (
319319 vscode . workspace . workspaceFolders ! [ 0 ] . uri . fsPath ,
320320 { ...ProjectManager . DEFAULT_CONFIG , enabled : false , lastActivated : new Date ( ) . toISOString ( ) }
@@ -348,10 +348,9 @@ export class ProjectManager {
348348 }
349349
350350 const rootPath = workspaceFolders [ 0 ] . uri . fsPath ;
351- const configPath = path . join ( rootPath , ProjectManager . CONFIG_FILE_NAME ) ;
352-
353- // If project config file exists, don't show prompt
354- if ( fs . existsSync ( configPath ) ) {
351+ // Respect any explicit project decision persisted either in .docugenius.json
352+ // or in VS Code workspace storage, including "don't ask again".
353+ if ( this . hasPersistedProjectState ( rootPath ) ) {
355354 return false ;
356355 }
357356
0 commit comments