From db895b0de779987d1b2f0b5da7184c0691deff5b Mon Sep 17 00:00:00 2001 From: Jun Han Date: Tue, 16 Jul 2019 21:49:46 -0500 Subject: [PATCH] Fix #347 (#350) --- package.json | 2 +- src/snippetManager.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 2998c4e..4e5a522 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "azure-iot-toolkit", "displayName": "Azure IoT Hub Toolkit", "description": "Interact with Azure IoT Hub, IoT Device Management, IoT Edge Management, IoT Hub Device Simulation, IoT Hub Code Generation", - "version": "2.9.0-rc", + "version": "2.9.0-rc2", "publisher": "vsciot-vscode", "aiKey": "0caaff90-cc1c-4def-b64c-3ef33615bc9b", "icon": "logo.png", diff --git a/src/snippetManager.ts b/src/snippetManager.ts index 8d8296c..b028d43 100644 --- a/src/snippetManager.ts +++ b/src/snippetManager.ts @@ -27,9 +27,8 @@ export class SnippetManager extends BaseExplorer { } let document = editor.document; let text = document.getText(); - let config = Utility.getConfiguration(); - this.connectionStringKeys.forEach((connectionStringKey) => { - let connectionStringValue = config.get(connectionStringKey); + this.connectionStringKeys.forEach(async (connectionStringKey) => { + let connectionStringValue = await Utility.getConnectionStringWithId(connectionStringKey); let connectionStringKeyWithAngleBracket = this.getTextWithAngleBracket(connectionStringKey); if (changedText.indexOf(connectionStringKeyWithAngleBracket) > -1 && connectionStringValue && !connectionStringValue.startsWith("<