File tree 3 files changed +24
-16
lines changed
3 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 15
15
"outFiles" : [
16
16
" ${workspaceFolder}/out/**/*.js"
17
17
],
18
- "preLaunchTask" : " ${defaultBuildTask}" ,
19
-
18
+
20
19
"env" : {
21
20
"TEST_DEVWORKSPACE_NAME" : " remote-plugin-runner"
22
21
}
23
- },
24
- {
25
- "name" : " Extension Tests" ,
26
- "type" : " extensionHost" ,
27
- "request" : " launch" ,
28
- "args" : [
29
- " --extensionDevelopmentPath=${workspaceFolder}" ,
30
- " --extensionTestsPath=${workspaceFolder}/out/test/suite/index"
31
- ],
32
- "outFiles" : [
33
- " ${workspaceFolder}/out/test/**/*.js"
34
- ],
35
- "preLaunchTask" : " ${defaultBuildTask}"
36
22
}
37
23
]
38
24
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class NewEnvironmentVariableImpl implements NewEnvironmentVariable {
40
40
const environmentVariable = await this . defineEnvironmentVariable ( ) ;
41
41
if ( environmentVariable ) {
42
42
// update Devfile, show a popup with proposal to open the Devfile
43
- await this . saveDevfile . onDidDevfileUpdate ( `Environmane '${ environmentVariable . name } ' has been created successfully` ) ;
43
+ await this . saveDevfile . onDidDevfileUpdate ( `Environment variable '${ environmentVariable . name } ' has been created successfully` ) ;
44
44
return true ;
45
45
}
46
46
Original file line number Diff line number Diff line change @@ -17,6 +17,28 @@ import { initBindings } from './bindings';
17
17
import { InstallYaml } from './command/install-yaml' ;
18
18
19
19
export async function activate ( context : vscode . ExtensionContext ) : Promise < void > {
20
+ // Due to the bug in the upstream https://github.com/microsoft/vscode/issues/214787 it is not possible to show
21
+ // several sequential popups. To prevent popup disappear it needs to add a small delay between two popups.
22
+
23
+ // Keep the original functions
24
+ const _showQuickPick = vscode . window . showQuickPick ;
25
+ const _showInputBox = vscode . window . showInputBox ;
26
+
27
+ // Replace with functions with a small delay
28
+ Object . assign ( vscode . window , {
29
+ showQuickPick : async ( items , options , token ) => {
30
+ const result = await _showQuickPick ( items , options , token ) ;
31
+ await new Promise ( resolve => setTimeout ( resolve , 300 ) ) ;
32
+ return result ;
33
+ } ,
34
+
35
+ showInputBox : async ( options , token ) => {
36
+ const result = await _showInputBox ( options , token ) ;
37
+ await new Promise ( resolve => setTimeout ( resolve , 300 ) ) ;
38
+ return result ;
39
+ }
40
+ } ) ;
41
+
20
42
const container = initBindings ( ) ;
21
43
container . get ( DevfileExtensionImpl ) . start ( context ) ;
22
44
}
You can’t perform that action at this time.
0 commit comments