File tree 3 files changed +15
-5
lines changed
3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 5
5
import * as vscode from 'vscode' ;
6
6
import * as configcat from 'configcat-node' ;
7
7
import * as configcatcommon from 'configcat-common' ;
8
- import { ILogService } from './logService' ;
8
+ import { ILogService } from './logService' ;
9
9
import { URL } from 'url' ;
10
10
import { Team , User } from '@gitpod/gitpod-protocol' ;
11
11
12
12
const experimentsSection = 'gitpod.experiments' ;
13
13
14
- export type EXPERIMENTAL_SETTINGS = 'gitpod.experiments.rebuildHints' ;
14
+ export type EXPERIMENTAL_SETTINGS = |
15
+ 'gitpod.experiments.rebuildHints' |
16
+ 'dataops' ;
15
17
16
18
export class ExperimentalSettings {
17
19
private configcatClient : configcatcommon . IConfigCatClient ;
Original file line number Diff line number Diff line change 3
3
"displayName" : " %displayName%" ,
4
4
"description" : " %description%" ,
5
5
"publisher" : " gitpod" ,
6
- "version" : " 0.0.5 " ,
6
+ "version" : " 0.0.6 " ,
7
7
"license" : " MIT" ,
8
8
"icon" : " resources/gitpod.png" ,
9
9
"repository" : {
198
198
},
199
199
{
200
200
"command" : " gitpod.open.documentation" ,
201
- "group" : " gitpod@30"
201
+ "group" : " gitpod@30" ,
202
+ "when" : " gitpod.dataops !== true"
202
203
},
203
204
{
204
205
"command" : " gitpod.takeSnapshot" ,
351
352
{
352
353
"command" : " gitpod.gitpodyml.dockerfile.editorTitle.run" ,
353
354
"when" : " false"
355
+ },
356
+ {
357
+ "command" : " gitpod.open.documentation" ,
358
+ "when" : " gitpod.dataops !== true"
354
359
}
355
360
],
356
361
"statusBar/remoteIndicator" : [
382
387
{
383
388
"command" : " gitpod.open.documentation" ,
384
389
"group" : " remote_00_gitpod_navigation@60" ,
385
- "when" : " gitpod.inWorkspace == true"
390
+ "when" : " gitpod.inWorkspace == true && gitpod.dataops !== true "
386
391
},
387
392
{
388
393
"command" : " gitpod.ExtendTimeout" ,
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ export async function activate(context: vscode.ExtensionContext) {
41
41
registerExtensionManagement ( gitpodContext ) ;
42
42
registerWelcomeWalkthroughContribution ( gitpodContext ) ;
43
43
44
+ gitpodContext . experiments . get ( 'dataops' , false )
45
+ . then ( dataops => vscode . commands . executeCommand ( 'setContext' , 'gitpod.dataops' , ! ! dataops ) ) ;
46
+
44
47
await gitpodContext . active ;
45
48
}
46
49
You can’t perform that action at this time.
0 commit comments