Skip to content

Commit

Permalink
Fix issue where settings updates required a refresh before they were …
Browse files Browse the repository at this point in the history
…respected
  • Loading branch information
Luke Woodward committed Sep 22, 2023
1 parent c73c276 commit 924ce09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/eopa-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function activate(context: vscode.ExtensionContext) {
vscode.commands.registerCommand('eopa.preview.setToken', () => runSetToken(utils.previewEnvironment(context))),
vscode.languages.registerCodeLensProvider({language: 'rego'}, previewLens),
vscode.workspace.onDidChangeConfiguration(async (e: vscode.ConfigurationChangeEvent) => {
if (!e.affectsConfiguration('eopa')) {
if (!e.affectsConfiguration('enterpriseOPA')) {
return;
}
previewLens.setEnabled(utils.previewCodeLenseEnabled());
Expand Down

0 comments on commit 924ce09

Please sign in to comment.