Skip to content

Commit c0f2791

Browse files
bpaserosbatten
andauthored
show the command center chat icon in the text (microsoft#232210) (microsoft#232233)
Co-authored-by: SteVen Batten <[email protected]>
1 parent 957cb94 commit c0f2791

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/vs/workbench/browser/parts/views/media/views.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@
124124
margin-inline-end: 0px;
125125
}
126126

127+
.monaco-workbench .pane > .pane-body .welcome-view-content > p .codicon[class*='codicon-'] {
128+
font-size: 13px;
129+
line-height: 1.4em;
130+
vertical-align: bottom;
131+
}
132+
127133
.customview-tree .monaco-list-row .monaco-tl-contents.align-icon-with-twisty::before {
128134
display: none;
129135
}

src/vs/workbench/browser/parts/views/viewPane.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import { IHoverService } from '../../../../platform/hover/browser/hover.js';
5454
import { IListStyles } from '../../../../base/browser/ui/list/listWidget.js';
5555
import { PANEL_BACKGROUND, PANEL_SECTION_DRAG_AND_DROP_BACKGROUND, PANEL_STICKY_SCROLL_BACKGROUND, PANEL_STICKY_SCROLL_BORDER, PANEL_STICKY_SCROLL_SHADOW, SIDE_BAR_BACKGROUND, SIDE_BAR_DRAG_AND_DROP_BACKGROUND, SIDE_BAR_STICKY_SCROLL_BACKGROUND, SIDE_BAR_STICKY_SCROLL_BORDER, SIDE_BAR_STICKY_SCROLL_SHADOW } from '../../../common/theme.js';
5656
import { IAccessibleViewInformationService } from '../../../services/accessibility/common/accessibleViewInformationService.js';
57+
import { renderLabelWithIcons } from '../../../../base/browser/ui/iconLabel/iconLabels.js';
5758

5859
export enum ViewPaneShowActions {
5960
/** Show the actions when the view is hovered. This is the default behavior. */
@@ -274,7 +275,7 @@ class ViewWelcomeController {
274275

275276
for (const node of linkedText.nodes) {
276277
if (typeof node === 'string') {
277-
append(p, document.createTextNode(node));
278+
append(p, ...renderLabelWithIcons(node));
278279
} else {
279280
const link = this.renderDisposables.add(this.instantiationService.createInstance(Link, p, node, {}));
280281

src/vs/workbench/contrib/chat/browser/chatMovedView.contribution.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,12 @@ export class MoveChatViewContribution implements IWorkbenchContribution {
208208
localize('chatMovedMainMessage1Right', "Chat has been moved to the Secondary Side Bar on the right for a more integrated AI experience in your editor.");
209209

210210
const chatViewKeybinding = this.keybindingService.lookupKeybinding(CHAT_SIDEBAR_PANEL_ID)?.getLabel();
211+
const copilotIcon = `$(${this.productService.defaultChatAgent?.icon ?? 'comment-discussion'})`;
211212
let quicklyAccessMessage = undefined;
212213
if (this.hasCommandCenterChat() && chatViewKeybinding) {
213-
quicklyAccessMessage = localize('chatMovedCommandCenterAndKeybind', "You can quickly access Chat via the new Copilot icon in the editor title bar or with the keyboard shortcut {0}.", chatViewKeybinding);
214+
quicklyAccessMessage = localize('chatMovedCommandCenterAndKeybind', "You can quickly access Chat via the new Copilot icon ({0}) in the editor title bar or with the keyboard shortcut {1}.", copilotIcon, chatViewKeybinding);
214215
} else if (this.hasCommandCenterChat()) {
215-
quicklyAccessMessage = localize('chatMovedCommandCenter', "You can quickly access Chat via the new Copilot icon in the editor title bar.");
216+
quicklyAccessMessage = localize('chatMovedCommandCenter', "You can quickly access Chat via the new Copilot icon ({0}) in the editor title bar.", copilotIcon);
216217
} else if (chatViewKeybinding) {
217218
quicklyAccessMessage = localize('chatMovedKeybind', "You can quickly access Chat with the keyboard shortcut {0}.", chatViewKeybinding);
218219
}

0 commit comments

Comments
 (0)