fix: wrong scope for the reconnect button

This commit is contained in:
Crawl 2018-11-07 04:02:31 +01:00
parent b9713b1880
commit 30efb68532
No known key found for this signature in database
GPG key ID: E41A6DB922EC2CFE

View file

@ -52,12 +52,12 @@ export async function activate(context: ExtensionContext) {
if (!config.get('silent')) { if (!config.get('silent')) {
if (error.message.includes('ENOENT')) window.showErrorMessage('No Discord Client detected!'); if (error.message.includes('ENOENT')) window.showErrorMessage('No Discord Client detected!');
else window.showErrorMessage(`Couldn't connect to Discord via RPC: ${error.toString()}`); else window.showErrorMessage(`Couldn't connect to Discord via RPC: ${error.toString()}`);
if (!statusBarIcon) { }
statusBarIcon = window.createStatusBarItem(StatusBarAlignment.Left); if (!statusBarIcon) {
statusBarIcon.text = '$(plug) Reconnect to Discord'; statusBarIcon = window.createStatusBarItem(StatusBarAlignment.Left);
statusBarIcon.command = 'discord.reconnect'; statusBarIcon.text = '$(plug) Reconnect to Discord';
statusBarIcon.show(); statusBarIcon.command = 'discord.reconnect';
} statusBarIcon.show();
} }
} }
} }
@ -90,4 +90,4 @@ export async function deactivate() {
await rpc.dispose(); await rpc.dispose();
} }
process.on('unhandledRejection', console.error); process.on('unhandledRejection', err => Logger.log(err));