Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make remote tunnel command category consistent #174824

Merged
merged 1 commit into from Feb 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -40,7 +40,7 @@ import { ITunnelApplicationConfig } from 'vs/base/common/product';
import { isNumber, isObject, isString } from 'vs/base/common/types';

export const REMOTE_TUNNEL_CATEGORY: ILocalizedString = {
original: 'Remote Tunnels',
original: 'Remote-Tunnels',
value: localize('remoteTunnel.category', 'Remote Tunnels')
};

Expand Down Expand Up @@ -74,10 +74,11 @@ enum RemoteTunnelCommandIds {
learnMore = 'workbench.remoteTunnel.actions.learnMore',
}

// name shown in nofications
namespace RemoteTunnelCommandLabels {
export const turnOn = localize('remoteTunnel.actions.turnOn', 'Turn on Remote Tunnel Access...');
export const turnOff = localize('remoteTunnel.actions.turnOff', 'Turn off Remote Tunnel Access...');
export const showLog = localize('remoteTunnel.actions.showLog', 'Show Log');
export const showLog = localize('remoteTunnel.actions.showLog', 'Show Remote Tunnel Service Log');
export const configure = localize('remoteTunnel.actions.configure', 'Configure Machine Name...');
export const copyToClipboard = localize('remoteTunnel.actions.copyToClipboard', 'Copy Browser URI to Clipboard');
export const learnMore = localize('remoteTunnel.actions.learnMore', 'Get Started with VS Code Tunnels');
Expand Down Expand Up @@ -737,7 +738,7 @@ export class RemoteTunnelWorkbenchContribution extends Disposable implements IWo
} else {
quickPick.title = localize('manage.title.off', 'Remote Machine Access not enabled');
}
items.push({ id: RemoteTunnelCommandIds.showLog, label: RemoteTunnelCommandLabels.showLog });
items.push({ id: RemoteTunnelCommandIds.showLog, label: localize('manage.showLog', 'Show Log') });
items.push({ type: 'separator' });
items.push({ id: RemoteTunnelCommandIds.configure, label: localize('manage.machineName', 'Change Host Name'), description: this.connectionInfo?.hostName });
items.push({ id: RemoteTunnelCommandIds.turnOff, label: RemoteTunnelCommandLabels.turnOff, description: account ? `${account.label} (${account.description})` : undefined });
Expand Down