Skip to content

Commit 3f42e69

Browse files
authored
add tip for default permission level (#310363)
1 parent 9a19d73 commit 3f42e69

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/vs/workbench/contrib/chat/browser/chatTipCatalog.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,4 +450,24 @@ export const TIP_CATALOG: readonly ITipDefinition[] = [
450450
),
451451
excludeWhenCommandsExecuted: ['workbench.action.chat.openNewChatSessionInPlace.copilotcli'],
452452
},
453+
{
454+
id: 'tip.defaultPermissions',
455+
tier: ChatTipTier.Qol,
456+
buildMessage() {
457+
return new MarkdownString(
458+
localize(
459+
'tip.defaultPermissions',
460+
"Configure [{0}](command:workbench.action.openSettings?%5B%22{1}%22%5D \"Open Settings\") to start new sessions in Bypass Approvals or Autopilot mode.",
461+
'default permissions',
462+
ChatConfiguration.DefaultPermissionLevel
463+
)
464+
);
465+
},
466+
when: ContextKeyExpr.or(
467+
ChatContextKeys.chatModeKind.isEqualTo(ChatModeKind.Agent),
468+
ChatContextKeys.chatModeKind.isEqualTo(ChatModeKind.Edit),
469+
),
470+
excludeWhenSettingsChanged: [ChatConfiguration.DefaultPermissionLevel],
471+
dismissWhenCommandsClicked: ['workbench.action.openSettings'],
472+
},
453473
];

0 commit comments

Comments
 (0)