-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add osc-cost installation capabilities
Signed-off-by: Maxime Dufour <[email protected]>
- Loading branch information
1 parent
0f9eb45
commit d958e5e
Showing
6 changed files
with
265 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as vscode from 'vscode'; | ||
import { CONFIGURATION_NAME, OSC_COST_PARAMETER } from "../configuration/utils"; | ||
import { isOscCostEnabled, isOscCostFound, showErrorMessageWithInstallPrompt } from '../components/osc_cost'; | ||
|
||
|
||
export function handleOscViewerUpdateConf() { | ||
vscode.workspace.onDidChangeConfiguration((e) => { | ||
// Osc-Cost enabled | ||
if (e.affectsConfiguration(`${CONFIGURATION_NAME}.${OSC_COST_PARAMETER}.enabled`)) { | ||
if (isOscCostEnabled() && !(isOscCostFound())) { | ||
showErrorMessageWithInstallPrompt(); | ||
} | ||
} | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.