Skip to content

Commit c53ef1f

Browse files
filiptronicekjeanp413
authored andcommitted
[gp] Remove Discourse links from context menus
1 parent ea5ec2a commit c53ef1f

File tree

6 files changed

+2
-55
lines changed

6 files changed

+2
-55
lines changed

extensions/gitpod-remote/package.json

-10
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@
7373
"title": "%openDiscord%",
7474
"enablement": "gitpod.inWorkspace == true"
7575
},
76-
{
77-
"command": "gitpod.open.discourse",
78-
"title": "%openDiscourse%",
79-
"enablement": "gitpod.inWorkspace == true"
80-
},
8176
{
8277
"command": "gitpod.reportIssue",
8378
"title": "%reportIssue%",
@@ -166,11 +161,6 @@
166161
"group": "remote_00_gitpod_navigation@80",
167162
"when": "gitpod.inWorkspace == true"
168163
},
169-
{
170-
"command": "gitpod.open.discourse",
171-
"group": "remote_00_gitpod_navigation@81",
172-
"when": "gitpod.inWorkspace == true"
173-
},
174164
{
175165
"command": "gitpod.reportIssue",
176166
"group": "remote_00_gitpod_navigation@90",

extensions/gitpod-remote/package.nls.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"openContext": "Gitpod: Open Context",
88
"openDocumentation": "Gitpod: Documentation",
99
"openDiscord": "Gitpod: Open Community Chat",
10-
"openDiscourse": "Gitpod: Open Community Forum",
1110
"openTwitter": "Gitpod: Follow us on Twitter",
1211
"reportIssue": "Gitpod: Report Issue",
1312
"stopWorkspace": "Gitpod: Stop Workspace",
@@ -19,4 +18,4 @@
1918
"openInStable": "Gitpod: Open in VS Code",
2019
"openInInsiders": "Gitpod: Open in VS Code Insiders",
2120
"openInBrowser": "Gitpod: Open in Browser"
22-
}
21+
}

extensions/gitpod-shared/scripts/inflate.js

-11
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const nls = {
1313
'openContext': 'Gitpod: Open Context',
1414
'openDocumentation': 'Gitpod: Documentation',
1515
'openDiscord': 'Gitpod: Open Community Chat',
16-
'openDiscourse': 'Gitpod: Open Community Forum',
1716
'openTwitter': 'Gitpod: Follow us on Twitter',
1817
'reportIssue': 'Gitpod: Report Issue',
1918
'stopWorkspace': 'Gitpod: Stop Workspace',
@@ -68,11 +67,6 @@ const commands = [
6867
'title': '%openDiscord%',
6968
'enablement': 'gitpod.inWorkspace == true'
7069
},
71-
{
72-
'command': 'gitpod.open.discourse',
73-
'title': '%openDiscourse%',
74-
'enablement': 'gitpod.inWorkspace == true'
75-
},
7670
{
7771
'command': 'gitpod.reportIssue',
7872
'title': '%reportIssue%',
@@ -161,11 +155,6 @@ const remoteMenus = [
161155
'group': 'remote_00_gitpod_navigation@80',
162156
'when': 'gitpod.inWorkspace == true'
163157
},
164-
{
165-
'command': 'gitpod.open.discourse',
166-
'group': 'remote_00_gitpod_navigation@81',
167-
'when': 'gitpod.inWorkspace == true'
168-
},
169158
{
170159
'command': 'gitpod.reportIssue',
171160
'group': 'remote_00_gitpod_navigation@90',

extensions/gitpod-shared/src/features.ts

-16
Original file line numberDiff line numberDiff line change
@@ -386,14 +386,6 @@ export async function registerWorkspaceCommands(context: GitpodExtensionContext)
386386
});
387387
return vscode.env.openExternal(vscode.Uri.parse(url));
388388
}));
389-
context.subscriptions.push(vscode.commands.registerCommand('gitpod.open.discourse', () => {
390-
const url = 'https://community.gitpod.io';
391-
context.fireAnalyticsEvent({
392-
eventName: 'vscode_execute_command_gitpod_open_link',
393-
properties: { url }
394-
});
395-
return vscode.env.openExternal(vscode.Uri.parse(url));
396-
}));
397389
context.subscriptions.push(vscode.commands.registerCommand('gitpod.reportIssue', () => {
398390
const url = 'https://github.com/gitpod-io/gitpod/issues/new/choose';
399391
context.fireAnalyticsEvent({
@@ -443,14 +435,6 @@ export async function registerWorkspaceCommands(context: GitpodExtensionContext)
443435
}));
444436
}
445437

446-
const communityStatusBarItem = vscode.window.createStatusBarItem('gitpod.community', vscode.StatusBarAlignment.Right, -100);
447-
communityStatusBarItem.name = 'Chat with us on Discourse';
448-
context.subscriptions.push(communityStatusBarItem);
449-
communityStatusBarItem.text = '$(comment-discussion)';
450-
communityStatusBarItem.tooltip = 'Chat with us on Discourse';
451-
communityStatusBarItem.command = 'gitpod.open.discourse';
452-
communityStatusBarItem.show();
453-
454438
const workspaceOwned = await context.workspaceOwned;
455439
if (!workspaceOwned) {
456440
return;

extensions/gitpod-web/package.json

-14
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@
7676
"title": "%openDiscord%",
7777
"enablement": "gitpod.inWorkspace == true"
7878
},
79-
{
80-
"command": "gitpod.open.discourse",
81-
"title": "%openDiscourse%",
82-
"enablement": "gitpod.inWorkspace == true"
83-
},
8479
{
8580
"command": "gitpod.reportIssue",
8681
"title": "%reportIssue%",
@@ -246,10 +241,6 @@
246241
"command": "gitpod.open.discord",
247242
"group": "z_about2@20"
248243
},
249-
{
250-
"command": "gitpod.open.discourse",
251-
"group": "z_about2@30"
252-
},
253244
{
254245
"command": "gitpod.reportIssue",
255246
"group": "z_about2@40"
@@ -373,11 +364,6 @@
373364
"group": "remote_00_gitpod_navigation@80",
374365
"when": "gitpod.inWorkspace == true"
375366
},
376-
{
377-
"command": "gitpod.open.discourse",
378-
"group": "remote_00_gitpod_navigation@81",
379-
"when": "gitpod.inWorkspace == true"
380-
},
381367
{
382368
"command": "gitpod.reportIssue",
383369
"group": "remote_00_gitpod_navigation@90",

extensions/gitpod-web/package.nls.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"openContext": "Gitpod: Open Context",
1818
"openDocumentation": "Gitpod: Documentation",
1919
"openDiscord": "Gitpod: Open Community Chat",
20-
"openDiscourse": "Gitpod: Open Community Forum",
2120
"openTwitter": "Gitpod: Follow us on Twitter",
2221
"reportIssue": "Gitpod: Report Issue",
2322
"stopWorkspace": "Gitpod: Stop Workspace",
@@ -29,4 +28,4 @@
2928
"openInStable": "Gitpod: Open in VS Code",
3029
"openInInsiders": "Gitpod: Open in VS Code Insiders",
3130
"openInBrowser": "Gitpod: Open in Browser"
32-
}
31+
}

0 commit comments

Comments
 (0)