This commit is contained in:
Jun Han 2019-07-16 21:49:46 -05:00 коммит произвёл GitHub
Родитель 8dd5db1bc3
Коммит db895b0de7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -2,7 +2,7 @@
"name": "azure-iot-toolkit", "name": "azure-iot-toolkit",
"displayName": "Azure IoT Hub 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", "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", "publisher": "vsciot-vscode",
"aiKey": "0caaff90-cc1c-4def-b64c-3ef33615bc9b", "aiKey": "0caaff90-cc1c-4def-b64c-3ef33615bc9b",
"icon": "logo.png", "icon": "logo.png",

Просмотреть файл

@ -27,9 +27,8 @@ export class SnippetManager extends BaseExplorer {
} }
let document = editor.document; let document = editor.document;
let text = document.getText(); let text = document.getText();
let config = Utility.getConfiguration(); this.connectionStringKeys.forEach(async (connectionStringKey) => {
this.connectionStringKeys.forEach((connectionStringKey) => { let connectionStringValue = await Utility.getConnectionStringWithId(connectionStringKey);
let connectionStringValue = config.get<string>(connectionStringKey);
let connectionStringKeyWithAngleBracket = this.getTextWithAngleBracket(connectionStringKey); let connectionStringKeyWithAngleBracket = this.getTextWithAngleBracket(connectionStringKey);
if (changedText.indexOf(connectionStringKeyWithAngleBracket) > -1 if (changedText.indexOf(connectionStringKeyWithAngleBracket) > -1
&& connectionStringValue && !connectionStringValue.startsWith("<<insert")) { && connectionStringValue && !connectionStringValue.startsWith("<<insert")) {