@theia/plugin 1.31.0-next.0 → 1.31.0-next.2
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/src/theia-extra.d.ts +36 -0
- package/src/theia.d.ts +1 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.31.0-next.
|
|
3
|
+
"version": "1.31.0-next.2+fd845f65c",
|
|
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": "fd845f65c84bcc5b8064f04c621ae6b6baa014a0"
|
|
36
36
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2022 Ericsson 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* This is the place for extra APIs Theia supports compared to VS Code.
|
|
19
|
+
*/
|
|
20
|
+
export module '@theia/plugin' {
|
|
21
|
+
|
|
22
|
+
export interface WebviewPanel {
|
|
23
|
+
/**
|
|
24
|
+
* Show the webview panel according to a given options.
|
|
25
|
+
*
|
|
26
|
+
* A webview panel may only show in a single column at a time. If it is already showing, this
|
|
27
|
+
* method moves it to a new column.
|
|
28
|
+
*
|
|
29
|
+
* @param area target area where webview panel will be resided. Shows in the 'WebviewPanelTargetArea.Main' area if undefined.
|
|
30
|
+
* @param viewColumn View column to show the panel in. Shows in the current `viewColumn` if undefined.
|
|
31
|
+
* @param preserveFocus When `true`, the webview will not take focus.
|
|
32
|
+
*/
|
|
33
|
+
reveal(area?: WebviewPanelTargetArea, viewColumn?: ViewColumn, preserveFocus?: boolean): void;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
}
|
package/src/theia.d.ts
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
21
21
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
22
22
|
*--------------------------------------------------------------------------------------------*/
|
|
23
|
+
import './theia-extra';
|
|
23
24
|
import './theia-proposed';
|
|
24
25
|
|
|
25
26
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -3946,18 +3947,6 @@ export module '@theia/plugin' {
|
|
|
3946
3947
|
*/
|
|
3947
3948
|
reveal(viewColumn?: ViewColumn, preserveFocus?: boolean): void;
|
|
3948
3949
|
|
|
3949
|
-
/**
|
|
3950
|
-
* Show the webview panel according to a given options.
|
|
3951
|
-
*
|
|
3952
|
-
* A webview panel may only show in a single column at a time. If it is already showing, this
|
|
3953
|
-
* method moves it to a new column.
|
|
3954
|
-
*
|
|
3955
|
-
* @param area target area where webview panel will be resided. Shows in the 'WebviewPanelTargetArea.Main' area if undefined.
|
|
3956
|
-
* @param viewColumn View column to show the panel in. Shows in the current `viewColumn` if undefined.
|
|
3957
|
-
* @param preserveFocus When `true`, the webview will not take focus.
|
|
3958
|
-
*/
|
|
3959
|
-
reveal(area?: WebviewPanelTargetArea, viewColumn?: ViewColumn, preserveFocus?: boolean): void;
|
|
3960
|
-
|
|
3961
3950
|
/**
|
|
3962
3951
|
* Dispose of the webview panel.
|
|
3963
3952
|
*
|