Skip to content

Commit 787554d

Browse files
committed
improve watermark further
1 parent 92c2c39 commit 787554d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/vs/workbench/contrib/watermark/browser/watermark.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import { IThemeService } from 'vs/platform/theme/common/themeService';
3131
import { attachKeybindingLabelStyler } from 'vs/platform/theme/common/styler';
3232
import { ContextKeyExpression, IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
3333
import { TerminalContextKeys } from 'vs/workbench/contrib/terminal/common/terminalContextKey';
34-
import { CONTEXT_DEBUGGERS_AVAILABLE } from 'vs/workbench/contrib/debug/common/debug';
3534

3635
const $ = dom.$;
3736

@@ -50,9 +49,11 @@ const openFileOrFolderMacOnly: WatermarkEntry = { text: nls.localize('watermark.
5049
const openRecent: WatermarkEntry = { text: nls.localize('watermark.openRecent', "Open Recent"), id: 'workbench.action.openRecent' };
5150
const newUntitledFile: WatermarkEntry = { text: nls.localize('watermark.newUntitledFile', "New Untitled File"), id: NEW_UNTITLED_FILE_COMMAND_ID };
5251
const newUntitledFileMacOnly: WatermarkEntry = Object.assign({ mac: true }, newUntitledFile);
53-
const toggleTerminal: WatermarkEntry = { text: nls.localize({ key: 'watermark.toggleTerminal', comment: ['toggle is a verb here'] }, "Toggle Terminal"), id: TerminalCommandId.Toggle, when: TerminalContextKeys.processSupported };
5452
const findInFiles: WatermarkEntry = { text: nls.localize('watermark.findInFiles', "Find in Files"), id: FindInFilesActionId };
55-
const startDebugging: WatermarkEntry = { text: nls.localize('watermark.startDebugging', "Start Debugging"), id: DEBUG_START_COMMAND_ID, when: CONTEXT_DEBUGGERS_AVAILABLE };
53+
const toggleTerminal: WatermarkEntry = { text: nls.localize({ key: 'watermark.toggleTerminal', comment: ['toggle is a verb here'] }, "Toggle Terminal"), id: TerminalCommandId.Toggle, when: TerminalContextKeys.processSupported };
54+
const startDebugging: WatermarkEntry = { text: nls.localize('watermark.startDebugging', "Start Debugging"), id: DEBUG_START_COMMAND_ID, when: TerminalContextKeys.processSupported };
55+
const toggleFullscreen: WatermarkEntry = { text: nls.localize({ key: 'watermark.toggleFullscreen', comment: ['toggle is a verb here'] }, "Toggle Full Screen"), id: 'workbench.action.toggleFullScreen', when: TerminalContextKeys.processSupported.toNegated() };
56+
const showSettings: WatermarkEntry = { text: nls.localize('watermark.showSettings', "Show Settings"), id: 'workbench.action.openSettings', when: TerminalContextKeys.processSupported.toNegated() };
5657

5758
const noFolderEntries = [
5859
showCommands,
@@ -68,7 +69,9 @@ const folderEntries = [
6869
quickAccess,
6970
findInFiles,
7071
startDebugging,
71-
toggleTerminal
72+
toggleTerminal,
73+
toggleFullscreen,
74+
showSettings
7275
];
7376

7477
const WORKBENCH_TIPS_ENABLED_KEY = 'workbench.tips.enabled';

0 commit comments

Comments
 (0)