Skip to content

Commit

Permalink
Fix set ambient lights status message
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvien committed Mar 9, 2019
1 parent d15a969 commit caa63d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "vscode-hue",
"version": "1.3.0",
"version": "1.3.1",
"publisher": "KelvienHidayat",
"homepage": "https://github.com/kelvien/vscode-hue",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions src/extension.ts
Expand Up @@ -77,12 +77,14 @@ export async function activate(context: vscode.ExtensionContext) {
// Enable ambient lights command
const enableAmbientLightsCommand = vscode.commands.registerCommand('extension.hue.enableAmbientLights', async () => {
await setAmbientLights(true);
vscode.window.showInformationMessage('Hue: Ambient lights has been enabled');
});
context.subscriptions.push(enableAmbientLightsCommand);

// Disable ambient lights command
const disableAmbientLightsCommand = vscode.commands.registerCommand('extension.hue.disableAmbientLights', async () => {
await setAmbientLights(false);
vscode.window.showInformationMessage('Hue: Ambient lights has been disabled');
});
context.subscriptions.push(disableAmbientLightsCommand);
}
Expand Down
1 change: 0 additions & 1 deletion src/hue/ambient_lights.ts
Expand Up @@ -7,7 +7,6 @@ import { getHueConfiguration } from './config';

export async function setAmbientLights(isEnabled: boolean) {
await (vscode.workspace.getConfiguration()).update('hue.ambientLights.enabled', isEnabled, vscode.ConfigurationTarget.Global);
vscode.window.showInformationMessage('Hue: Ambient lights has been enabled');
if (vscode.window.activeTextEditor) {
adapt(vscode.window.activeTextEditor.document.languageId);
}
Expand Down

0 comments on commit caa63d6

Please sign in to comment.