Skip to content

Commit f7a9c49

Browse files
committed
react to config changes immediately
1 parent 4bb7fba commit f7a9c49

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/features/codeLensProvider.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ export default class OmniSharpCodeLensProvider extends AbstractProvider implemen
3535
super(server, reporter);
3636

3737
this._testManager = testManager;
38+
this._checkOptions();
39+
40+
let configChangedDisposable = vscode.workspace.onDidChangeConfiguration(this._checkOptions, this);
41+
this.addDisposables(configChangedDisposable);
42+
}
43+
44+
private _checkOptions(): void {
3845
this._options = Options.Read();
3946
}
4047

0 commit comments

Comments
 (0)