@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/empty.js +1 -0
- package/package.json +50 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +159 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +1318 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +172 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +482 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +86 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +377 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +70 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +456 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +276 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +318 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +59 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.d.ts +69 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +318 -0
package/empty.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export {}
|
package/package.json
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"name": "@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common",
|
3
|
+
"version": "20.0.0",
|
4
|
+
"private": false,
|
5
|
+
"description": "VSCode public API plugged on the monaco editor - common package (chat, interactive, notebook)",
|
6
|
+
"keywords": [],
|
7
|
+
"author": {
|
8
|
+
"name": "CodinGame",
|
9
|
+
"url": "http://www.codingame.com"
|
10
|
+
},
|
11
|
+
"license": "MIT",
|
12
|
+
"repository": {
|
13
|
+
"type": "git",
|
14
|
+
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
15
|
+
},
|
16
|
+
"type": "module",
|
17
|
+
"dependencies": {
|
18
|
+
"@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "20.0.0",
|
19
|
+
"@codingame/monaco-vscode-6db1b967-5327-5c5c-8c17-bd92774c0fb2-common": "20.0.0",
|
20
|
+
"@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common": "20.0.0",
|
21
|
+
"@codingame/monaco-vscode-api": "20.0.0",
|
22
|
+
"@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common": "20.0.0",
|
23
|
+
"@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common": "20.0.0",
|
24
|
+
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "20.0.0",
|
25
|
+
"@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common": "20.0.0"
|
26
|
+
},
|
27
|
+
"exports": {
|
28
|
+
".": {
|
29
|
+
"default": "./empty.js"
|
30
|
+
},
|
31
|
+
"./vscode/*.css": {
|
32
|
+
"default": "./vscode/src/*.css"
|
33
|
+
},
|
34
|
+
"./vscode/*": {
|
35
|
+
"types": "./vscode/src/*.d.ts",
|
36
|
+
"default": "./vscode/src/*.js"
|
37
|
+
},
|
38
|
+
"./*": {
|
39
|
+
"types": "./*.d.ts",
|
40
|
+
"default": "./*.js"
|
41
|
+
}
|
42
|
+
},
|
43
|
+
"typesVersions": {
|
44
|
+
"*": {
|
45
|
+
"vscode/*": [
|
46
|
+
"./vscode/src/*.d.ts"
|
47
|
+
]
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,159 @@
|
|
1
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
2
|
+
import { Emitter } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
3
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
4
|
+
import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
|
5
|
+
import { ICodeEditorService } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService.service";
|
6
|
+
import { IPosition, Position } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/position";
|
7
|
+
import { IRange } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range";
|
8
|
+
import { ISelection } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/selection";
|
9
|
+
import { IEditorContribution } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon";
|
10
|
+
import { TextEdit } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages";
|
11
|
+
import { IEditorWorkerService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker.service";
|
12
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
13
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
14
|
+
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
15
|
+
import { IInstantiationService, ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
16
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
17
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
18
|
+
import { IChatRequestVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatVariableEntries";
|
19
|
+
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
20
|
+
import { INotebookEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
21
|
+
import { HunkInformation, Session } from "./inlineChatSession.js";
|
22
|
+
import { IInlineChatSessionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service";
|
23
|
+
import { EditorBasedInlineChatWidget } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatWidget";
|
24
|
+
import { ISharedWebContentExtractorService } from "@codingame/monaco-vscode-api/vscode/vs/platform/webContentExtractor/common/webContentExtractor.service";
|
25
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
26
|
+
import { IChatAttachmentResolveService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service";
|
27
|
+
import { ICellEditOperation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
28
|
+
export declare enum State {
|
29
|
+
CREATE_SESSION = "CREATE_SESSION",
|
30
|
+
INIT_UI = "INIT_UI",
|
31
|
+
WAIT_FOR_INPUT = "WAIT_FOR_INPUT",
|
32
|
+
SHOW_REQUEST = "SHOW_REQUEST",
|
33
|
+
PAUSE = "PAUSE",
|
34
|
+
CANCEL = "CANCEL",
|
35
|
+
ACCEPT = "DONE"
|
36
|
+
}
|
37
|
+
export declare abstract class InlineChatRunOptions {
|
38
|
+
initialSelection?: ISelection;
|
39
|
+
initialRange?: IRange;
|
40
|
+
message?: string;
|
41
|
+
attachments?: URI[];
|
42
|
+
autoSend?: boolean;
|
43
|
+
existingSession?: Session;
|
44
|
+
position?: IPosition;
|
45
|
+
static isInlineChatRunOptions(options: any): options is InlineChatRunOptions;
|
46
|
+
}
|
47
|
+
export declare class InlineChatController implements IEditorContribution {
|
48
|
+
static ID: string;
|
49
|
+
static get(editor: ICodeEditor): InlineChatController | null;
|
50
|
+
private readonly _delegate;
|
51
|
+
constructor(editor: ICodeEditor, configurationService: IConfigurationService);
|
52
|
+
dispose(): void;
|
53
|
+
get isActive(): boolean;
|
54
|
+
run(arg?: InlineChatRunOptions): Promise<boolean>;
|
55
|
+
focus(): void;
|
56
|
+
get widget(): EditorBasedInlineChatWidget;
|
57
|
+
getWidgetPosition(): Position | undefined;
|
58
|
+
acceptSession(): void;
|
59
|
+
}
|
60
|
+
export declare class InlineChatController1 implements IEditorContribution {
|
61
|
+
private readonly _editor;
|
62
|
+
private readonly _instaService;
|
63
|
+
private readonly _inlineChatSessionService;
|
64
|
+
private readonly _editorWorkerService;
|
65
|
+
private readonly _logService;
|
66
|
+
private readonly _configurationService;
|
67
|
+
private readonly _dialogService;
|
68
|
+
private readonly _chatService;
|
69
|
+
private readonly _editorService;
|
70
|
+
private readonly _webContentExtractorService;
|
71
|
+
private readonly _fileService;
|
72
|
+
private readonly _chatAttachmentResolveService;
|
73
|
+
static get(editor: ICodeEditor): InlineChatController1 | null;
|
74
|
+
private _isDisposed;
|
75
|
+
private readonly _store;
|
76
|
+
private readonly _ui;
|
77
|
+
private readonly _ctxVisible;
|
78
|
+
private readonly _ctxEditing;
|
79
|
+
private readonly _ctxResponseType;
|
80
|
+
private readonly _ctxRequestInProgress;
|
81
|
+
private readonly _ctxResponse;
|
82
|
+
private readonly _messages;
|
83
|
+
protected readonly _onDidEnterState: Emitter<State>;
|
84
|
+
get chatWidget(): import("@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/chatWidget").ChatWidget;
|
85
|
+
private readonly _sessionStore;
|
86
|
+
private readonly _stashedSession;
|
87
|
+
private _session?;
|
88
|
+
private _strategy?;
|
89
|
+
constructor(_editor: ICodeEditor, _instaService: IInstantiationService, _inlineChatSessionService: IInlineChatSessionService, _editorWorkerService: IEditorWorkerService, _logService: ILogService, _configurationService: IConfigurationService, _dialogService: IDialogService, contextKeyService: IContextKeyService, _chatService: IChatService, _editorService: IEditorService, notebookEditorService: INotebookEditorService, _webContentExtractorService: ISharedWebContentExtractorService, _fileService: IFileService, _chatAttachmentResolveService: IChatAttachmentResolveService);
|
90
|
+
dispose(): void;
|
91
|
+
private _log;
|
92
|
+
get widget(): EditorBasedInlineChatWidget;
|
93
|
+
getId(): string;
|
94
|
+
getWidgetPosition(): Position | undefined;
|
95
|
+
private _currentRun?;
|
96
|
+
run(options?: InlineChatRunOptions | undefined): Promise<boolean>;
|
97
|
+
protected _nextState(state: State, options: InlineChatRunOptions): Promise<void>;
|
98
|
+
private [State.CREATE_SESSION];
|
99
|
+
private [State.INIT_UI];
|
100
|
+
private [State.WAIT_FOR_INPUT];
|
101
|
+
private [State.SHOW_REQUEST];
|
102
|
+
private [State.PAUSE];
|
103
|
+
private [State.ACCEPT];
|
104
|
+
private [State.CANCEL];
|
105
|
+
private _showWidget;
|
106
|
+
private _resetWidget;
|
107
|
+
private _updateCtxResponseType;
|
108
|
+
private _createChatTextEditGroupState;
|
109
|
+
private _makeChanges;
|
110
|
+
private _updatePlaceholder;
|
111
|
+
private _updateInput;
|
112
|
+
arrowOut(up: boolean): void;
|
113
|
+
focus(): void;
|
114
|
+
viewInChat(): Promise<void>;
|
115
|
+
acceptSession(): void;
|
116
|
+
acceptHunk(hunkInfo?: HunkInformation): void | undefined;
|
117
|
+
discardHunk(hunkInfo?: HunkInformation): void | undefined;
|
118
|
+
toggleDiff(hunkInfo?: HunkInformation): void | undefined;
|
119
|
+
moveHunk(next: boolean): void;
|
120
|
+
cancelSession(): Promise<void>;
|
121
|
+
reportIssue(): void;
|
122
|
+
unstashLastSession(): Session | undefined;
|
123
|
+
joinCurrentRun(): Promise<void> | undefined;
|
124
|
+
get isActive(): boolean;
|
125
|
+
createImageAttachment(attachment: URI): Promise<IChatRequestVariableEntry | undefined>;
|
126
|
+
}
|
127
|
+
export declare class InlineChatController2 implements IEditorContribution {
|
128
|
+
private readonly _editor;
|
129
|
+
private readonly _instaService;
|
130
|
+
private readonly _notebookEditorService;
|
131
|
+
private readonly _inlineChatSessions;
|
132
|
+
private readonly _webContentExtractorService;
|
133
|
+
private readonly _fileService;
|
134
|
+
private readonly _chatAttachmentResolveService;
|
135
|
+
private readonly _editorService;
|
136
|
+
static readonly ID = "editor.contrib.inlineChatController2";
|
137
|
+
static get(editor: ICodeEditor): InlineChatController2 | undefined;
|
138
|
+
private readonly _store;
|
139
|
+
private readonly _showWidgetOverrideObs;
|
140
|
+
private readonly _isActiveController;
|
141
|
+
private readonly _zone;
|
142
|
+
private readonly _currentSession;
|
143
|
+
get widget(): EditorBasedInlineChatWidget;
|
144
|
+
get isActive(): boolean;
|
145
|
+
constructor(_editor: ICodeEditor, _instaService: IInstantiationService, _notebookEditorService: INotebookEditorService, _inlineChatSessions: IInlineChatSessionService, codeEditorService: ICodeEditorService, contextKeyService: IContextKeyService, _webContentExtractorService: ISharedWebContentExtractorService, _fileService: IFileService, _chatAttachmentResolveService: IChatAttachmentResolveService, _editorService: IEditorService, inlineChatService: IInlineChatSessionService, configurationService: IConfigurationService);
|
146
|
+
dispose(): void;
|
147
|
+
toggleWidgetUntilNextRequest(): void;
|
148
|
+
getWidgetPosition(): Position | undefined;
|
149
|
+
focus(): void;
|
150
|
+
markActiveController(): void;
|
151
|
+
run(arg?: InlineChatRunOptions): Promise<boolean>;
|
152
|
+
acceptSession(): void;
|
153
|
+
createImageAttachment(attachment: URI): Promise<IChatRequestVariableEntry | undefined>;
|
154
|
+
}
|
155
|
+
export declare function reviewEdits(accessor: ServicesAccessor, editor: ICodeEditor, stream: AsyncIterable<TextEdit[]>, token: CancellationToken): Promise<boolean>;
|
156
|
+
export declare function reviewNotebookEdits(accessor: ServicesAccessor, uri: URI, stream: AsyncIterable<[
|
157
|
+
URI,
|
158
|
+
TextEdit[]
|
159
|
+
] | ICellEditOperation[]>, token: CancellationToken): Promise<boolean>;
|