@theia/plugin 1.68.0-next.19 → 1.68.0-next.34
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.34+e43ded916",
|
|
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": "e43ded916743be7826bc3acad9d66241c94a2c52"
|
|
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';
|
|
@@ -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
|
+
}
|