Skip to content

Commit 94d9c2d

Browse files
committed
Logs: Collect => Export
1 parent 6342116 commit 94d9c2d

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

extensions/gitpod/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"contributes": {
3535
"commands": [
3636
{
37-
"command": "gitpod.collectLogs",
37+
"command": "gitpod.exportLogs",
3838
"category": "Gitpod",
39-
"title": "Collect all logs"
39+
"title": "Export all logs"
4040
}
4141
]
4242
},

extensions/gitpod/src/collectLogs.ts renamed to extensions/gitpod/src/exportLogs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function traverseFolder(folderUri: vscode.Uri, files: IFile[], token: vsco
5555
}
5656
}
5757

58-
export async function collectLogs(context: vscode.ExtensionContext) {
58+
export async function exportLogs(context: vscode.ExtensionContext) {
5959
const saveUri = await vscode.window.showSaveDialog({
6060
title: 'Choose save location ...',
6161
defaultUri: vscode.Uri.file(path.posix.join(os.homedir(), `vscode-desktop-logs-${new Date().toISOString().replace(/-|:|\.\d+Z$/g, '')}.zip`)),

extensions/gitpod/src/extension.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import * as tmp from 'tmp';
1616
import * as path from 'path';
1717
import * as vscode from 'vscode';
1818
import { grpc } from '@improbable-eng/grpc-web';
19-
import { collectLogs } from './collectLogs';
19+
import { exportLogs } from './exportLogs';
2020

2121
interface SSHConnectionParams {
2222
workspaceId: string;
@@ -435,11 +435,11 @@ export async function activate(context: vscode.ExtensionContext) {
435435
}
436436
}));
437437

438-
context.subscriptions.push(vscode.commands.registerCommand('gitpod.collectLogs', async () => {
438+
context.subscriptions.push(vscode.commands.registerCommand('gitpod.exportLogs', async () => {
439439
try {
440-
await collectLogs(context);
440+
await exportLogs(context);
441441
} catch (e) {
442-
const outputMessage = `Error collecting logs: ${e}`;
442+
const outputMessage = `Error exporting logs: ${e}`;
443443
vscode.window.showErrorMessage(outputMessage);
444444
log(outputMessage);
445445
// logger.error(outputMessage);

src/vs/gitpod/browser/workbench/contrib/exportLogs.contribution.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { IBrowserWorkbenchEnvironmentService } from 'vs/workbench/services/envir
88
import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService';
99
import { IFileService } from 'vs/platform/files/common/files';
1010
import { Action2, MenuId, registerAction2 } from 'vs/platform/actions/common/actions';
11-
import { CATEGORIES } from 'vs/workbench/common/actions';
1211
import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';
1312
import { URI } from 'vs/base/common/uri';
1413
import * as resources from 'vs/base/common/resources';
@@ -40,7 +39,7 @@ registerAction2(class ExportLogsAction extends Action2 {
4039
super({
4140
id: 'gitpod.workbench.exportLogs',
4241
title: { original: 'Export all logs', value: 'Export all logs' },
43-
category: CATEGORIES.Developer,
42+
category: { original: 'Gitpod', value: 'Gitpod' },
4443
menu: {
4544
id: MenuId.CommandPalette
4645
}

0 commit comments

Comments
 (0)