mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
parent
f96b8d9003
commit
9e451acc86
|
@ -71,7 +71,7 @@ import { IEnvironmentVariableInfo } from 'vs/workbench/contrib/terminal/common/e
|
|||
import { getCommandHistory, getDirectoryHistory } from 'vs/workbench/contrib/terminal/common/history';
|
||||
import { DEFAULT_COMMANDS_TO_SKIP_SHELL, INavigationMode, ITerminalBackend, ITerminalProcessManager, ITerminalProfileResolverService, ProcessState, ShellIntegrationExitCode, TerminalCommandId, TERMINAL_CREATION_COMMANDS, TERMINAL_VIEW_ID } from 'vs/workbench/contrib/terminal/common/terminal';
|
||||
import { TerminalContextKeys } from 'vs/workbench/contrib/terminal/common/terminalContextKey';
|
||||
import { formatMessageForTerminal } from 'vs/workbench/contrib/terminal/common/terminalStrings';
|
||||
import { formatMessageForTerminal, terminalStrings } from 'vs/workbench/contrib/terminal/common/terminalStrings';
|
||||
import { IEditorService } from 'vs/workbench/services/editor/common/editorService';
|
||||
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
|
||||
import { IHistoryService } from 'vs/workbench/services/history/common/history';
|
||||
|
@ -823,7 +823,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
|||
commandMap.add(label);
|
||||
}
|
||||
items = items.reverse();
|
||||
items.unshift({ type: 'separator', label: 'current session' });
|
||||
items.unshift({ type: 'separator', label: terminalStrings.currentSessionCategory });
|
||||
}
|
||||
|
||||
// Gather previous session history
|
||||
|
@ -840,7 +840,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
|||
}
|
||||
if (previousSessionItems.length > 0) {
|
||||
items.push(
|
||||
{ type: 'separator', label: 'previous sessions' },
|
||||
{ type: 'separator', label: terminalStrings.previousSessionCategory },
|
||||
...previousSessionItems
|
||||
);
|
||||
}
|
||||
|
@ -851,7 +851,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
|||
items.push({ label });
|
||||
}
|
||||
items = items.reverse();
|
||||
items.unshift({ type: 'separator', label: 'current session' });
|
||||
items.unshift({ type: 'separator', label: terminalStrings.currentSessionCategory });
|
||||
}
|
||||
|
||||
// Gather previous session history
|
||||
|
@ -868,7 +868,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
|||
}
|
||||
if (previousSessionItems.length > 0) {
|
||||
items.push(
|
||||
{ type: 'separator', label: 'previous sessions' },
|
||||
{ type: 'separator', label: terminalStrings.previousSessionCategory },
|
||||
...previousSessionItems
|
||||
);
|
||||
}
|
||||
|
|
|
@ -19,6 +19,8 @@ export function formatMessageForTerminal(message: string, excludeLeadingNewLine:
|
|||
export const terminalStrings = {
|
||||
terminal: localize('terminal', "Terminal"),
|
||||
doNotShowAgain: localize('doNotShowAgain', 'Do Not Show Again'),
|
||||
currentSessionCategory: localize('currentSessionCategory', 'current session'),
|
||||
previousSessionCategory: localize('previousSessionCategory', 'previous session'),
|
||||
focus: {
|
||||
value: localize('workbench.action.terminal.focus', "Focus Terminal"),
|
||||
original: 'Focus Terminal'
|
||||
|
|
Loading…
Reference in a new issue