Skip to content

Commit

Permalink
Fix #347 (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
formulahendry authored Jul 17, 2019
1 parent 8dd5db1 commit db895b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions src/snippetManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>(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("<<insert")) {
Expand Down

0 comments on commit db895b0

Please sign in to comment.