fix: _config to config access

This commit is contained in:
Crawl 2018-11-10 17:42:22 +01:00
parent 307a7b62d9
commit 9b2a2e739e
No known key found for this signature in database
GPG key ID: E41A6DB922EC2CFE

View file

@ -38,7 +38,7 @@ export async function activate(context: ExtensionContext) {
const enabler = commands.registerCommand('discord.enable', async () => { const enabler = commands.registerCommand('discord.enable', async () => {
await rpc.dispose(); await rpc.dispose();
await config.update('enabled', true); await config.update('enabled', true);
rpc._config = workspace.getConfiguration('discord'); rpc.config = workspace.getConfiguration('discord');
rpc.statusBarIcon.text = '$(pulse) Connecting...'; rpc.statusBarIcon.text = '$(pulse) Connecting...';
rpc.statusBarIcon.show(); rpc.statusBarIcon.show();
await rpc.login(); await rpc.login();