@@ -38,8 +38,10 @@ const findInFiles: WatermarkEntry = { text: localize('watermark.findInFiles', "F
38
38
const toggleTerminal : WatermarkEntry = { text : localize ( { key : 'watermark.toggleTerminal' , comment : [ 'toggle is a verb here' ] } , "Toggle Terminal" ) , id : 'workbench.action.terminal.toggleTerminal' , when : { web : ContextKeyExpr . equals ( 'terminalProcessSupported' , true ) } } ;
39
39
const startDebugging : WatermarkEntry = { text : localize ( 'watermark.startDebugging' , "Start Debugging" ) , id : 'workbench.action.debug.start' , when : { web : ContextKeyExpr . equals ( 'terminalProcessSupported' , true ) } } ;
40
40
const openSettings : WatermarkEntry = { text : localize ( 'watermark.openSettings' , "Open Settings" ) , id : 'workbench.action.openSettings' } ;
41
- const openChat : WatermarkEntry = { text : localize ( 'watermark.openChat' , "Open Chat" ) , id : 'workbench.action.chat.open' , when : { native : ContextKeyExpr . equals ( 'chatSetupInstalled' , true ) , web : ContextKeyExpr . equals ( 'chatSetupInstalled' , true ) } } ;
42
- const openCopilotEdits : WatermarkEntry = { text : localize ( 'watermark.openCopilotEdits' , "Open Copilot Edits" ) , id : 'workbench.action.chat.openEditSession' , when : { native : ContextKeyExpr . equals ( 'chatSetupInstalled' , true ) , web : ContextKeyExpr . equals ( 'chatSetupInstalled' , true ) } } ;
41
+
42
+ const showCopilot = ContextKeyExpr . or ( ContextKeyExpr . equals ( 'chatSetupHidden' , false ) , ContextKeyExpr . equals ( 'chatSetupInstalled' , true ) ) ;
43
+ const openChat : WatermarkEntry = { text : localize ( 'watermark.openChat' , "Open Chat" ) , id : 'workbench.action.chat.open' , when : { native : showCopilot , web : showCopilot } } ;
44
+ const openCopilotEdits : WatermarkEntry = { text : localize ( 'watermark.openCopilotEdits' , "Open Copilot Edits" ) , id : 'workbench.action.chat.openEditSession' , when : { native : showCopilot , web : showCopilot } } ;
43
45
44
46
const emptyWindowEntries : WatermarkEntry [ ] = coalesce ( [
45
47
showCommands ,
0 commit comments