Path: blob/main/src/vs/workbench/contrib/chat/common/actions/chatActions.ts
5310 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { MarshalledId } from '../../../../../base/common/marshallingIds.js';6import { URI } from '../../../../../base/common/uri.js';78export interface IChatViewTitleActionContext {9readonly $mid: MarshalledId.ChatViewContext;10readonly sessionResource: URI;11}1213export function isChatViewTitleActionContext(obj: unknown): obj is IChatViewTitleActionContext {14return !!obj &&15URI.isUri((obj as IChatViewTitleActionContext).sessionResource)16&& (obj as IChatViewTitleActionContext).$mid === MarshalledId.ChatViewContext;17}181920