@codingame/monaco-vscode-rollup-vsix-plugin 11.1.2 → 12.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/package.json +7 -6
- package/rollup-vsix-plugin.d.ts +1597 -2
- package/rollup-vsix-plugin.js +265 -219
- package/vscode/src/vs/base/common/jsonSchema.d.ts +0 -90
- package/vscode/src/vs/platform/action/common/action.d.ts +0 -12
- package/vscode/src/vs/platform/environment/common/environment.d.ts +0 -8
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +0 -1494
- package/vscode-dts/vscode.proposed.activeComment.d.ts +0 -23
- package/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts +0 -49
- package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +0 -71
- package/vscode-dts/vscode.proposed.aiTextSearchProviderNew.d.ts +0 -40
- package/vscode-dts/vscode.proposed.attributableCoverage.d.ts +0 -46
- package/vscode-dts/vscode.proposed.authLearnMore.d.ts +0 -16
- package/vscode-dts/vscode.proposed.authSession.d.ts +0 -13
- package/vscode-dts/vscode.proposed.canonicalUriProvider.d.ts +0 -47
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +0 -391
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +0 -119
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +0 -90
- package/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts +0 -33
- package/vscode-dts/vscode.proposed.chatTab.d.ts +0 -17
- package/vscode-dts/vscode.proposed.chatVariableResolver.d.ts +0 -110
- package/vscode-dts/vscode.proposed.codeActionAI.d.ts +0 -16
- package/vscode-dts/vscode.proposed.codeActionRanges.d.ts +0 -15
- package/vscode-dts/vscode.proposed.codiconDecoration.d.ts +0 -48
- package/vscode-dts/vscode.proposed.commentReactor.d.ts +0 -13
- package/vscode-dts/vscode.proposed.commentReveal.d.ts +0 -45
- package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +0 -40
- package/vscode-dts/vscode.proposed.commentingRangeHint.d.ts +0 -16
- package/vscode-dts/vscode.proposed.commentsDraftState.d.ts +0 -18
- package/vscode-dts/vscode.proposed.contribAccessibilityHelpContent.d.ts +0 -15
- package/vscode-dts/vscode.proposed.contribCommentEditorActionsMenu.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribCommentPeekContext.d.ts +0 -10
- package/vscode-dts/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts +0 -8
- package/vscode-dts/vscode.proposed.contribCommentsViewThreadMenus.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribDebugCreateConfiguration.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribDiffEditorGutterToolBarMenus.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribEditSessions.d.ts +0 -8
- package/vscode-dts/vscode.proposed.contribEditorContentMenu.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribIssueReporter.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribLabelFormatterWorkspaceTooltip.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribMenuBarHome.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribMergeEditorMenus.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribMultiDiffEditorMenus.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribNotebookStaticPreloads.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribRemoteHelp.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribShareMenu.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryTitleMenu.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribSourceControlTitleMenu.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribStatusBarItems.d.ts +0 -8
- package/vscode-dts/vscode.proposed.contribViewContainerTitle.d.ts +0 -8
- package/vscode-dts/vscode.proposed.contribViewsRemote.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribViewsWelcome.d.ts +0 -6
- package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +0 -51
- package/vscode-dts/vscode.proposed.customEditorMove.d.ts +0 -29
- package/vscode-dts/vscode.proposed.debugVisualization.d.ts +0 -170
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +0 -63
- package/vscode-dts/vscode.proposed.diffCommand.d.ts +0 -38
- package/vscode-dts/vscode.proposed.diffContentOptions.d.ts +0 -16
- package/vscode-dts/vscode.proposed.documentFiltersExclusive.d.ts +0 -13
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +0 -297
- package/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts +0 -71
- package/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts +0 -76
- package/vscode-dts/vscode.proposed.editorInsets.d.ts +0 -22
- package/vscode-dts/vscode.proposed.embeddings.d.ts +0 -33
- package/vscode-dts/vscode.proposed.extensionRuntime.d.ts +0 -24
- package/vscode-dts/vscode.proposed.extensionsAny.d.ts +0 -41
- package/vscode-dts/vscode.proposed.externalUriOpener.d.ts +0 -163
- package/vscode-dts/vscode.proposed.fileComments.d.ts +0 -42
- package/vscode-dts/vscode.proposed.fileSearchProvider.d.ts +0 -73
- package/vscode-dts/vscode.proposed.fileSearchProviderNew.d.ts +0 -101
- package/vscode-dts/vscode.proposed.findFiles2.d.ts +0 -89
- package/vscode-dts/vscode.proposed.findFiles2New.d.ts +0 -105
- package/vscode-dts/vscode.proposed.findTextInFiles.d.ts +0 -104
- package/vscode-dts/vscode.proposed.findTextInFilesNew.d.ts +0 -164
- package/vscode-dts/vscode.proposed.fsChunks.d.ts +0 -16
- package/vscode-dts/vscode.proposed.idToken.d.ts +0 -16
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +0 -95
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +0 -88
- package/vscode-dts/vscode.proposed.interactive.d.ts +0 -11
- package/vscode-dts/vscode.proposed.interactiveWindow.d.ts +0 -25
- package/vscode-dts/vscode.proposed.ipc.d.ts +0 -37
- package/vscode-dts/vscode.proposed.languageModelSystem.d.ts +0 -17
- package/vscode-dts/vscode.proposed.languageStatusText.d.ts +0 -12
- package/vscode-dts/vscode.proposed.lmTools.d.ts +0 -9
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +0 -87
- package/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts +0 -63
- package/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts +0 -47
- package/vscode-dts/vscode.proposed.notebookCellExecution.d.ts +0 -44
- package/vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts +0 -52
- package/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts +0 -17
- package/vscode-dts/vscode.proposed.notebookDeprecated.d.ts +0 -16
- package/vscode-dts/vscode.proposed.notebookExecution.d.ts +0 -39
- package/vscode-dts/vscode.proposed.notebookKernelSource.d.ts +0 -46
- package/vscode-dts/vscode.proposed.notebookLiveShare.d.ts +0 -21
- package/vscode-dts/vscode.proposed.notebookMessaging.d.ts +0 -68
- package/vscode-dts/vscode.proposed.notebookMime.d.ts +0 -33
- package/vscode-dts/vscode.proposed.notebookReplDocument.d.ts +0 -33
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +0 -55
- package/vscode-dts/vscode.proposed.portsAttributes.d.ts +0 -100
- package/vscode-dts/vscode.proposed.profileContentHandlers.d.ts +0 -19
- package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +0 -17
- package/vscode-dts/vscode.proposed.quickInputButtonLocation.d.ts +0 -29
- package/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts +0 -16
- package/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts +0 -19
- package/vscode-dts/vscode.proposed.resolvers.d.ts +0 -475
- package/vscode-dts/vscode.proposed.scmActionButton.d.ts +0 -18
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +0 -88
- package/vscode-dts/vscode.proposed.scmMultiDiffEditor.d.ts +0 -34
- package/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts +0 -22
- package/vscode-dts/vscode.proposed.scmTextDocument.d.ts +0 -19
- package/vscode-dts/vscode.proposed.scmValidation.d.ts +0 -60
- package/vscode-dts/vscode.proposed.shareProvider.d.ts +0 -74
- package/vscode-dts/vscode.proposed.showLocal.d.ts +0 -19
- package/vscode-dts/vscode.proposed.speech.d.ts +0 -74
- package/vscode-dts/vscode.proposed.tabInputMultiDiff.d.ts +0 -22
- package/vscode-dts/vscode.proposed.tabInputTextMerge.d.ts +0 -25
- package/vscode-dts/vscode.proposed.taskPresentationGroup.d.ts +0 -16
- package/vscode-dts/vscode.proposed.telemetry.d.ts +0 -36
- package/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts +0 -32
- package/vscode-dts/vscode.proposed.terminalDimensions.d.ts +0 -39
- package/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts +0 -48
- package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +0 -87
- package/vscode-dts/vscode.proposed.terminalSelection.d.ts +0 -16
- package/vscode-dts/vscode.proposed.testObserver.d.ts +0 -199
- package/vscode-dts/vscode.proposed.testRelatedCode.d.ts +0 -36
- package/vscode-dts/vscode.proposed.textSearchCompleteNew.d.ts +0 -38
- package/vscode-dts/vscode.proposed.textSearchProvider.d.ts +0 -281
- package/vscode-dts/vscode.proposed.textSearchProviderNew.d.ts +0 -275
- package/vscode-dts/vscode.proposed.timeline.d.ts +0 -163
- package/vscode-dts/vscode.proposed.tokenInformation.d.ts +0 -26
- package/vscode-dts/vscode.proposed.treeViewActiveItem.d.ts +0 -30
- package/vscode-dts/vscode.proposed.treeViewMarkdownMessage.d.ts +0 -28
- package/vscode-dts/vscode.proposed.treeViewReveal.d.ts +0 -13
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +0 -48
- package/vscode-dts/vscode.proposed.tunnels.d.ts +0 -64
- package/vscode-dts/vscode.proposed.workspaceTrust.d.ts +0 -30
|
@@ -1,105 +0,0 @@
|
|
|
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 FindFiles2OptionsNew {
|
|
9
|
-
/**
|
|
10
|
-
* An array of {@link GlobPattern GlobPattern} that defines files to exclude.
|
|
11
|
-
* The glob patterns will be matched against the file paths of files relative to their workspace or {@link RelativePattern.baseUri} if applicable.
|
|
12
|
-
*
|
|
13
|
-
* If more than one value is used, the values are combined with a logical AND.
|
|
14
|
-
* For example, consider the following code:
|
|
15
|
-
*
|
|
16
|
-
* ```ts
|
|
17
|
-
* const ab = findFiles(['**/*.js'], {exclude: ['*.ts', '*.js']});
|
|
18
|
-
* const a = findFiles(['**/*.js'], {exclude: ['*.ts']});
|
|
19
|
-
* const b = findFiles(['**/*.js'], {exclude: ['*.js']});
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* In this, `ab` will be the intersection of results from `a` and `b`.
|
|
23
|
-
*/
|
|
24
|
-
exclude?: GlobPattern[];
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Which settings to follow when searching for files. Defaults to {@link ExcludeSettingOptions.searchAndFilesExclude}.
|
|
28
|
-
*/
|
|
29
|
-
useExcludeSettings?: ExcludeSettingOptions;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* The maximum number of results to search for. Defaults to 20000 results.
|
|
33
|
-
*/
|
|
34
|
-
maxResults?: number;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Which file locations have ignore (`.gitignore` or `.ignore`) files to follow.
|
|
38
|
-
*
|
|
39
|
-
* When any of these fields are `undefined`, the value will either be assumed (e.g. if only one is valid),
|
|
40
|
-
* or it will follow settings based on the corresponding `search.use*IgnoreFiles` setting.
|
|
41
|
-
*
|
|
42
|
-
* Will log an error if an invalid combination is set.
|
|
43
|
-
*
|
|
44
|
-
* Although `.ignore` files are uncommon, they can be leveraged if there are patterns
|
|
45
|
-
* that should not be known to git, but should be known to the search providers.
|
|
46
|
-
* They should be in the same locations where `.gitignore` files are found, and they follow the same format.
|
|
47
|
-
*/
|
|
48
|
-
useIgnoreFiles?: {
|
|
49
|
-
/**
|
|
50
|
-
* Use ignore files at the current workspace root.
|
|
51
|
-
* May default to `search.useIgnoreFiles` setting if not set.
|
|
52
|
-
*/
|
|
53
|
-
local?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Use ignore files at the parent directory. When set to `true`, {@link FindFiles2OptionsNew.useIgnoreFiles.local} must also be `true`.
|
|
56
|
-
* May default to `search.useParentIgnoreFiles` setting if not set.
|
|
57
|
-
*/
|
|
58
|
-
parent?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Use global ignore files. When set to `true`, {@link FindFiles2OptionsNew.useIgnoreFiles.local} must also be `true`.
|
|
61
|
-
* May default to `search.useGlobalIgnoreFiles` setting if not set.
|
|
62
|
-
*/
|
|
63
|
-
global?: boolean;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Whether symlinks should be followed while searching.
|
|
68
|
-
* Defaults to the value for `search.followSymlinks` in settings.
|
|
69
|
-
* For more info, see the setting description for `search.followSymlinks`.
|
|
70
|
-
*/
|
|
71
|
-
followSymlinks?: boolean;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export namespace workspace {
|
|
75
|
-
/**
|
|
76
|
-
* WARNING: VERY EXPERIMENTAL.
|
|
77
|
-
*
|
|
78
|
-
* Find files across all {@link workspace.workspaceFolders workspace folders} in the workspace.
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* findFiles(['**/*.js'], {exclude: ['**/out/**'], useIgnoreFiles: true, maxResults: 10})
|
|
82
|
-
*
|
|
83
|
-
* @param filePattern An array of {@link GlobPattern GlobPattern} that defines the files to search for.
|
|
84
|
-
* The glob patterns will be matched against the file paths of files relative to their workspace or {@link baseUri GlobPattern.baseUri} if applicable.
|
|
85
|
-
* Use a {@link RelativePattern RelativePatten} to restrict the search results to a {@link WorkspaceFolder workspace folder}.
|
|
86
|
-
*
|
|
87
|
-
* If more than one value is used, the values are combined with a logical OR.
|
|
88
|
-
*
|
|
89
|
-
* For example, consider the following code:
|
|
90
|
-
*
|
|
91
|
-
* ```ts
|
|
92
|
-
* const ab = findFiles(['*.ts', '*.js']);
|
|
93
|
-
* const a = findFiles(['**/*.ts']);
|
|
94
|
-
* const b = findFiles(['**/*.js']);
|
|
95
|
-
* ```
|
|
96
|
-
*
|
|
97
|
-
* In this, `ab` will be the union of results from `a` and `b`.
|
|
98
|
-
* @param options A set of {@link FindFiles2Options FindFiles2Options} that defines where and how to search (e.g. exclude settings).
|
|
99
|
-
* @param token A token that can be used to signal cancellation to the underlying search engine.
|
|
100
|
-
* @returns A thenable that resolves to an array of resource identifiers. Will return no results if no
|
|
101
|
-
* {@link workspace.workspaceFolders workspace folders} are opened.
|
|
102
|
-
*/
|
|
103
|
-
export function findFiles2New(filePattern: GlobPattern[], options?: FindFiles2OptionsNew, token?: CancellationToken): Thenable<Uri[]>;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
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/59924
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Options that can be set on a findTextInFiles search.
|
|
12
|
-
*/
|
|
13
|
-
export interface FindTextInFilesOptions {
|
|
14
|
-
/**
|
|
15
|
-
* A {@link GlobPattern glob pattern} that defines the files to search for. The glob pattern
|
|
16
|
-
* will be matched against the file paths of files relative to their workspace. Use a {@link RelativePattern relative pattern}
|
|
17
|
-
* to restrict the search results to a {@link WorkspaceFolder workspace folder}.
|
|
18
|
-
*/
|
|
19
|
-
include?: GlobPattern;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* A {@link GlobPattern glob pattern} that defines files and folders to exclude. The glob pattern
|
|
23
|
-
* will be matched against the file paths of resulting matches relative to their workspace. When `undefined`, default excludes will
|
|
24
|
-
* apply.
|
|
25
|
-
*/
|
|
26
|
-
exclude?: GlobPattern;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Whether to use the default and user-configured excludes. Defaults to true.
|
|
30
|
-
*/
|
|
31
|
-
useDefaultExcludes?: boolean;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* The maximum number of results to search for
|
|
35
|
-
*/
|
|
36
|
-
maxResults?: number;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Whether external files that exclude files, like .gitignore, should be respected.
|
|
40
|
-
* See the vscode setting `"search.useIgnoreFiles"`.
|
|
41
|
-
*/
|
|
42
|
-
useIgnoreFiles?: boolean;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Whether global files that exclude files, like .gitignore, should be respected.
|
|
46
|
-
* See the vscode setting `"search.useGlobalIgnoreFiles"`.
|
|
47
|
-
*/
|
|
48
|
-
useGlobalIgnoreFiles?: boolean;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Whether files in parent directories that exclude files, like .gitignore, should be respected.
|
|
52
|
-
* See the vscode setting `"search.useParentIgnoreFiles"`.
|
|
53
|
-
*/
|
|
54
|
-
useParentIgnoreFiles?: boolean;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Whether symlinks should be followed while searching.
|
|
58
|
-
* See the vscode setting `"search.followSymlinks"`.
|
|
59
|
-
*/
|
|
60
|
-
followSymlinks?: boolean;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Interpret files using this encoding.
|
|
64
|
-
* See the vscode setting `"files.encoding"`
|
|
65
|
-
*/
|
|
66
|
-
encoding?: string;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Options to specify the size of the result text preview.
|
|
70
|
-
*/
|
|
71
|
-
previewOptions?: TextSearchPreviewOptions;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Number of lines of context to include before each match.
|
|
75
|
-
*/
|
|
76
|
-
beforeContext?: number;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Number of lines of context to include after each match.
|
|
80
|
-
*/
|
|
81
|
-
afterContext?: number;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export namespace workspace {
|
|
85
|
-
/**
|
|
86
|
-
* Search text in files across all {@link workspace.workspaceFolders workspace folders} in the workspace.
|
|
87
|
-
* @param query The query parameters for the search - the search string, whether it's case-sensitive, or a regex, or matches whole words.
|
|
88
|
-
* @param callback A callback, called for each result
|
|
89
|
-
* @param token A token that can be used to signal cancellation to the underlying search engine.
|
|
90
|
-
* @return A thenable that resolves when the search is complete.
|
|
91
|
-
*/
|
|
92
|
-
export function findTextInFiles(query: TextSearchQuery, callback: (result: TextSearchResult) => void, token?: CancellationToken): Thenable<TextSearchComplete>;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Search text in files across all {@link workspace.workspaceFolders workspace folders} in the workspace.
|
|
96
|
-
* @param query The query parameters for the search - the search string, whether it's case-sensitive, or a regex, or matches whole words.
|
|
97
|
-
* @param options An optional set of query options. Include and exclude patterns, maxResults, etc.
|
|
98
|
-
* @param callback A callback, called for each result
|
|
99
|
-
* @param token A token that can be used to signal cancellation to the underlying search engine.
|
|
100
|
-
* @return A thenable that resolves when the search is complete.
|
|
101
|
-
*/
|
|
102
|
-
export function findTextInFiles(query: TextSearchQuery, options: FindTextInFilesOptions, callback: (result: TextSearchResult) => void, token?: CancellationToken): Thenable<TextSearchComplete>;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
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/59924
|
|
9
|
-
|
|
10
|
-
export interface FindTextInFilesOptionsNew {
|
|
11
|
-
/**
|
|
12
|
-
* An array of {@link GlobPattern GlobPattern} that defines the files to search for.
|
|
13
|
-
* The glob patterns will be matched against the file paths of files relative to their workspace or {@link baseUri GlobPattern.baseUri} if applicable.
|
|
14
|
-
* Use a {@link RelativePattern RelativePattern} to restrict the search results to a {@link WorkspaceFolder workspace folder}.
|
|
15
|
-
*
|
|
16
|
-
* If more than one value is used, the values are combined with a logical OR.
|
|
17
|
-
*
|
|
18
|
-
* For example, consider the following code:
|
|
19
|
-
*
|
|
20
|
-
* ```ts
|
|
21
|
-
* const ab = findTextInFilesNew('foo', {include: ['*.ts', '*.js']});
|
|
22
|
-
* const a = findTextInFilesNew('foo', {include: ['*.ts']});
|
|
23
|
-
* const b = findTextInFilesNew('foo', {include: ['*.js']});
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* In this, `ab` will be the union of results from `a` and `b`.
|
|
27
|
-
*/
|
|
28
|
-
include?: GlobPattern[];
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* An array of {@link GlobPattern GlobPattern} that defines files to exclude.
|
|
32
|
-
* The glob patterns will be matched against the file paths of files relative to their workspace or {@link RelativePattern.baseUri} if applicable.
|
|
33
|
-
*
|
|
34
|
-
* If more than one value is used, the values are combined with a logical AND.
|
|
35
|
-
* For example, consider the following code:
|
|
36
|
-
*
|
|
37
|
-
* ```ts
|
|
38
|
-
* const ab = findTextInFilesNew('foo', {exclude: ['*.ts', '*.js']});
|
|
39
|
-
* const a = findTextInFilesNew('foo', {exclude: ['*.ts']});
|
|
40
|
-
* const b = findTextInFilesNew('foo', {exclude: ['*.js']});
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* In this, `ab` will be the intersection of results from `a` and `b`.
|
|
44
|
-
*/
|
|
45
|
-
exclude?: GlobPattern[];
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Which settings to follow when searching for files. Defaults to {@link ExcludeSettingOptions.searchAndFilesExclude}.
|
|
49
|
-
*/
|
|
50
|
-
useExcludeSettings?: ExcludeSettingOptions;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* The maximum number of results to search for. Defaults to 20000 results.
|
|
54
|
-
*/
|
|
55
|
-
maxResults?: number;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Which file locations have ignore (`.gitignore` or `.ignore`) files to follow.
|
|
59
|
-
*
|
|
60
|
-
* When any of these fields are `undefined`, the value will either be assumed (e.g. if only one is valid),
|
|
61
|
-
* or it will follow settings based on the corresponding `search.use*IgnoreFiles` setting.
|
|
62
|
-
*
|
|
63
|
-
* Will log an error if an invalid combination is set.
|
|
64
|
-
*
|
|
65
|
-
* Although `.ignore` files are uncommon, they can be leveraged if there are patterns
|
|
66
|
-
* that should not be known to git, but should be known to the search providers.
|
|
67
|
-
* They should be in the same locations where `.gitignore` files are found, and they follow the same format.
|
|
68
|
-
*/
|
|
69
|
-
useIgnoreFiles?: {
|
|
70
|
-
/**
|
|
71
|
-
* Use ignore files at the current workspace root.
|
|
72
|
-
* May default to `search.useIgnoreFiles` setting if not set.
|
|
73
|
-
*/
|
|
74
|
-
local?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Use ignore files at the parent directory. When set to `true`, {@link FindTextInFilesOptionsNew.useIgnoreFiles.local} must be `true`.
|
|
77
|
-
* May default to `search.useParentIgnoreFiles` setting if not set.
|
|
78
|
-
*/
|
|
79
|
-
parent?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Use global ignore files. When set to `true`, {@link FindTextInFilesOptionsNew.useIgnoreFiles.local} must also be `true`.
|
|
82
|
-
* May default to `search.useGlobalIgnoreFiles` setting if not set.
|
|
83
|
-
*/
|
|
84
|
-
global?: boolean;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Whether symlinks should be followed while searching.
|
|
89
|
-
* Defaults to the value for `search.followSymlinks` in settings.
|
|
90
|
-
* For more info, see the setting description for `search.followSymlinks`.
|
|
91
|
-
*/
|
|
92
|
-
followSymlinks?: boolean;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Interpret files using this encoding.
|
|
96
|
-
* See the vscode setting `"files.encoding"`
|
|
97
|
-
*/
|
|
98
|
-
encoding?: string;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Options to specify the size of the result text preview.
|
|
102
|
-
*/
|
|
103
|
-
previewOptions?: {
|
|
104
|
-
/**
|
|
105
|
-
* The maximum number of lines in the preview of the match itself (not including surrounding context lines).
|
|
106
|
-
* Only search providers that support multiline search will ever return more than one line in the match.
|
|
107
|
-
*/
|
|
108
|
-
numMatchLines?: number;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* The maximum number of characters included per line.
|
|
112
|
-
*/
|
|
113
|
-
charsPerLine?: number;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Number of lines of context to include before and after each match.
|
|
118
|
-
*/
|
|
119
|
-
surroundingContext?: number;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export interface FindTextInFilesResponse {
|
|
123
|
-
/**
|
|
124
|
-
* The results of the text search, in batches. To get completion information, wait on the `complete` property.
|
|
125
|
-
*/
|
|
126
|
-
results: AsyncIterable<TextSearchResultNew>;
|
|
127
|
-
/**
|
|
128
|
-
* The text search completion information. This resolves on completion.
|
|
129
|
-
*/
|
|
130
|
-
complete: Thenable<TextSearchCompleteNew>;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Options for following search.exclude and files.exclude settings.
|
|
135
|
-
*/
|
|
136
|
-
export enum ExcludeSettingOptions {
|
|
137
|
-
/**
|
|
138
|
-
* Don't use any exclude settings.
|
|
139
|
-
*/
|
|
140
|
-
None = 1,
|
|
141
|
-
/**
|
|
142
|
-
* Use the `files.exclude` setting
|
|
143
|
-
*/
|
|
144
|
-
FilesExclude = 2,
|
|
145
|
-
/**
|
|
146
|
-
* Use the `files.exclude` and `search.exclude` settings
|
|
147
|
-
*/
|
|
148
|
-
SearchAndFilesExclude = 3
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export namespace workspace {
|
|
152
|
-
/**
|
|
153
|
-
* WARNING: VERY EXPERIMENTAL.
|
|
154
|
-
*
|
|
155
|
-
* Search text in files across all {@link workspace.workspaceFolders workspace folders} in the workspace.
|
|
156
|
-
* @param query The query parameters for the search - the search string, whether it's case-sensitive, or a regex, or matches whole words.
|
|
157
|
-
* @param options An optional set of query options.
|
|
158
|
-
* @param callback A callback, called for each {@link TextSearchResultNew result}. This can be a direct match, or context that surrounds a match.
|
|
159
|
-
* @param token A token that can be used to signal cancellation to the underlying search engine.
|
|
160
|
-
* @return A thenable that resolves when the search is complete.
|
|
161
|
-
*/
|
|
162
|
-
export function findTextInFilesNew(query: TextSearchQueryNew, options?: FindTextInFilesOptionsNew, token?: CancellationToken): FindTextInFilesResponse;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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/84515
|
|
9
|
-
|
|
10
|
-
export interface FileSystemProvider {
|
|
11
|
-
open?(resource: Uri, options: { create: boolean }): number | Thenable<number>;
|
|
12
|
-
close?(fd: number): void | Thenable<void>;
|
|
13
|
-
read?(fd: number, pos: number, data: Uint8Array, offset: number, length: number): number | Thenable<number>;
|
|
14
|
-
write?(fd: number, pos: number, data: Uint8Array, offset: number, length: number): number | Thenable<number>;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
* Represents a session of a currently logged in user.
|
|
9
|
-
*/
|
|
10
|
-
export interface AuthenticationSession {
|
|
11
|
-
/**
|
|
12
|
-
* An optional ID token that may be included in the session.
|
|
13
|
-
*/
|
|
14
|
-
readonly idToken?: string;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
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/124024 @hediet
|
|
9
|
-
|
|
10
|
-
export namespace languages {
|
|
11
|
-
/**
|
|
12
|
-
* Registers an inline completion provider.
|
|
13
|
-
*
|
|
14
|
-
* Multiple providers can be registered for a language. In that case providers are asked in
|
|
15
|
-
* parallel and the results are merged. A failing provider (rejected promise or exception) will
|
|
16
|
-
* not cause a failure of the whole operation.
|
|
17
|
-
*
|
|
18
|
-
* @param selector A selector that defines the documents this provider is applicable to.
|
|
19
|
-
* @param provider An inline completion provider.
|
|
20
|
-
* @param metadata Metadata about the provider.
|
|
21
|
-
* @return A {@link Disposable} that unregisters this provider when being disposed.
|
|
22
|
-
*/
|
|
23
|
-
export function registerInlineCompletionItemProvider(selector: DocumentSelector, provider: InlineCompletionItemProvider, metadata: InlineCompletionItemProviderMetadata): Disposable;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface InlineCompletionItem {
|
|
27
|
-
/**
|
|
28
|
-
* If set to `true`, unopened closing brackets are removed and unclosed opening brackets are closed.
|
|
29
|
-
* Defaults to `false`.
|
|
30
|
-
*/
|
|
31
|
-
completeBracketPairs?: boolean;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface InlineCompletionItemProviderMetadata {
|
|
35
|
-
/**
|
|
36
|
-
* Specifies a list of extension ids that this provider yields to if they return a result.
|
|
37
|
-
* If some inline completion provider registered by such an extension returns a result, this provider is not asked.
|
|
38
|
-
*/
|
|
39
|
-
yieldTo: string[];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface InlineCompletionItemProvider {
|
|
43
|
-
/**
|
|
44
|
-
* @param completionItem The completion item that was shown.
|
|
45
|
-
* @param updatedInsertText The actual insert text (after brackets were fixed).
|
|
46
|
-
*/
|
|
47
|
-
// eslint-disable-next-line local/vscode-dts-provider-naming
|
|
48
|
-
handleDidShowCompletionItem?(completionItem: InlineCompletionItem, updatedInsertText: string): void;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Is called when an inline completion item was accepted partially.
|
|
52
|
-
* @param acceptedLength The length of the substring of the inline completion that was accepted already.
|
|
53
|
-
*/
|
|
54
|
-
// eslint-disable-next-line local/vscode-dts-provider-naming
|
|
55
|
-
handleDidPartiallyAcceptCompletionItem?(completionItem: InlineCompletionItem, acceptedLength: number): void;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Is called when an inline completion item was accepted partially.
|
|
59
|
-
* @param info Additional info for the partial accepted trigger.
|
|
60
|
-
*/
|
|
61
|
-
// eslint-disable-next-line local/vscode-dts-provider-naming
|
|
62
|
-
handleDidPartiallyAcceptCompletionItem?(completionItem: InlineCompletionItem, info: PartialAcceptInfo): void;
|
|
63
|
-
|
|
64
|
-
provideInlineEditsForRange?(document: TextDocument, range: Range, context: InlineCompletionContext, token: CancellationToken): ProviderResult<InlineCompletionItem[] | InlineCompletionList>;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface InlineCompletionContext {
|
|
68
|
-
readonly userPrompt?: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface PartialAcceptInfo {
|
|
72
|
-
kind: PartialAcceptTriggerKind;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export enum PartialAcceptTriggerKind {
|
|
76
|
-
Unknown = 0,
|
|
77
|
-
Word = 1,
|
|
78
|
-
Line = 2,
|
|
79
|
-
Suggest = 3,
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// When finalizing `commands`, make sure to add a corresponding constructor parameter.
|
|
83
|
-
export interface InlineCompletionList {
|
|
84
|
-
/**
|
|
85
|
-
* A list of commands associated with the inline completions of this list.
|
|
86
|
-
*/
|
|
87
|
-
commands?: Command[];
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* When set and the user types a suggestion without derivating from it, the inline suggestion is not updated.
|
|
91
|
-
* Defaults to false (might change).
|
|
92
|
-
*/
|
|
93
|
-
enableForwardStability?: boolean;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
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 class InlineEdit {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The new text for this edit.
|
|
12
|
-
*/
|
|
13
|
-
readonly text: string;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* An range that will be replaced by the text of the inline edit.
|
|
17
|
-
* If change is only additive, this can be empty (same start and end position).
|
|
18
|
-
*/
|
|
19
|
-
readonly range: Range;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* An optional command that will be executed after applying the inline edit.
|
|
23
|
-
*/
|
|
24
|
-
accepted?: Command;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* An optional command that will be executed after rejecting the inline edit.
|
|
28
|
-
*/
|
|
29
|
-
rejected?: Command;
|
|
30
|
-
|
|
31
|
-
commands?: Command[];
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Creates a new inline edit.
|
|
35
|
-
*
|
|
36
|
-
* @param text The new text for this edit.
|
|
37
|
-
* @param replaceRange An range that will be replaced by the text of the inline edit.
|
|
38
|
-
*/
|
|
39
|
-
constructor(text: string, range: Range);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface InlineEditContext {
|
|
43
|
-
/**
|
|
44
|
-
* Describes how the inline edit was triggered.
|
|
45
|
-
*/
|
|
46
|
-
triggerKind: InlineEditTriggerKind;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export enum InlineEditTriggerKind {
|
|
50
|
-
/**
|
|
51
|
-
* Completion was triggered explicitly by a user gesture.
|
|
52
|
-
* Return multiple completion items to enable cycling through them.
|
|
53
|
-
*/
|
|
54
|
-
Invoke = 0,
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Completion was triggered automatically while editing.
|
|
58
|
-
* It is sufficient to return a single completion item in this case.
|
|
59
|
-
*/
|
|
60
|
-
Automatic = 1,
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface InlineEditProvider {
|
|
64
|
-
/**
|
|
65
|
-
* Provide inline edit for the given document.
|
|
66
|
-
*
|
|
67
|
-
* @param document The document for which the inline edit are computed.
|
|
68
|
-
* @param context Additional context information about the request.
|
|
69
|
-
* @param token A cancellation token.
|
|
70
|
-
* @return An inline edit or a thenable that resolves to such. The lack of a result can be
|
|
71
|
-
* signaled by returning `undefined` or `null`.
|
|
72
|
-
*/
|
|
73
|
-
provideInlineEdit(document: TextDocument, context: InlineEditContext, token: CancellationToken): ProviderResult<InlineEdit>;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export namespace languages {
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Register a provider that can handle inline edits.
|
|
80
|
-
*
|
|
81
|
-
* @param selector A selector that defines the documents this provider is applicable to.
|
|
82
|
-
* @param provider A provider that can handle inline edits.
|
|
83
|
-
* @return A {@link Disposable} that unregisters this provider when being disposed.
|
|
84
|
-
*/
|
|
85
|
-
export function registerInlineEditProvider(selector: DocumentSelector, provider: InlineEditProvider): Disposable;
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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 namespace interactive {
|
|
9
|
-
export function transferActiveChat(toWorkspace: Uri): void;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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/206265
|
|
9
|
-
|
|
10
|
-
// TODO@API don't have this dedicated type but as property, e.g anthropic doesn't have a system-role, see
|
|
11
|
-
// https://github.com/anthropics/anthropic-sdk-typescript/blob/c2da9604646ff103fbdbca016a9a9d49b03b387b/src/resources/messages.ts#L384
|
|
12
|
-
// So, we could have `LanguageModelChatRequestOptions#system` which would be more limiting but also more natural?
|
|
13
|
-
|
|
14
|
-
export enum LanguageModelChatMessageRole {
|
|
15
|
-
System = 3
|
|
16
|
-
}
|
|
17
|
-
}
|