Skip to content

Commit 8270daa

Browse files
angelozerrdatho7561
authored andcommitted
Pressing "escape" during binding wizard doesn't stop the binding process
Fixes #832 Signed-off-by: azerr <azerr@redhat.com>
1 parent c0b010f commit 8270daa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/commands/registerCommands.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ async function grammarAssociationCommand(documentURI: Uri, languageClient: Langu
181181
// step 1: select local / remote Uri type
182182
let grammarURI;
183183
const uriType = await window.showQuickPick([{ "label": "local" }, { "label": "remote" }], { placeHolder: "Binding type" });
184-
if (uriType && uriType.label === 'remote') {
184+
if (!uriType) {
185+
return;
186+
}
187+
if (uriType.label === 'remote') {
185188
let predefinedUrl = await env.clipboard.readText();
186189
if (!predefinedUrl || !predefinedUrl.startsWith('http')) {
187190
predefinedUrl = '';

0 commit comments

Comments
 (0)