@theia/plugin 1.68.0-next.23 → 1.68.0-next.48
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.68.0-next.
|
|
3
|
+
"version": "1.68.0-next.48+c13611b3f",
|
|
4
4
|
"description": "Theia - Plugin API",
|
|
5
5
|
"types": "./src/theia.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"nyc": {
|
|
33
33
|
"extends": "../../configs/nyc.json"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "c13611b3f07bfc3d2c7525d8488283ff3e575422"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import './theia.proposed.customEditorMove';
|
|
|
27
27
|
import './theia.proposed.debugVisualization';
|
|
28
28
|
import './theia.proposed.diffCommand';
|
|
29
29
|
import './theia.proposed.editSessionIdentityProvider';
|
|
30
|
+
import './theia.proposed.editorHoverVerbosityLevel';
|
|
30
31
|
import './theia.proposed.extensionsAny';
|
|
31
32
|
import './theia.proposed.externalUriOpener';
|
|
32
33
|
import './theia.proposed.findTextInFiles';
|
|
@@ -8257,6 +8258,11 @@ export module '@theia/plugin' {
|
|
|
8257
8258
|
*/
|
|
8258
8259
|
export const onDidGrantWorkspaceTrust: Event<void>;
|
|
8259
8260
|
|
|
8261
|
+
/**
|
|
8262
|
+
* Event that fires when the workspace trust state changes.
|
|
8263
|
+
*/
|
|
8264
|
+
export const onDidChangeWorkspaceTrust: Event<boolean>;
|
|
8265
|
+
|
|
8260
8266
|
/**
|
|
8261
8267
|
* Decodes the content from a `Uint8Array` to a `string`. You MUST
|
|
8262
8268
|
* provide the entire content at once to ensure that the encoding
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2025 EclipseSource GmbH and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
/*---------------------------------------------------------------------------------------------
|
|
18
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
|
+
*--------------------------------------------------------------------------------------------*/
|
|
21
|
+
|
|
22
|
+
// Copied from https://github.com/microsoft/vscode/blob/1.104.0/src/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts
|
|
23
|
+
|
|
24
|
+
export module '@theia/plugin' {
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* A hover represents additional information for a symbol or word. Hovers are
|
|
28
|
+
* rendered in a tooltip-like widget.
|
|
29
|
+
*/
|
|
30
|
+
export class VerboseHover extends Hover {
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Can increase the verbosity of the hover
|
|
34
|
+
*/
|
|
35
|
+
canIncreaseVerbosity?: boolean;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Can decrease the verbosity of the hover
|
|
39
|
+
*/
|
|
40
|
+
canDecreaseVerbosity?: boolean;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Creates a new hover object.
|
|
44
|
+
*
|
|
45
|
+
* @param contents The contents of the hover.
|
|
46
|
+
* @param range The range to which the hover applies.
|
|
47
|
+
*/
|
|
48
|
+
constructor(contents: MarkdownString | MarkedString | Array<MarkdownString | MarkedString>, range?: Range, canIncreaseVerbosity?: boolean, canDecreaseVerbosity?: boolean);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface HoverContext {
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The delta by which to increase/decrease the hover verbosity level
|
|
55
|
+
*/
|
|
56
|
+
readonly verbosityDelta?: number;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The previous hover sent for the same position
|
|
60
|
+
*/
|
|
61
|
+
readonly previousHover?: Hover;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export enum HoverVerbosityAction {
|
|
65
|
+
/**
|
|
66
|
+
* Increase the hover verbosity
|
|
67
|
+
*/
|
|
68
|
+
Increase = 0,
|
|
69
|
+
/**
|
|
70
|
+
* Decrease the hover verbosity
|
|
71
|
+
*/
|
|
72
|
+
Decrease = 1
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The hover provider class
|
|
77
|
+
*/
|
|
78
|
+
export interface HoverProvider {
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Provide a hover for the given position and document. Multiple hovers at the same
|
|
82
|
+
* position will be merged by the editor. A hover can have a range which defaults
|
|
83
|
+
* to the word range at the position when omitted.
|
|
84
|
+
*
|
|
85
|
+
* @param document The document in which the command was invoked.
|
|
86
|
+
* @param position The position at which the command was invoked.
|
|
87
|
+
* @param token A cancellation token.
|
|
88
|
+
* @oaram context A hover context.
|
|
89
|
+
* @returns A hover or a thenable that resolves to such. The lack of a result can be
|
|
90
|
+
* signaled by returning `undefined` or `null`.
|
|
91
|
+
*/
|
|
92
|
+
provideHover(document: TextDocument, position: Position, token: CancellationToken, context?: HoverContext): ProviderResult<VerboseHover>;
|
|
93
|
+
}
|
|
94
|
+
}
|