Skip to content

Commit

Permalink
Merge pull request #8 from mickdekkers/keep-prompt-open
Browse files Browse the repository at this point in the history
Keep configuration input boxes open when they lose focus
  • Loading branch information
keesschollaart81 committed Mar 22, 2019
2 parents c0ff824 + dc187a3 commit e7ba6bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/configuration.ts
Expand Up @@ -27,15 +27,17 @@ export const config = {

var url = await vscode.window.showInputBox(<vscode.InputBoxOptions>{
prompt: "Enter your Home Assistant (base) URL",
placeHolder: "https://your.homeassistant.com:8123"
placeHolder: "https://your.homeassistant.com:8123",
ignoreFocusOut: true
});
if (!url) {
return false;
}

var token = await vscode.window.showInputBox(<vscode.InputBoxOptions>{
prompt: "Enter a Home Assistant 'Long-Lived Access Token', create one on your user/profile page in HA.",
password: true
password: true,
ignoreFocusOut: true
});
if (!token) {
return false;
Expand Down

0 comments on commit e7ba6bb

Please sign in to comment.