Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/extension/onboardDebug/node/copilotDebugWorker/shared.ts
13405 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 type { DebugConfiguration } from 'vscode';
7
import { URI } from '../../../../util/vs/base/common/uri';
8
9
export const enum StartResultKind {
10
NoConfig,
11
Ok,
12
NeedExtension,
13
Cancelled,
14
}
15
16
export interface INoConfigStartResult {
17
kind: StartResultKind.NoConfig;
18
text: string;
19
}
20
21
export interface INeedExtension {
22
kind: StartResultKind.NeedExtension;
23
debugType: string;
24
}
25
26
export interface IStartResultOk {
27
kind: StartResultKind.Ok;
28
folder: URI | undefined;
29
config: DebugConfiguration;
30
}
31
32
export interface IStartCancelled {
33
kind: StartResultKind.Cancelled;
34
}
35
36
export type StartResult = INoConfigStartResult | IStartResultOk | INeedExtension | IStartCancelled;
37
38
export interface IStartOptions {
39
cwd: string;
40
args: readonly string[];
41
forceNew: boolean;
42
printOnly: boolean;
43
save: boolean;
44
once: boolean;
45
}
46
47