diff --git a/src/features/RenameSymbol.ts b/src/features/RenameSymbol.ts index c01b418145..7a2e80b26c 100644 --- a/src/features/RenameSymbol.ts +++ b/src/features/RenameSymbol.ts @@ -189,7 +189,8 @@ export class RenameSymbolFeature extends LanguageClientConsumer implements Renam } } - return config.get("powershell.renameSymbol.acceptRenameDisclaimer", false); + // Refresh the config to ensure it was set + return vscode.workspace.getConfiguration().get("powershell.renameSymbol.acceptRenameDisclaimer", false); } public dispose(): void {