@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.
Files changed (138) hide show
  1. package/package.json +7 -6
  2. package/rollup-vsix-plugin.d.ts +1597 -2
  3. package/rollup-vsix-plugin.js +265 -219
  4. package/vscode/src/vs/base/common/jsonSchema.d.ts +0 -90
  5. package/vscode/src/vs/platform/action/common/action.d.ts +0 -12
  6. package/vscode/src/vs/platform/environment/common/environment.d.ts +0 -8
  7. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +0 -1494
  8. package/vscode-dts/vscode.proposed.activeComment.d.ts +0 -23
  9. package/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts +0 -49
  10. package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +0 -71
  11. package/vscode-dts/vscode.proposed.aiTextSearchProviderNew.d.ts +0 -40
  12. package/vscode-dts/vscode.proposed.attributableCoverage.d.ts +0 -46
  13. package/vscode-dts/vscode.proposed.authLearnMore.d.ts +0 -16
  14. package/vscode-dts/vscode.proposed.authSession.d.ts +0 -13
  15. package/vscode-dts/vscode.proposed.canonicalUriProvider.d.ts +0 -47
  16. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +0 -391
  17. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +0 -119
  18. package/vscode-dts/vscode.proposed.chatProvider.d.ts +0 -90
  19. package/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts +0 -33
  20. package/vscode-dts/vscode.proposed.chatTab.d.ts +0 -17
  21. package/vscode-dts/vscode.proposed.chatVariableResolver.d.ts +0 -110
  22. package/vscode-dts/vscode.proposed.codeActionAI.d.ts +0 -16
  23. package/vscode-dts/vscode.proposed.codeActionRanges.d.ts +0 -15
  24. package/vscode-dts/vscode.proposed.codiconDecoration.d.ts +0 -48
  25. package/vscode-dts/vscode.proposed.commentReactor.d.ts +0 -13
  26. package/vscode-dts/vscode.proposed.commentReveal.d.ts +0 -45
  27. package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +0 -40
  28. package/vscode-dts/vscode.proposed.commentingRangeHint.d.ts +0 -16
  29. package/vscode-dts/vscode.proposed.commentsDraftState.d.ts +0 -18
  30. package/vscode-dts/vscode.proposed.contribAccessibilityHelpContent.d.ts +0 -15
  31. package/vscode-dts/vscode.proposed.contribCommentEditorActionsMenu.d.ts +0 -6
  32. package/vscode-dts/vscode.proposed.contribCommentPeekContext.d.ts +0 -10
  33. package/vscode-dts/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts +0 -8
  34. package/vscode-dts/vscode.proposed.contribCommentsViewThreadMenus.d.ts +0 -6
  35. package/vscode-dts/vscode.proposed.contribDebugCreateConfiguration.d.ts +0 -6
  36. package/vscode-dts/vscode.proposed.contribDiffEditorGutterToolBarMenus.d.ts +0 -6
  37. package/vscode-dts/vscode.proposed.contribEditSessions.d.ts +0 -8
  38. package/vscode-dts/vscode.proposed.contribEditorContentMenu.d.ts +0 -6
  39. package/vscode-dts/vscode.proposed.contribIssueReporter.d.ts +0 -7
  40. package/vscode-dts/vscode.proposed.contribLabelFormatterWorkspaceTooltip.d.ts +0 -6
  41. package/vscode-dts/vscode.proposed.contribMenuBarHome.d.ts +0 -6
  42. package/vscode-dts/vscode.proposed.contribMergeEditorMenus.d.ts +0 -6
  43. package/vscode-dts/vscode.proposed.contribMultiDiffEditorMenus.d.ts +0 -6
  44. package/vscode-dts/vscode.proposed.contribNotebookStaticPreloads.d.ts +0 -6
  45. package/vscode-dts/vscode.proposed.contribRemoteHelp.d.ts +0 -6
  46. package/vscode-dts/vscode.proposed.contribShareMenu.d.ts +0 -7
  47. package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts +0 -7
  48. package/vscode-dts/vscode.proposed.contribSourceControlHistoryTitleMenu.d.ts +0 -7
  49. package/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +0 -7
  50. package/vscode-dts/vscode.proposed.contribSourceControlTitleMenu.d.ts +0 -7
  51. package/vscode-dts/vscode.proposed.contribStatusBarItems.d.ts +0 -8
  52. package/vscode-dts/vscode.proposed.contribViewContainerTitle.d.ts +0 -8
  53. package/vscode-dts/vscode.proposed.contribViewsRemote.d.ts +0 -6
  54. package/vscode-dts/vscode.proposed.contribViewsWelcome.d.ts +0 -6
  55. package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +0 -51
  56. package/vscode-dts/vscode.proposed.customEditorMove.d.ts +0 -29
  57. package/vscode-dts/vscode.proposed.debugVisualization.d.ts +0 -170
  58. package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +0 -63
  59. package/vscode-dts/vscode.proposed.diffCommand.d.ts +0 -38
  60. package/vscode-dts/vscode.proposed.diffContentOptions.d.ts +0 -16
  61. package/vscode-dts/vscode.proposed.documentFiltersExclusive.d.ts +0 -13
  62. package/vscode-dts/vscode.proposed.documentPaste.d.ts +0 -297
  63. package/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts +0 -71
  64. package/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts +0 -76
  65. package/vscode-dts/vscode.proposed.editorInsets.d.ts +0 -22
  66. package/vscode-dts/vscode.proposed.embeddings.d.ts +0 -33
  67. package/vscode-dts/vscode.proposed.extensionRuntime.d.ts +0 -24
  68. package/vscode-dts/vscode.proposed.extensionsAny.d.ts +0 -41
  69. package/vscode-dts/vscode.proposed.externalUriOpener.d.ts +0 -163
  70. package/vscode-dts/vscode.proposed.fileComments.d.ts +0 -42
  71. package/vscode-dts/vscode.proposed.fileSearchProvider.d.ts +0 -73
  72. package/vscode-dts/vscode.proposed.fileSearchProviderNew.d.ts +0 -101
  73. package/vscode-dts/vscode.proposed.findFiles2.d.ts +0 -89
  74. package/vscode-dts/vscode.proposed.findFiles2New.d.ts +0 -105
  75. package/vscode-dts/vscode.proposed.findTextInFiles.d.ts +0 -104
  76. package/vscode-dts/vscode.proposed.findTextInFilesNew.d.ts +0 -164
  77. package/vscode-dts/vscode.proposed.fsChunks.d.ts +0 -16
  78. package/vscode-dts/vscode.proposed.idToken.d.ts +0 -16
  79. package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +0 -95
  80. package/vscode-dts/vscode.proposed.inlineEdit.d.ts +0 -88
  81. package/vscode-dts/vscode.proposed.interactive.d.ts +0 -11
  82. package/vscode-dts/vscode.proposed.interactiveWindow.d.ts +0 -25
  83. package/vscode-dts/vscode.proposed.ipc.d.ts +0 -37
  84. package/vscode-dts/vscode.proposed.languageModelSystem.d.ts +0 -17
  85. package/vscode-dts/vscode.proposed.languageStatusText.d.ts +0 -12
  86. package/vscode-dts/vscode.proposed.lmTools.d.ts +0 -9
  87. package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +0 -87
  88. package/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts +0 -63
  89. package/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts +0 -47
  90. package/vscode-dts/vscode.proposed.notebookCellExecution.d.ts +0 -44
  91. package/vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts +0 -52
  92. package/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts +0 -17
  93. package/vscode-dts/vscode.proposed.notebookDeprecated.d.ts +0 -16
  94. package/vscode-dts/vscode.proposed.notebookExecution.d.ts +0 -39
  95. package/vscode-dts/vscode.proposed.notebookKernelSource.d.ts +0 -46
  96. package/vscode-dts/vscode.proposed.notebookLiveShare.d.ts +0 -21
  97. package/vscode-dts/vscode.proposed.notebookMessaging.d.ts +0 -68
  98. package/vscode-dts/vscode.proposed.notebookMime.d.ts +0 -33
  99. package/vscode-dts/vscode.proposed.notebookReplDocument.d.ts +0 -33
  100. package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +0 -55
  101. package/vscode-dts/vscode.proposed.portsAttributes.d.ts +0 -100
  102. package/vscode-dts/vscode.proposed.profileContentHandlers.d.ts +0 -19
  103. package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +0 -17
  104. package/vscode-dts/vscode.proposed.quickInputButtonLocation.d.ts +0 -29
  105. package/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts +0 -16
  106. package/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts +0 -19
  107. package/vscode-dts/vscode.proposed.resolvers.d.ts +0 -475
  108. package/vscode-dts/vscode.proposed.scmActionButton.d.ts +0 -18
  109. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +0 -88
  110. package/vscode-dts/vscode.proposed.scmMultiDiffEditor.d.ts +0 -34
  111. package/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts +0 -22
  112. package/vscode-dts/vscode.proposed.scmTextDocument.d.ts +0 -19
  113. package/vscode-dts/vscode.proposed.scmValidation.d.ts +0 -60
  114. package/vscode-dts/vscode.proposed.shareProvider.d.ts +0 -74
  115. package/vscode-dts/vscode.proposed.showLocal.d.ts +0 -19
  116. package/vscode-dts/vscode.proposed.speech.d.ts +0 -74
  117. package/vscode-dts/vscode.proposed.tabInputMultiDiff.d.ts +0 -22
  118. package/vscode-dts/vscode.proposed.tabInputTextMerge.d.ts +0 -25
  119. package/vscode-dts/vscode.proposed.taskPresentationGroup.d.ts +0 -16
  120. package/vscode-dts/vscode.proposed.telemetry.d.ts +0 -36
  121. package/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts +0 -32
  122. package/vscode-dts/vscode.proposed.terminalDimensions.d.ts +0 -39
  123. package/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts +0 -48
  124. package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +0 -87
  125. package/vscode-dts/vscode.proposed.terminalSelection.d.ts +0 -16
  126. package/vscode-dts/vscode.proposed.testObserver.d.ts +0 -199
  127. package/vscode-dts/vscode.proposed.testRelatedCode.d.ts +0 -36
  128. package/vscode-dts/vscode.proposed.textSearchCompleteNew.d.ts +0 -38
  129. package/vscode-dts/vscode.proposed.textSearchProvider.d.ts +0 -281
  130. package/vscode-dts/vscode.proposed.textSearchProviderNew.d.ts +0 -275
  131. package/vscode-dts/vscode.proposed.timeline.d.ts +0 -163
  132. package/vscode-dts/vscode.proposed.tokenInformation.d.ts +0 -26
  133. package/vscode-dts/vscode.proposed.treeViewActiveItem.d.ts +0 -30
  134. package/vscode-dts/vscode.proposed.treeViewMarkdownMessage.d.ts +0 -28
  135. package/vscode-dts/vscode.proposed.treeViewReveal.d.ts +0 -13
  136. package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +0 -48
  137. package/vscode-dts/vscode.proposed.tunnels.d.ts +0 -64
  138. package/vscode-dts/vscode.proposed.workspaceTrust.d.ts +0 -30
