@theia/plugin 1.31.0-next.0 → 1.31.0-next.11
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 +42 -13
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.11+750b15fda",
|
|
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": "750b15fdaab581d9b2014729a4eac2e7078d88af"
|
|
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 */
|
|
@@ -3008,6 +3009,11 @@ export module '@theia/plugin' {
|
|
|
3008
3009
|
*/
|
|
3009
3010
|
readonly creationOptions: Readonly<TerminalOptions | ExtensionTerminalOptions>
|
|
3010
3011
|
|
|
3012
|
+
/**
|
|
3013
|
+
* The current state of the {@link Terminal}.
|
|
3014
|
+
*/
|
|
3015
|
+
readonly state: TerminalState;
|
|
3016
|
+
|
|
3011
3017
|
/**
|
|
3012
3018
|
* Send text to the terminal.
|
|
3013
3019
|
* @param text - text content.
|
|
@@ -3032,6 +3038,24 @@ export module '@theia/plugin' {
|
|
|
3032
3038
|
dispose(): void;
|
|
3033
3039
|
}
|
|
3034
3040
|
|
|
3041
|
+
export interface TerminalState {
|
|
3042
|
+
/**
|
|
3043
|
+
* Whether the {@link Terminal} has been interacted with. Interaction means that the
|
|
3044
|
+
* terminal has sent data to the process which depending on the terminal's _mode_. By
|
|
3045
|
+
* default input is sent when a key is pressed or when a command or extension sends text,
|
|
3046
|
+
* but based on the terminal's mode it can also happen on:
|
|
3047
|
+
*
|
|
3048
|
+
* - a pointer click event
|
|
3049
|
+
* - a pointer scroll event
|
|
3050
|
+
* - a pointer move event
|
|
3051
|
+
* - terminal focus in/out
|
|
3052
|
+
*
|
|
3053
|
+
* For more information on events that can send data see "DEC Private Mode Set (DECSET)" on
|
|
3054
|
+
* https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
|
|
3055
|
+
*/
|
|
3056
|
+
readonly isInteractedWith: boolean;
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3035
3059
|
/**
|
|
3036
3060
|
* Options to create terminal widget.
|
|
3037
3061
|
*/
|
|
@@ -3946,18 +3970,6 @@ export module '@theia/plugin' {
|
|
|
3946
3970
|
*/
|
|
3947
3971
|
reveal(viewColumn?: ViewColumn, preserveFocus?: boolean): void;
|
|
3948
3972
|
|
|
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
3973
|
/**
|
|
3962
3974
|
* Dispose of the webview panel.
|
|
3963
3975
|
*
|
|
@@ -5006,6 +5018,11 @@ export module '@theia/plugin' {
|
|
|
5006
5018
|
*/
|
|
5007
5019
|
export const onDidOpenTerminal: Event<Terminal>;
|
|
5008
5020
|
|
|
5021
|
+
/**
|
|
5022
|
+
* An {@link Event} which fires when a {@link Terminal.state terminal's state} has changed.
|
|
5023
|
+
*/
|
|
5024
|
+
export const onDidChangeTerminalState: Event<Terminal>;
|
|
5025
|
+
|
|
5009
5026
|
/**
|
|
5010
5027
|
* Create new terminal with predefined options.
|
|
5011
5028
|
* @param - terminal options.
|
|
@@ -6823,6 +6840,18 @@ export module '@theia/plugin' {
|
|
|
6823
6840
|
/**
|
|
6824
6841
|
* A base file path to which this pattern will be matched against relatively.
|
|
6825
6842
|
*/
|
|
6843
|
+
baseUri: Uri;
|
|
6844
|
+
|
|
6845
|
+
/**
|
|
6846
|
+
* A base file path against which this pattern will be matched relatively.
|
|
6847
|
+
*
|
|
6848
|
+
* This matches the `fsPath` value of {@link RelativePattern.baseUri}.
|
|
6849
|
+
*
|
|
6850
|
+
* *Note:* updating this value will update {@link RelativePattern.baseUri} to
|
|
6851
|
+
* be a uri with `file` scheme.
|
|
6852
|
+
*
|
|
6853
|
+
* @deprecated This property is deprecated, please use {@link RelativePattern.baseUri} instead.
|
|
6854
|
+
*/
|
|
6826
6855
|
base: string;
|
|
6827
6856
|
|
|
6828
6857
|
/**
|
|
@@ -6842,7 +6871,7 @@ export module '@theia/plugin' {
|
|
|
6842
6871
|
* @param pattern A file glob pattern like `*.{ts,js}` that will be matched on file paths
|
|
6843
6872
|
* relative to the base path.
|
|
6844
6873
|
*/
|
|
6845
|
-
constructor(base: WorkspaceFolder | string, pattern: string)
|
|
6874
|
+
constructor(base: WorkspaceFolder | Uri | string, pattern: string)
|
|
6846
6875
|
}
|
|
6847
6876
|
|
|
6848
6877
|
/**
|