Add command to open release notes to chat view (#234201)
* Add command to open release notes to chat view * Use MenuRegistry instead of registering a new action
This commit is contained in:
Родитель
d6c7380f01
Коммит
1dd8c77ac7
|
@ -10,6 +10,7 @@ import { fromNowByDay } from '../../../../../base/common/date.js';
|
|||
import { KeyCode, KeyMod } from '../../../../../base/common/keyCodes.js';
|
||||
import { DisposableStore } from '../../../../../base/common/lifecycle.js';
|
||||
import { ThemeIcon } from '../../../../../base/common/themables.js';
|
||||
import { URI } from '../../../../../base/common/uri.js';
|
||||
import { ICodeEditor } from '../../../../../editor/browser/editorBrowser.js';
|
||||
import { EditorAction2 } from '../../../../../editor/browser/editorExtensions.js';
|
||||
import { Position } from '../../../../../editor/common/core/position.js';
|
||||
|
@ -23,16 +24,19 @@ import { IsLinuxContext, IsWindowsContext } from '../../../../../platform/contex
|
|||
import { IInstantiationService, ServicesAccessor } from '../../../../../platform/instantiation/common/instantiation.js';
|
||||
import { KeybindingWeight } from '../../../../../platform/keybinding/common/keybindingsRegistry.js';
|
||||
import { IOpenerService } from '../../../../../platform/opener/common/opener.js';
|
||||
import product from '../../../../../platform/product/common/product.js';
|
||||
import { IQuickInputButton, IQuickInputService, IQuickPickItem, IQuickPickSeparator } from '../../../../../platform/quickinput/common/quickInput.js';
|
||||
import { ToggleTitleBarConfigAction } from '../../../../browser/parts/titlebar/titlebarActions.js';
|
||||
import { IWorkbenchContribution } from '../../../../common/contributions.js';
|
||||
import { IEditorGroupsService } from '../../../../services/editor/common/editorGroupsService.js';
|
||||
import { ACTIVE_GROUP, IEditorService } from '../../../../services/editor/common/editorService.js';
|
||||
import { IHostService } from '../../../../services/host/browser/host.js';
|
||||
import { IViewsService } from '../../../../services/views/common/viewsService.js';
|
||||
import { ChatAgentLocation, IChatAgentService } from '../../common/chatAgents.js';
|
||||
import { ChatContextKeys } from '../../common/chatContextKeys.js';
|
||||
import { extractAgentAndCommand } from '../../common/chatParserTypes.js';
|
||||
import { IChatDetail, IChatService } from '../../common/chatService.js';
|
||||
import { IChatVariablesService } from '../../common/chatVariables.js';
|
||||
import { IChatRequestViewModel, IChatResponseViewModel, isRequestVM } from '../../common/chatViewModel.js';
|
||||
import { IChatWidgetHistoryService } from '../../common/chatWidgetHistoryService.js';
|
||||
import { ChatViewId, IChatWidget, IChatWidgetService, showChatView } from '../chat.js';
|
||||
|
@ -41,10 +45,6 @@ import { ChatEditorInput } from '../chatEditorInput.js';
|
|||
import { ChatViewPane } from '../chatViewPane.js';
|
||||
import { convertBufferToScreenshotVariable } from '../contrib/screenshot.js';
|
||||
import { clearChatEditor } from './chatClear.js';
|
||||
import product from '../../../../../platform/product/common/product.js';
|
||||
import { URI } from '../../../../../base/common/uri.js';
|
||||
import { IHostService } from '../../../../services/host/browser/host.js';
|
||||
import { IChatVariablesService } from '../../common/chatVariables.js';
|
||||
|
||||
export const CHAT_CATEGORY = localize2('chat.category', 'Chat');
|
||||
export const CHAT_OPEN_ACTION_ID = 'workbench.action.chat.open';
|
||||
|
@ -329,6 +329,14 @@ class ChatAddAction extends Action2 {
|
|||
}
|
||||
}
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
||||
command: {
|
||||
id: 'update.showCurrentReleaseNotes',
|
||||
title: localize2('chat.releaseNotes.label', "Explore New Features"),
|
||||
},
|
||||
when: ContextKeyExpr.equals('view', ChatViewId)
|
||||
});
|
||||
|
||||
export function registerChatActions() {
|
||||
registerAction2(OpenChatGlobalAction);
|
||||
registerAction2(ChatHistoryAction);
|
||||
|
|
Загрузка…
Ссылка в новой задаче