@codingame/monaco-vscode-rollup-vsix-plugin 1.83.14 → 1.83.15-next.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/package.json +2 -2
- package/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts +49 -0
- package/vscode-dts/vscode.proposed.authGetSessions.d.ts +62 -0
- package/vscode-dts/vscode.proposed.authSession.d.ts +13 -0
- package/vscode-dts/vscode.proposed.canonicalUriProvider.d.ts +47 -0
- package/vscode-dts/vscode.proposed.chat.d.ts +25 -0
- package/vscode-dts/vscode.proposed.chatAgents.d.ts +39 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +38 -0
- package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +47 -0
- package/vscode-dts/vscode.proposed.chatSlashCommands.d.ts +47 -0
- package/vscode-dts/vscode.proposed.chatVariables.d.ts +35 -0
- package/vscode-dts/vscode.proposed.codiconDecoration.d.ts +48 -0
- package/vscode-dts/vscode.proposed.commentsDraftState.d.ts +18 -0
- package/vscode-dts/vscode.proposed.contribCommentEditorActionsMenu.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribCommentPeekContext.d.ts +10 -0
- package/vscode-dts/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribEditSessions.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribEditorContentMenu.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribLabelFormatterWorkspaceTooltip.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribMenuBarHome.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribMergeEditorMenus.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribNotebookStaticPreloads.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribRemoteHelp.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribShareMenu.d.ts +7 -0
- package/vscode-dts/vscode.proposed.contribStatusBarItems.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribViewsRemote.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribViewsWelcome.d.ts +6 -0
- package/vscode-dts/vscode.proposed.customEditorMove.d.ts +29 -0
- package/vscode-dts/vscode.proposed.debugFocus.d.ts +74 -0
- package/vscode-dts/vscode.proposed.diffCommand.d.ts +38 -0
- package/vscode-dts/vscode.proposed.diffContentOptions.d.ts +16 -0
- package/vscode-dts/vscode.proposed.documentFiltersExclusive.d.ts +13 -0
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +111 -0
- package/vscode-dts/vscode.proposed.dropMetadata.d.ts +60 -0
- package/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts +71 -0
- package/vscode-dts/vscode.proposed.editorInsets.d.ts +22 -0
- package/vscode-dts/vscode.proposed.extensionRuntime.d.ts +24 -0
- package/vscode-dts/vscode.proposed.extensionsAny.d.ts +40 -0
- package/vscode-dts/vscode.proposed.externalUriOpener.d.ts +163 -0
- package/vscode-dts/vscode.proposed.fileComments.d.ts +85 -0
- package/vscode-dts/vscode.proposed.fileSearchProvider.d.ts +67 -0
- package/vscode-dts/vscode.proposed.findTextInFiles.d.ts +104 -0
- package/vscode-dts/vscode.proposed.fsChunks.d.ts +16 -0
- package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +31 -0
- package/vscode-dts/vscode.proposed.idToken.d.ts +16 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +71 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +227 -0
- package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +70 -0
- package/vscode-dts/vscode.proposed.interactiveWindow.d.ts +25 -0
- package/vscode-dts/vscode.proposed.ipc.d.ts +37 -0
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +42 -0
- package/vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts +52 -0
- package/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts +17 -0
- package/vscode-dts/vscode.proposed.notebookDeprecated.d.ts +16 -0
- package/vscode-dts/vscode.proposed.notebookExecution.d.ts +39 -0
- package/vscode-dts/vscode.proposed.notebookKernelSource.d.ts +46 -0
- package/vscode-dts/vscode.proposed.notebookLiveShare.d.ts +21 -0
- package/vscode-dts/vscode.proposed.notebookMessaging.d.ts +68 -0
- package/vscode-dts/vscode.proposed.notebookMime.d.ts +33 -0
- package/vscode-dts/vscode.proposed.portsAttributes.d.ts +100 -0
- package/vscode-dts/vscode.proposed.profileContentHandlers.d.ts +19 -0
- package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +17 -0
- package/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts +16 -0
- package/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts +16 -0
- package/vscode-dts/vscode.proposed.readonlyMessage.d.ts +14 -0
- package/vscode-dts/vscode.proposed.resolvers.d.ts +371 -0
- package/vscode-dts/vscode.proposed.saveEditor.d.ts +35 -0
- package/vscode-dts/vscode.proposed.scmActionButton.d.ts +19 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +77 -0
- package/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts +22 -0
- package/vscode-dts/vscode.proposed.scmTextDocument.d.ts +19 -0
- package/vscode-dts/vscode.proposed.scmValidation.d.ts +60 -0
- package/vscode-dts/vscode.proposed.shareProvider.d.ts +74 -0
- package/vscode-dts/vscode.proposed.showLocal.d.ts +19 -0
- package/vscode-dts/vscode.proposed.tabInputTextMerge.d.ts +25 -0
- package/vscode-dts/vscode.proposed.taskPresentationGroup.d.ts +16 -0
- package/vscode-dts/vscode.proposed.telemetry.d.ts +36 -0
- package/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts +32 -0
- package/vscode-dts/vscode.proposed.terminalDimensions.d.ts +39 -0
- package/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts +46 -0
- package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +83 -0
- package/vscode-dts/vscode.proposed.terminalSelection.d.ts +16 -0
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +198 -0
- package/vscode-dts/vscode.proposed.testMessageContextValue.d.ts +45 -0
- package/vscode-dts/vscode.proposed.testObserver.d.ts +184 -0
- package/vscode-dts/vscode.proposed.textSearchProvider.d.ts +281 -0
- package/vscode-dts/vscode.proposed.timeline.d.ts +163 -0
- package/vscode-dts/vscode.proposed.tokenInformation.d.ts +26 -0
- package/vscode-dts/vscode.proposed.treeViewActiveItem.d.ts +30 -0
- package/vscode-dts/vscode.proposed.treeViewMarkdownMessage.d.ts +28 -0
- package/vscode-dts/vscode.proposed.treeViewReveal.d.ts +13 -0
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +44 -0
- package/vscode-dts/vscode.proposed.tunnels.d.ts +64 -0
- package/vscode-dts/vscode.proposed.windowActivity.d.ts +17 -0
- package/vscode-dts/vscode.proposed.workspaceTrust.d.ts +30 -0
- package/vscode.proposed.d.ts +0 -4787
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
/**
|
|
8
|
+
* The tab represents an interactive window.
|
|
9
|
+
*/
|
|
10
|
+
export class TabInputInteractiveWindow {
|
|
11
|
+
/**
|
|
12
|
+
* The uri of the history notebook in the interactive window.
|
|
13
|
+
*/
|
|
14
|
+
readonly uri: Uri;
|
|
15
|
+
/**
|
|
16
|
+
* The uri of the input box in the interactive window.
|
|
17
|
+
*/
|
|
18
|
+
readonly inputBoxUri: Uri;
|
|
19
|
+
private constructor(uri: Uri, inputBoxUri: Uri);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface Tab {
|
|
23
|
+
readonly input: TabInputText | TabInputTextDiff | TabInputCustom | TabInputWebview | TabInputNotebook | TabInputNotebookDiff | TabInputTerminal | TabInputInteractiveWindow | unknown;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A message passing protocol, which enables sending and receiving messages
|
|
10
|
+
* between two parties.
|
|
11
|
+
*/
|
|
12
|
+
export interface MessagePassingProtocol {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Fired when a message is received from the other party.
|
|
16
|
+
*/
|
|
17
|
+
readonly onDidReceiveMessage: Event<any>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Post a message to the other party.
|
|
21
|
+
*
|
|
22
|
+
* @param message Body of the message. This must be a JSON serializable object.
|
|
23
|
+
* @param transfer A collection of `ArrayBuffer` instances which can be transferred
|
|
24
|
+
* to the other party, saving costly memory copy operations.
|
|
25
|
+
*/
|
|
26
|
+
postMessage(message: any, transfer?: ArrayBuffer[]): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ExtensionContext {
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* When not `undefined`, this is an instance of {@link MessagePassingProtocol} in
|
|
33
|
+
* which the other party is owned by the web embedder.
|
|
34
|
+
*/
|
|
35
|
+
readonly messagePassingProtocol: MessagePassingProtocol | undefined;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
export interface DocumentContextItem {
|
|
9
|
+
readonly uri: Uri;
|
|
10
|
+
readonly version: number;
|
|
11
|
+
readonly ranges: Range[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface MappedEditsContext {
|
|
15
|
+
documents: DocumentContextItem[][];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Interface for providing mapped edits for a given document.
|
|
20
|
+
*/
|
|
21
|
+
export interface MappedEditsProvider {
|
|
22
|
+
/**
|
|
23
|
+
* Provide mapped edits for a given document.
|
|
24
|
+
* @param document The document to provide mapped edits for.
|
|
25
|
+
* @param codeBlocks Code blocks that come from an LLM's reply.
|
|
26
|
+
* "Insert at cursor" in the panel chat only sends one edit that the user clicks on, but inline chat can send multiple blocks and let the lang server decide what to do with them.
|
|
27
|
+
* @param context The context for providing mapped edits.
|
|
28
|
+
* @param token A cancellation token.
|
|
29
|
+
* @returns A provider result of text edits.
|
|
30
|
+
*/
|
|
31
|
+
provideMappedEdits(
|
|
32
|
+
document: TextDocument,
|
|
33
|
+
codeBlocks: string[],
|
|
34
|
+
context: MappedEditsContext,
|
|
35
|
+
token: CancellationToken
|
|
36
|
+
): ProviderResult<WorkspaceEdit | null>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
namespace chat {
|
|
40
|
+
export function registerMappedEditsProvider(documentSelector: DocumentSelector, provider: MappedEditsProvider): Disposable;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
// https://github.com/microsoft/vscode/issues/124970
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The execution state of a notebook cell.
|
|
12
|
+
*/
|
|
13
|
+
export enum NotebookCellExecutionState {
|
|
14
|
+
/**
|
|
15
|
+
* The cell is idle.
|
|
16
|
+
*/
|
|
17
|
+
Idle = 1,
|
|
18
|
+
/**
|
|
19
|
+
* Execution for the cell is pending.
|
|
20
|
+
*/
|
|
21
|
+
Pending = 2,
|
|
22
|
+
/**
|
|
23
|
+
* The cell is currently executing.
|
|
24
|
+
*/
|
|
25
|
+
Executing = 3,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* An event describing a cell execution state change.
|
|
30
|
+
*/
|
|
31
|
+
export interface NotebookCellExecutionStateChangeEvent {
|
|
32
|
+
/**
|
|
33
|
+
* The {@link NotebookCell cell} for which the execution state has changed.
|
|
34
|
+
*/
|
|
35
|
+
readonly cell: NotebookCell;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The new execution state of the cell.
|
|
39
|
+
*/
|
|
40
|
+
readonly state: NotebookCellExecutionState;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export namespace notebooks {
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* An {@link Event} which fires when the execution state of a cell has changed.
|
|
47
|
+
*/
|
|
48
|
+
// todo@API this is an event that is fired for a property that cells don't have and that makes me wonder
|
|
49
|
+
// how a correct consumer works, e.g the consumer could have been late and missed an event?
|
|
50
|
+
export const onDidChangeNotebookCellExecutionState: Event<NotebookCellExecutionStateChangeEvent>;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
// https://github.com/microsoft/vscode/issues/161144
|
|
8
|
+
export enum NotebookControllerAffinity2 {
|
|
9
|
+
Default = 1,
|
|
10
|
+
Preferred = 2,
|
|
11
|
+
Hidden = -1
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface NotebookController {
|
|
15
|
+
updateNotebookAffinity(notebook: NotebookDocument, affinity: NotebookControllerAffinity | NotebookControllerAffinity2): void;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
// https://github.com/microsoft/vscode/issues/106744
|
|
9
|
+
|
|
10
|
+
export interface NotebookCellOutput {
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A NotebookExecution is how {@link NotebookController notebook controller} can indicate whether the notebook controller is busy or not.
|
|
10
|
+
*
|
|
11
|
+
* When {@linkcode NotebookExecution.start start()} is called on the execution task, it causes the Notebook to enter a executing state .
|
|
12
|
+
* When {@linkcode NotebookExecution.end end()} is called, it enters the idle state.
|
|
13
|
+
*/
|
|
14
|
+
export interface NotebookExecution {
|
|
15
|
+
/**
|
|
16
|
+
* Signal that the execution has begun.
|
|
17
|
+
*/
|
|
18
|
+
start(): void;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Signal that execution has ended.
|
|
22
|
+
*/
|
|
23
|
+
end(): void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface NotebookController {
|
|
27
|
+
/**
|
|
28
|
+
* Create an execution task.
|
|
29
|
+
*
|
|
30
|
+
* _Note_ that there can only be one execution per Notebook, that also includes NotebookCellExecutions and t an error is thrown if
|
|
31
|
+
* a cell execution or another NotebookExecution is created while another is still active.
|
|
32
|
+
*
|
|
33
|
+
* This should be used to indicate the {@link NotebookController notebook controller} is busy even though user may not have executed any cell though the UI.
|
|
34
|
+
* @param {NotebookDocument} notebook
|
|
35
|
+
* @returns A notebook execution.
|
|
36
|
+
*/
|
|
37
|
+
createNotebookExecution(notebook: NotebookDocument): NotebookExecution;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
export interface NotebookControllerDetectionTask {
|
|
8
|
+
/**
|
|
9
|
+
* Dispose and remove the detection task.
|
|
10
|
+
*/
|
|
11
|
+
dispose(): void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class NotebookKernelSourceAction {
|
|
15
|
+
readonly label: string;
|
|
16
|
+
readonly description?: string;
|
|
17
|
+
readonly detail?: string;
|
|
18
|
+
readonly command: string | Command;
|
|
19
|
+
readonly documentation?: Uri;
|
|
20
|
+
|
|
21
|
+
constructor(label: string);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface NotebookKernelSourceActionProvider {
|
|
25
|
+
/**
|
|
26
|
+
* An optional event to signal that the kernel source actions have changed.
|
|
27
|
+
*/
|
|
28
|
+
onDidChangeNotebookKernelSourceActions?: Event<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Provide kernel source actions
|
|
31
|
+
*/
|
|
32
|
+
provideNotebookKernelSourceActions(token: CancellationToken): ProviderResult<NotebookKernelSourceAction[]>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export namespace notebooks {
|
|
36
|
+
/**
|
|
37
|
+
* Create notebook controller detection task
|
|
38
|
+
*/
|
|
39
|
+
export function createNotebookControllerDetectionTask(notebookType: string): NotebookControllerDetectionTask;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Register a notebook kernel source action provider
|
|
43
|
+
*/
|
|
44
|
+
export function registerKernelSourceActionProvider(notebookType: string, provider: NotebookKernelSourceActionProvider): Disposable;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
// https://github.com/microsoft/vscode/issues/106744
|
|
9
|
+
|
|
10
|
+
export interface NotebookRegistrationData {
|
|
11
|
+
readonly displayName: string;
|
|
12
|
+
readonly filenamePattern: ReadonlyArray<(GlobPattern | { readonly include: GlobPattern; readonly exclude: GlobPattern })>;
|
|
13
|
+
readonly exclusive?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export namespace workspace {
|
|
17
|
+
|
|
18
|
+
// SPECIAL overload with NotebookRegistrationData
|
|
19
|
+
export function registerNotebookSerializer(notebookType: string, serializer: NotebookSerializer, options?: NotebookDocumentContentOptions, registration?: NotebookRegistrationData): Disposable;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
// https://github.com/microsoft/vscode/issues/123601
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents a script that is loaded into the notebook renderer before rendering output. This allows
|
|
12
|
+
* to provide and share functionality for notebook markup and notebook output renderers.
|
|
13
|
+
*/
|
|
14
|
+
export class NotebookRendererScript {
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* APIs that the preload provides to the renderer. These are matched
|
|
18
|
+
* against the `dependencies` and `optionalDependencies` arrays in the
|
|
19
|
+
* notebook renderer contribution point.
|
|
20
|
+
*/
|
|
21
|
+
provides: readonly string[];
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* URI of the JavaScript module to preload.
|
|
25
|
+
*
|
|
26
|
+
* This module must export an `activate` function that takes a context object that contains the notebook API.
|
|
27
|
+
*/
|
|
28
|
+
uri: Uri;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @param uri URI of the JavaScript module to preload
|
|
32
|
+
* @param provides Value for the `provides` property
|
|
33
|
+
*/
|
|
34
|
+
constructor(uri: Uri, provides?: string | readonly string[]);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface NotebookController {
|
|
38
|
+
|
|
39
|
+
// todo@API allow add, not remove
|
|
40
|
+
readonly rendererScripts: NotebookRendererScript[];
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* An event that fires when a {@link NotebookController.rendererScripts renderer script} has send a message to
|
|
44
|
+
* the controller.
|
|
45
|
+
*/
|
|
46
|
+
readonly onDidReceiveMessage: Event<{ readonly editor: NotebookEditor; readonly message: any }>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Send a message to the renderer of notebook editors.
|
|
50
|
+
*
|
|
51
|
+
* Note that only editors showing documents that are bound to this controller
|
|
52
|
+
* are receiving the message.
|
|
53
|
+
*
|
|
54
|
+
* @param message The message to send.
|
|
55
|
+
* @param editor A specific editor to send the message to. When `undefined` all applicable editors are receiving the message.
|
|
56
|
+
* @returns A promise that resolves to a boolean indicating if the message has been send or not.
|
|
57
|
+
*/
|
|
58
|
+
postMessage(message: any, editor?: NotebookEditor): Thenable<boolean>;
|
|
59
|
+
|
|
60
|
+
//todo@API validate this works
|
|
61
|
+
asWebviewUri(localResource: Uri): Uri;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export namespace notebooks {
|
|
65
|
+
|
|
66
|
+
export function createNotebookController(id: string, viewType: string, label: string, handler?: (cells: NotebookCell[], notebook: NotebookDocument, controller: NotebookController) => void | Thenable<void>, rendererScripts?: NotebookRendererScript[]): NotebookController;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
// https://github.com/microsoft/vscode/issues/126280 @mjbvz
|
|
9
|
+
|
|
10
|
+
export interface NotebookCellData {
|
|
11
|
+
/**
|
|
12
|
+
* Mime type determines how the cell's `value` is interpreted.
|
|
13
|
+
*
|
|
14
|
+
* The mime selects which notebook renders is used to render the cell.
|
|
15
|
+
*
|
|
16
|
+
* If not set, internally the cell is treated as having a mime type of `text/plain`.
|
|
17
|
+
* Cells that set `language` to `markdown` instead are treated as `text/markdown`.
|
|
18
|
+
*/
|
|
19
|
+
mime?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface NotebookCell {
|
|
23
|
+
/**
|
|
24
|
+
* Mime type determines how the markup cell's `value` is interpreted.
|
|
25
|
+
*
|
|
26
|
+
* The mime selects which notebook renders is used to render the cell.
|
|
27
|
+
*
|
|
28
|
+
* If not set, internally the cell is treated as having a mime type of `text/plain`.
|
|
29
|
+
* Cells that set `language` to `markdown` instead are treated as `text/markdown`.
|
|
30
|
+
*/
|
|
31
|
+
mime: string | undefined;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
// https://github.com/microsoft/vscode/issues/115616 @alexr00
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The action that should be taken when a port is discovered through automatic port forwarding discovery.
|
|
12
|
+
*/
|
|
13
|
+
export enum PortAutoForwardAction {
|
|
14
|
+
/**
|
|
15
|
+
* Notify the user that the port is being forwarded. This is the default action.
|
|
16
|
+
*/
|
|
17
|
+
Notify = 1,
|
|
18
|
+
/**
|
|
19
|
+
* Once the port is forwarded, open the user's web browser to the forwarded port.
|
|
20
|
+
*/
|
|
21
|
+
OpenBrowser = 2,
|
|
22
|
+
/**
|
|
23
|
+
* Once the port is forwarded, open the preview browser to the forwarded port.
|
|
24
|
+
*/
|
|
25
|
+
OpenPreview = 3,
|
|
26
|
+
/**
|
|
27
|
+
* Forward the port silently.
|
|
28
|
+
*/
|
|
29
|
+
Silent = 4,
|
|
30
|
+
/**
|
|
31
|
+
* Do not forward the port.
|
|
32
|
+
*/
|
|
33
|
+
Ignore = 5
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The attributes that a forwarded port can have.
|
|
38
|
+
*/
|
|
39
|
+
export class PortAttributes {
|
|
40
|
+
/**
|
|
41
|
+
* The action to be taken when this port is detected for auto forwarding.
|
|
42
|
+
*/
|
|
43
|
+
autoForwardAction: PortAutoForwardAction;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Creates a new PortAttributes object
|
|
47
|
+
* @param port the port number
|
|
48
|
+
* @param autoForwardAction the action to take when this port is detected
|
|
49
|
+
*/
|
|
50
|
+
constructor(autoForwardAction: PortAutoForwardAction);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* A provider of port attributes. Port attributes are used to determine what action should be taken when a port is discovered.
|
|
55
|
+
*/
|
|
56
|
+
export interface PortAttributesProvider {
|
|
57
|
+
/**
|
|
58
|
+
* Provides attributes for the given port. For ports that your extension doesn't know about, simply
|
|
59
|
+
* return undefined. For example, if `providePortAttributes` is called with ports 3000 but your
|
|
60
|
+
* extension doesn't know anything about 3000 you should return undefined.
|
|
61
|
+
* @param port The port number of the port that attributes are being requested for.
|
|
62
|
+
* @param pid The pid of the process that is listening on the port. If the pid is unknown, undefined will be passed.
|
|
63
|
+
* @param commandLine The command line of the process that is listening on the port. If the command line is unknown, undefined will be passed.
|
|
64
|
+
* @param token A cancellation token that indicates the result is no longer needed.
|
|
65
|
+
*/
|
|
66
|
+
providePortAttributes(attributes: { port: number; pid?: number; commandLine?: string }, token: CancellationToken): ProviderResult<PortAttributes>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* A selector that will be used to filter which {@link PortAttributesProvider} should be called for each port.
|
|
71
|
+
*/
|
|
72
|
+
export interface PortAttributesSelector {
|
|
73
|
+
/**
|
|
74
|
+
* Specifying a port range will cause your provider to only be called for ports within the range.
|
|
75
|
+
* The start is inclusive and the end is exclusive.
|
|
76
|
+
*/
|
|
77
|
+
portRange?: [number, number] | number;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Specifying a command pattern will cause your provider to only be called for processes whose command line matches the pattern.
|
|
81
|
+
*/
|
|
82
|
+
commandPattern?: RegExp;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export namespace workspace {
|
|
86
|
+
/**
|
|
87
|
+
* If your extension listens on ports, consider registering a PortAttributesProvider to provide information
|
|
88
|
+
* about the ports. For example, a debug extension may know about debug ports in it's debuggee. By providing
|
|
89
|
+
* this information with a PortAttributesProvider the extension can tell the editor that these ports should be
|
|
90
|
+
* ignored, since they don't need to be user facing.
|
|
91
|
+
*
|
|
92
|
+
* The results of the PortAttributesProvider are merged with the user setting `remote.portsAttributes`. If the values conflict, the user setting takes precedence.
|
|
93
|
+
*
|
|
94
|
+
* @param portSelector It is best practice to specify a port selector to avoid unnecessary calls to your provider.
|
|
95
|
+
* If you don't specify a port selector your provider will be called for every port, which will result in slower port forwarding for the user.
|
|
96
|
+
* @param provider The {@link PortAttributesProvider PortAttributesProvider}.
|
|
97
|
+
*/
|
|
98
|
+
export function registerPortAttributesProvider(portSelector: PortAttributesSelector, provider: PortAttributesProvider): Disposable;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
export interface ProfileContentHandler {
|
|
9
|
+
readonly name: string;
|
|
10
|
+
readonly description?: string;
|
|
11
|
+
saveProfile(name: string, content: string, token: CancellationToken): Thenable<{ readonly id: string; readonly link: Uri } | null>;
|
|
12
|
+
readProfile(idOrUri: string | Uri, token: CancellationToken): Thenable<string | null>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export namespace window {
|
|
16
|
+
export function registerProfileContentHandler(id: string, profileContentHandler: ProfileContentHandler): Disposable;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
// https://github.com/microsoft/vscode/issues/169012
|
|
9
|
+
|
|
10
|
+
export namespace window {
|
|
11
|
+
export function registerQuickDiffProvider(selector: DocumentSelector, quickDiffProvider: QuickDiffProvider, label: string, rootUri?: Uri): Disposable;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface QuickDiffProvider {
|
|
15
|
+
label?: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
// https://github.com/microsoft/vscode/issues/175662
|
|
9
|
+
|
|
10
|
+
export interface QuickPickItem {
|
|
11
|
+
/**
|
|
12
|
+
* A tooltip that is rendered when hovering over the item.
|
|
13
|
+
*/
|
|
14
|
+
tooltip?: string | MarkdownString;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
// https://github.com/microsoft/vscode/issues/73904
|
|
9
|
+
|
|
10
|
+
export interface QuickPick<T extends QuickPickItem> extends QuickInput {
|
|
11
|
+
/**
|
|
12
|
+
* An optional flag to sort the final results by index of first query match in label. Defaults to true.
|
|
13
|
+
*/
|
|
14
|
+
sortByLabel: boolean;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
// https://github.com/microsoft/vscode/issues/166971
|
|
7
|
+
|
|
8
|
+
declare module 'vscode' {
|
|
9
|
+
|
|
10
|
+
export namespace workspace {
|
|
11
|
+
|
|
12
|
+
export function registerFileSystemProvider(scheme: string, provider: FileSystemProvider, options?: { readonly isCaseSensitive?: boolean; readonly isReadonly?: boolean | MarkdownString }): Disposable;
|
|
13
|
+
}
|
|
14
|
+
}
|