File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11import * as vscode from "vscode" ;
2+ import { GitHubRepoContext } from "../../git/repository" ;
23import { encodeSecret } from "../../secrets" ;
34import { EnvironmentSecretsCommandArgs } from "../../treeViews/settings/environmentSecretsNode" ;
45import { RepoSecretsCommandArgs } from "../../treeViews/settings/repoSecretsNode" ;
5- import { GitHubRepoContext } from "../../git/repository" ;
66
77type AddSecretCommandArgs = RepoSecretsCommandArgs | EnvironmentSecretsCommandArgs ;
88
@@ -12,15 +12,17 @@ export function registerAddSecret(context: vscode.ExtensionContext) {
1212 const { gitHubRepoContext} = args ;
1313
1414 const name = await vscode . window . showInputBox ( {
15- prompt : "Enter name for new secret"
15+ prompt : "Enter name for new secret" ,
16+ ignoreFocusOut : true
1617 } ) ;
1718
1819 if ( ! name ) {
1920 return ;
2021 }
2122
2223 const value = await vscode . window . showInputBox ( {
23- prompt : "Enter the new secret value"
24+ prompt : "Enter the new secret value" ,
25+ ignoreFocusOut : true
2426 } ) ;
2527
2628 if ( ! value ) {
Original file line number Diff line number Diff line change @@ -11,15 +11,17 @@ export function registerAddVariable(context: vscode.ExtensionContext) {
1111
1212 const name = await vscode . window . showInputBox ( {
1313 prompt : "Enter name for new variable" ,
14- placeHolder : "Variable name"
14+ placeHolder : "Variable name" ,
15+ ignoreFocusOut : true
1516 } ) ;
1617
1718 if ( ! name ) {
1819 return ;
1920 }
2021
2122 const value = await vscode . window . showInputBox ( {
22- prompt : "Enter the new variable value"
23+ prompt : "Enter the new variable value" ,
24+ ignoreFocusOut : true
2325 } ) ;
2426
2527 if ( ! value ) {
You can’t perform that action at this time.
0 commit comments