Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/util/common/debugValueEditorGlobals.ts
13397 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
export interface IDebugValueEditorGlobals {
7
$$debugValueEditor_run: (args: any) => void;
8
$$debugValueEditor_properties: readonly any[];
9
10
$$debugValueEditor_debugChannels: Record</* name of the debug channel */ string, DebugChannel>;
11
12
$$debugValueEditor_refresh?: (body: string) => void;
13
}
14
15
type DebugChannel = (host: IHost) => IRequestHandler;
16
17
interface IHost {
18
sendNotification: (data: unknown) => void;
19
}
20
21
interface IRequestHandler {
22
handleRequest: (data: unknown) => unknown;
23
}
24
25
export interface IPlaygroundRunnerGlobals {
26
$$playgroundRunner_data: {
27
currentPath: string[];
28
};
29
}
30
31