Skip to content

Commit 993213d

Browse files
committed
Hide gitpod documentation menu entry
1 parent 127d868 commit 993213d

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

gitpod-shared/src/experiments.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
import * as vscode from 'vscode';
66
import * as configcat from 'configcat-node';
77
import * as configcatcommon from 'configcat-common';
8-
import { ILogService} from './logService';
8+
import { ILogService } from './logService';
99
import { URL } from 'url';
1010
import { Team, User } from '@gitpod/gitpod-protocol';
1111

1212
const experimentsSection = 'gitpod.experiments';
1313

14-
export type EXPERIMENTAL_SETTINGS = 'gitpod.experiments.rebuildHints';
14+
export type EXPERIMENTAL_SETTINGS = |
15+
'gitpod.experiments.rebuildHints' |
16+
'dataops';
1517

1618
export class ExperimentalSettings {
1719
private configcatClient: configcatcommon.IConfigCatClient;

gitpod-web/package.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "%displayName%",
44
"description": "%description%",
55
"publisher": "gitpod",
6-
"version": "0.0.5",
6+
"version": "0.0.6",
77
"license": "MIT",
88
"icon": "resources/gitpod.png",
99
"repository": {
@@ -198,7 +198,8 @@
198198
},
199199
{
200200
"command": "gitpod.open.documentation",
201-
"group": "gitpod@30"
201+
"group": "gitpod@30",
202+
"when": "gitpod.dataops !== true"
202203
},
203204
{
204205
"command": "gitpod.takeSnapshot",
@@ -351,6 +352,10 @@
351352
{
352353
"command": "gitpod.gitpodyml.dockerfile.editorTitle.run",
353354
"when": "false"
355+
},
356+
{
357+
"command": "gitpod.open.documentation",
358+
"when": "gitpod.dataops !== true"
354359
}
355360
],
356361
"statusBar/remoteIndicator": [
@@ -382,7 +387,7 @@
382387
{
383388
"command": "gitpod.open.documentation",
384389
"group": "remote_00_gitpod_navigation@60",
385-
"when": "gitpod.inWorkspace == true"
390+
"when": "gitpod.inWorkspace == true && gitpod.dataops !== true"
386391
},
387392
{
388393
"command": "gitpod.ExtendTimeout",

gitpod-web/src/extension.ts

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export async function activate(context: vscode.ExtensionContext) {
4141
registerExtensionManagement(gitpodContext);
4242
registerWelcomeWalkthroughContribution(gitpodContext);
4343

44+
gitpodContext.experiments.get('dataops', false)
45+
.then(dataops => vscode.commands.executeCommand('setContext', 'gitpod.dataops', !!dataops));
46+
4447
await gitpodContext.active;
4548
}
4649

0 commit comments

Comments
 (0)