From 94303a199b015a6ccba0108ab109c1a005c664bc Mon Sep 17 00:00:00 2001 From: Chris Chinchilla Date: Tue, 9 Aug 2022 08:09:47 +0200 Subject: [PATCH] Revert "Merge pull request #89 from apupier/removeUnusedVariable" This reverts commit ddfe83a43c98c3730f641955ceb2f0e7ffb8ae60, reversing changes made to 956ad5108ba5fd3cdba37cf18522b736bdefc899. --- src/features/vsProvider.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/features/vsProvider.ts b/src/features/vsProvider.ts index 30e8626..00c1241 100644 --- a/src/features/vsProvider.ts +++ b/src/features/vsProvider.ts @@ -18,6 +18,7 @@ export default class ValeProvider implements vscode.CodeActionProvider { private logger!: vscode.OutputChannel; private async doVale(textDocument: vscode.TextDocument) { + const configuration = vscode.workspace.getConfiguration(); if (!utils.isElligibleDocument(textDocument)) { return; } @@ -218,6 +219,7 @@ export default class ValeProvider implements vscode.CodeActionProvider { public async activate(subscriptions: vscode.Disposable[]) { this.logger = vscode.window.createOutputChannel("Vale"); + const configuration = vscode.workspace.getConfiguration(); this.command = vscode.commands.registerCommand( ValeProvider.commandId, this.runCodeAction,