Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/workbench/contrib/chat/common/chatActions.ts
3296 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { MarshalledId } from '../../../../base/common/marshallingIds.js';
7
8
export interface IChatViewTitleActionContext {
9
$mid: MarshalledId.ChatViewContext;
10
sessionId: string;
11
}
12
13
export function isChatViewTitleActionContext(obj: unknown): obj is IChatViewTitleActionContext {
14
return !!obj &&
15
typeof (obj as IChatViewTitleActionContext).sessionId === 'string'
16
&& (obj as IChatViewTitleActionContext).$mid === MarshalledId.ChatViewContext;
17
}
18
19