@@ -1,76 +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 hover represents additional information for a symbol or word. Hovers are
10
- * rendered in a tooltip-like widget.
11
- */
12
- export class VerboseHover extends Hover {
13
-
14
- /**
15
- * Can increase the verbosity of the hover
16
- */
17
- canIncreaseVerbosity?: boolean;
18
-
19
- /**
20
- * Can decrease the verbosity of the hover
21
- */
22
- canDecreaseVerbosity?: boolean;
23
-
24
- /**
25
- * Creates a new hover object.
26
- *
27
- * @param contents The contents of the hover.
28
- * @param range The range to which the hover applies.
29
- */
30
- constructor(contents: MarkdownString | MarkedString | Array<MarkdownString | MarkedString>, range?: Range, canIncreaseVerbosity?: boolean, canDecreaseVerbosity?: boolean);
31
- }
32
-
33
- export interface HoverContext {
34
-
35
- /**
36
- * The delta by which to increase/decrease the hover verbosity level
37
- */
38
- readonly verbosityDelta?: number;
39
-
40
- /**
41
- * The previous hover sent for the same position
42
- */
43
- readonly previousHover?: Hover;
44
- }
45
-
46
- export enum HoverVerbosityAction {
47
- /**
48
- * Increase the hover verbosity
49
- */
50
- Increase = 0,
51
- /**
52
- * Decrease the hover verbosity
53
- */
54
- Decrease = 1
55
- }
56
-
57
- /**
58
- * The hover provider class
59
- */
60
- export interface HoverProvider {
61
-
62
- /**
63
- * Provide a hover for the given position and document. Multiple hovers at the same
64
- * position will be merged by the editor. A hover can have a range which defaults
65
- * to the word range at the position when omitted.
66
- *
67
- * @param document The document in which the command was invoked.
68
- * @param position The position at which the command was invoked.
69
- * @param token A cancellation token.
70
- * @oaram context A hover context.
71
- * @returns A hover or a thenable that resolves to such. The lack of a result can be
72
- * signaled by returning `undefined` or `null`.
73
- */
74
- provideHover(document: TextDocument, position: Position, token: CancellationToken, context?: HoverContext): ProviderResult<VerboseHover>;
75
- }
76
- }
@@ -1,22 +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
- // https://github.com/microsoft/vscode/issues/85682
7
-
8
- declare module 'vscode' {
9
-
10
- export interface WebviewEditorInset {
11
- readonly editor: TextEditor;
12
- readonly line: number;
13
- readonly height: number;
14
- readonly webview: Webview;
15
- readonly onDidDispose: Event<void>;
16
- dispose(): void;
17
- }
18
-
19
- export namespace window {
20
- export function createWebviewTextEditorInset(editor: TextEditor, line: number, height: number, options?: WebviewOptions): WebviewEditorInset;
21
- }
22
- }
@@ -1,33 +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/212083
9
-
10
- export interface Embedding {
11
- readonly values: number[];
12
- }
13
-
14
- // TODO@API strictly not the right namespace...
15
- export namespace lm {
16
-
17
- export const embeddingModels: string[];
18
-
19
- export const onDidChangeEmbeddingModels: Event<void>;
20
-
21
- export function computeEmbeddings(embeddingsModel: string, input: string, token?: CancellationToken): Thenable<Embedding>;
22
-
23
- export function computeEmbeddings(embeddingsModel: string, input: string[], token?: CancellationToken): Thenable<Embedding[]>;
24
- }
25
-
26
- export interface EmbeddingsProvider {
27
- provideEmbeddings(input: string[], token: CancellationToken): ProviderResult<Embedding[]>;
28
- }
29
-
30
- export namespace lm {
31
- export function registerEmbeddingsProvider(embeddingsModel: string, provider: EmbeddingsProvider): Disposable;
32
- }
33
- }
@@ -1,24 +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/104436
9
-
10
- export enum ExtensionRuntime {
11
- /**
12
- * The extension is running in a NodeJS extension host. Runtime access to NodeJS APIs is available.
13
- */
14
- Node = 1,
15
- /**
16
- * The extension is running in a Webworker extension host. Runtime access is limited to Webworker APIs.
17
- */
18
- Webworker = 2
19
- }
20
-
21
- export interface ExtensionContext {
22
- readonly extensionRuntime: ExtensionRuntime;
23
- }
24
- }
@@ -1,41 +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/145307 @alexdima
9
-
10
- export interface Extension<T> {
11
-
12
- /**
13
- * `true` when the extension is associated to another extension host.
14
- *
15
- * *Note* that an extension from another extension host cannot export
16
- * API, e.g {@link Extension.exports its exports} are always `undefined`.
17
- */
18
- readonly isFromDifferentExtensionHost: boolean;
19
- }
20
-
21
- export namespace extensions {
22
-
23
- /**
24
- * Get an extension by its full identifier in the form of: `publisher.name`.
25
- *
26
- * @param extensionId An extension identifier.
27
- * @param includeDifferentExtensionHosts Include extensions from different extension host
28
- * @return An extension or `undefined`.
29
- */
30
- export function getExtension<T = any>(extensionId: string, includeDifferentExtensionHosts: boolean): Extension<T> | undefined;
31
- export function getExtension<T = any>(extensionId: string, includeDifferentExtensionHosts: true): Extension<T | undefined> | undefined;
32
-
33
- /**
34
- * All extensions across all extension hosts.
35
- *
36
- * @see {@link Extension.isFromDifferentExtensionHost}
37
- */
38
- export const allAcrossExtensionHosts: readonly Extension<void>[];
39
-
40
- }
41
- }
@@ -1,163 +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/109277
9
-
10
- /**
11
- * Details if an `ExternalUriOpener` can open a uri.
12
- *
13
- * The priority is also used to rank multiple openers against each other and determine
14
- * if an opener should be selected automatically or if the user should be prompted to
15
- * select an opener.
16
- *
17
- * The editor will try to use the best available opener, as sorted by `ExternalUriOpenerPriority`.
18
- * If there are multiple potential "best" openers for a URI, then the user will be prompted
19
- * to select an opener.
20
- */
21
- export enum ExternalUriOpenerPriority {
22
- /**
23
- * The opener is disabled and will never be shown to users.
24
- *
25
- * Note that the opener can still be used if the user specifically
26
- * configures it in their settings.
27
- */
28
- None = 0,
29
-
30
- /**
31
- * The opener can open the uri but will not cause a prompt on its own
32
- * since the editor always contributes a built-in `Default` opener.
33
- */
34
- Option = 1,
35
-
36
- /**
37
- * The opener can open the uri.
38
- *
39
- * The editor's built-in opener has `Default` priority. This means that any additional `Default`
40
- * openers will cause the user to be prompted to select from a list of all potential openers.
41
- */
42
- Default = 2,
43
-
44
- /**
45
- * The opener can open the uri and should be automatically selected over any
46
- * default openers, include the built-in one from the editor.
47
- *
48
- * A preferred opener will be automatically selected if no other preferred openers
49
- * are available. If multiple preferred openers are available, then the user
50
- * is shown a prompt with all potential openers (not just preferred openers).
51
- */
52
- Preferred = 3,
53
- }
54
-
55
- /**
56
- * Handles opening uris to external resources, such as http(s) links.
57
- *
58
- * Extensions can implement an `ExternalUriOpener` to open `http` links to a webserver
59
- * inside of the editor instead of having the link be opened by the web browser.
60
- *
61
- * Currently openers may only be registered for `http` and `https` uris.
62
- */
63
- export interface ExternalUriOpener {
64
-
65
- /**
66
- * Check if the opener can open a uri.
67
- *
68
- * @param uri The uri being opened. This is the uri that the user clicked on. It has
69
- * not yet gone through port forwarding.
70
- * @param token Cancellation token indicating that the result is no longer needed.
71
- *
72
- * @return Priority indicating if the opener can open the external uri.
73
- */
74
- canOpenExternalUri(uri: Uri, token: CancellationToken): ExternalUriOpenerPriority | Thenable<ExternalUriOpenerPriority>;
75
-
76
- /**
77
- * Open a uri.
78
- *
79
- * This is invoked when:
80
- *
81
- * - The user clicks a link which does not have an assigned opener. In this case, first `canOpenExternalUri`
82
- * is called and if the user selects this opener, then `openExternalUri` is called.
83
- * - The user sets the default opener for a link in their settings and then visits a link.
84
- *
85
- * @param resolvedUri The uri to open. This uri may have been transformed by port forwarding, so it
86
- * may not match the original uri passed to `canOpenExternalUri`. Use `ctx.originalUri` to check the
87
- * original uri.
88
- * @param ctx Additional information about the uri being opened.
89
- * @param token Cancellation token indicating that opening has been canceled.
90
- *
91
- * @return Thenable indicating that the opening has completed.
92
- */
93
- openExternalUri(resolvedUri: Uri, ctx: OpenExternalUriContext, token: CancellationToken): Thenable<void> | void;
94
- }
95
-
96
- /**
97
- * Additional information about the uri being opened.
98
- */
99
- interface OpenExternalUriContext {
100
- /**
101
- * The uri that triggered the open.
102
- *
103
- * This is the original uri that the user clicked on or that was passed to `openExternal.`
104
- * Due to port forwarding, this may not match the `resolvedUri` passed to `openExternalUri`.
105
- */
106
- readonly sourceUri: Uri;
107
- }
108
-
109
- /**
110
- * Additional metadata about a registered `ExternalUriOpener`.
111
- */
112
- interface ExternalUriOpenerMetadata {
113
-
114
- /**
115
- * List of uri schemes the opener is triggered for.
116
- *
117
- * Currently only `http` and `https` are supported.
118
- */
119
- readonly schemes: readonly string[];
120
-
121
- /**
122
- * Text displayed to the user that explains what the opener does.
123
- *
124
- * For example, 'Open in browser preview'
125
- */
126
- readonly label: string;
127
- }
128
-
129
- namespace window {
130
- /**
131
- * Register a new `ExternalUriOpener`.
132
- *
133
- * When a uri is about to be opened, an `onOpenExternalUri:SCHEME` activation event is fired.
134
- *
135
- * @param id Unique id of the opener, such as `myExtension.browserPreview`. This is used in settings
136
- * and commands to identify the opener.
137
- * @param opener Opener to register.
138
- * @param metadata Additional information about the opener.
139
- *
140
- * @returns Disposable that unregisters the opener.
141
- */
142
- export function registerExternalUriOpener(id: string, opener: ExternalUriOpener, metadata: ExternalUriOpenerMetadata): Disposable;
143
- }
144
-
145
- interface OpenExternalOptions {
146
- /**
147
- * Allows using openers contributed by extensions through `registerExternalUriOpener`
148
- * when opening the resource.
149
- *
150
- * If `true`, the editor will check if any contributed openers can handle the
151
- * uri, and fallback to the default opener behavior.
152
- *
153
- * If it is string, this specifies the id of the `ExternalUriOpener`
154
- * that should be used if it is available. Use `'default'` to force the editor's
155
- * standard external opener to be used.
156
- */
157
- readonly allowContributedOpeners?: boolean | string;
158
- }
159
-
160
- namespace env {
161
- export function openExternal(target: Uri, options?: OpenExternalOptions): Thenable<boolean>;
162
- }
163
- }
@@ -1,42 +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 CommentThread2 {
9
- /**
10
- * The range the comment thread is located within the document. The thread icon will be shown
11
- * at the last line of the range. When set to undefined, the comment will be associated with the
12
- * file, and not a specific range.
13
- */
14
- range: Range | undefined;
15
- }
16
-
17
- /**
18
- * The ranges a CommentingRangeProvider enables commenting on.
19
- */
20
- export interface CommentingRanges {
21
- /**
22
- * Enables comments to be added to a file without a specific range.
23
- */
24
- enableFileComments: boolean;
25
-
26
- /**
27
- * The ranges which allow new comment threads creation.
28
- */
29
- ranges?: Range[];
30
- }
31
-
32
- export interface CommentController {
33
- createCommentThread(uri: Uri, range: Range | undefined, comments: readonly Comment[]): CommentThread | CommentThread2;
34
- }
35
-
36
- export interface CommentingRangeProvider2 {
37
- /**
38
- * Provide a list of ranges which allow new comment threads creation or null for a given document
39
- */
40
- provideCommentingRanges(document: TextDocument, token: CancellationToken): ProviderResult<Range[] | CommentingRanges>;
41
- }
42
- }
@@ -1,73 +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/73524
9
-
10
- /**
11
- * The parameters of a query for file search.
12
- */
13
- export interface FileSearchQuery {
14
- /**
15
- * The search pattern to match against file paths.
16
- * To be correctly interpreted by Quick Open, this is interpreted in a relaxed way. The picker will apply its own highlighting and scoring on the results.
17
- *
18
- * Tips for matching in Quick Open:
19
- * With the pattern, the picker will use the file name and file paths to score each entry. The score will determine the ordering and filtering.
20
- * The scoring prioritizes prefix and substring matching. Then, it checks and it checks whether the pattern's letters appear in the same order as in the target (file name and path).
21
- * If a file does not match at all using our criteria, it will be omitted from Quick Open.
22
- */
23
- pattern: string;
24
- }
25
-
26
- /**
27
- * Options that apply to file search.
28
- */
29
- export interface FileSearchOptions extends SearchOptions {
30
- /**
31
- * The maximum number of results to be returned.
32
- */
33
- maxResults?: number;
34
-
35
- /**
36
- * A CancellationToken that represents the session for this search query. If the provider chooses to, this object can be used as the key for a cache,
37
- * and searches with the same session object can search the same cache. When the token is cancelled, the session is complete and the cache can be cleared.
38
- */
39
- session?: CancellationToken;
40
- }
41
-
42
- /**
43
- * A FileSearchProvider provides search results for files in the given folder that match a query string. It can be invoked by quickopen or other extensions.
44
- *
45
- * A FileSearchProvider is the more powerful of two ways to implement file search in the editor. Use a FileSearchProvider if you wish to search within a folder for
46
- * all files that match the user's query.
47
- *
48
- * The FileSearchProvider will be invoked on every keypress in quickopen. When `workspace.findFiles` is called, it will be invoked with an empty query string,
49
- * and in that case, every file in the folder should be returned.
50
- */
51
- export interface FileSearchProvider {
52
- /**
53
- * Provide the set of files that match a certain file path pattern.
54
- * @param query The parameters for this query.
55
- * @param options A set of options to consider while searching files.
56
- * @param token A cancellation token.
57
- */
58
- provideFileSearchResults(query: FileSearchQuery, options: FileSearchOptions, token: CancellationToken): ProviderResult<Uri[]>;
59
- }
60
-
61
- export namespace workspace {
62
- /**
63
- * Register a search provider.
64
- *
65
- * Only one provider can be registered per scheme.
66
- *
67
- * @param scheme The provider will be invoked for workspace folders that have this file scheme.
68
- * @param provider The provider.
69
- * @return A {@link Disposable} that unregisters this provider when being disposed.
70
- */
71
- export function registerFileSearchProvider(scheme: string, provider: FileSearchProvider): Disposable;
72
- }
73
- }
@@ -1,101 +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/73524
9
-
10
- /**
11
- * Options that apply to file search.
12
- */
13
- export interface FileSearchProviderOptions {
14
- folderOptions: {
15
- /**
16
- * The root folder to search within.
17
- */
18
- folder: Uri;
19
-
20
- /**
21
- * Files that match an `includes` glob pattern should be included in the search.
22
- */
23
- includes: string[];
24
-
25
- /**
26
- * Files that match an `excludes` glob pattern should be excluded from the search.
27
- */
28
- excludes: GlobPattern[];
29
-
30
- /**
31
- * Whether symlinks should be followed while searching.
32
- * For more info, see the setting description for `search.followSymlinks`.
33
- */
34
- followSymlinks: boolean;
35
-
36
- /**
37
- * Which file locations we should look for ignore (.gitignore or .ignore) files to respect.
38
- */
39
- useIgnoreFiles: {
40
- /**
41
- * Use ignore files at the current workspace root.
42
- */
43
- local: boolean;
44
- /**
45
- * Use ignore files at the parent directory. If set, {@link FileSearchProviderOptions.useIgnoreFiles.local} should also be `true`.
46
- */
47
- parent: boolean;
48
- /**
49
- * Use global ignore files. If set, {@link FileSearchProviderOptions.useIgnoreFiles.local} should also be `true`.
50
- */
51
- global: boolean;
52
- };
53
- }[];
54
-
55
- /**
56
- * An object with a lifespan that matches the session's lifespan. If the provider chooses to, this object can be used as the key for a cache,
57
- * and searches with the same session object can search the same cache. When the object is garbage-collected, the session is complete and the cache can be cleared.
58
- * Please do not store any references to the session object, except via a weak reference (e.g. `WeakRef` or `WeakMap`).
59
- */
60
- session: object;
61
-
62
- /**
63
- * The maximum number of results to be returned.
64
- */
65
- maxResults: number;
66
- }
67
-
68
- /**
69
- * A FileSearchProvider provides search results for files in the given folder that match a query string. It can be invoked by quickopen or other extensions.
70
- *
71
- * A FileSearchProvider is the more powerful of two ways to implement file search in the editor. Use a FileSearchProvider if you wish to search within a folder for
72
- * all files that match the user's query.
73
- *
74
- * The FileSearchProvider will be invoked on every keypress in quickopen.
75
- */
76
- export interface FileSearchProviderNew {
77
- /**
78
- * WARNING: VERY EXPERIMENTAL.
79
- *
80
- * Provide the set of files that match a certain file path pattern.
81
- * @param pattern The search pattern to match against file paths.
82
- * @param options A set of options to consider while searching files.
83
- * @param token A cancellation token.
84
- */
85
- provideFileSearchResults(pattern: string, options: FileSearchProviderOptions, token: CancellationToken): ProviderResult<Uri[]>;
86
- }
87
-
88
- export namespace workspace {
89
- /**
90
- *
91
- * Register a search provider.
92
- *
93
- * Only one provider can be registered per scheme.
94
- *
95
- * @param scheme The provider will be invoked for workspace folders that have this file scheme.
96
- * @param provider The provider.
97
- * @return A {@link Disposable} that unregisters this provider when being disposed.
98
- */
99
- export function registerFileSearchProviderNew(scheme: string, provider: FileSearchProviderNew): Disposable;
100
- }
101
- }
@@ -1,89 +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 FindFiles2Options {
9
- // note: this is just FindTextInFilesOptions without select properties (include, previewOptions, beforeContext, afterContext)
10
-
11
- /**
12
- * A {@link GlobPattern glob pattern} that defines files and folders to exclude. The glob pattern
13
- * will be matched against the file paths of resulting matches relative to their workspace.
14
- */
15
- exclude?: GlobPattern;
16
-
17
- /**
18
- * Whether to use the values for files.exclude. Defaults to true.
19
- */
20
- useDefaultExcludes?: boolean;
21
-
22
- /**
23
- * Whether to use the values for search.exclude. Defaults to true. Will not be followed if `useDefaultExcludes` is set to `false`.
24
- */
25
- useDefaultSearchExcludes?: boolean;
26
-
27
- /**
28
- * The maximum number of results to search for
29
- */
30
- maxResults?: number;
31
-
32
- /**
33
- * Whether external files that exclude files, like .gitignore, should be respected.
34
- * Defaults to the value for `search.useIgnoreFiles` in settings.
35
- * For more info, see the setting listed above.
36
- */
37
- useIgnoreFiles?: boolean;
38
-
39
- /**
40
- * Whether global files that exclude files, like .gitignore, should be respected.
41
- * Must set `useIgnoreFiles` to `true` to use this.
42
- * Defaults to the value for `search.useGlobalIgnoreFiles` in settings.
43
- * For more info, see the setting listed above.
44
- */
45
- useGlobalIgnoreFiles?: boolean;
46
-
47
- /**
48
- * Whether files in parent directories that exclude files, like .gitignore, should be respected.
49
- * Must set `useIgnoreFiles` to `true` to use this.
50
- * Defaults to the value for `search.useParentIgnoreFiles` in settings.
51
- * For more info, see the setting listed above.
52
- */
53
- useParentIgnoreFiles?: boolean;
54
-
55
- /**
56
- * Whether symlinks should be followed while searching.
57
- * Defaults to the value for `search.followSymlinks` in settings.
58
- * For more info, see the setting listed above.
59
- */
60
- followSymlinks?: boolean;
61
-
62
- /**
63
- * If set to true, the `filePattern` arg will be fuzzy-searched instead of glob-searched.
64
- * If `filePattern` is a {@link RelativePattern relative pattern}, then the fuzzy search will act on the `pattern` of the {@link RelativePattern RelativePattern}
65
- */
66
- fuzzy?: boolean;
67
- }
68
-
69
- /**
70
- * Represents a session of a currently logged in user.
71
- */
72
- export namespace workspace {
73
- /**
74
- * Find files across all {@link workspace.workspaceFolders workspace folders} in the workspace.
75
- *
76
- * @example
77
- * findFiles('**​/*.js', {exclude: '**​/out/**', useIgnoreFiles: true, maxResults: 10})
78
- *
79
- * @param filePattern A {@link GlobPattern glob pattern} that defines the files to search for. The glob pattern
80
- * will be matched against the file paths of resulting matches relative to their workspace. Use a {@link RelativePattern relative pattern}
81
- * to restrict the search results to a {@link WorkspaceFolder workspace folder}.
82
- * @param options A set of {@link FindFiles2Options FindFiles2Options} that defines where and how to search (e.g. exclude settings).
83
- * @param token A token that can be used to signal cancellation to the underlying search engine.
84
- * @returns A thenable that resolves to an array of resource identifiers. Will return no results if no
85
- * {@link workspace.workspaceFolders workspace folders} are opened.
86
- */
87
- export function findFiles2(filePattern: GlobPattern, options?: FindFiles2Options, token?: CancellationToken): Thenable<Uri[]>;
88
- }
89
- }