@theia/plugin 1.31.0-next.3 → 1.31.0-next.7
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.d.ts +41 -1
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.7+afe5f3ebe",
|
|
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": "afe5f3ebe1cf4aa3967747fb6d96f6427b3e178f"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -3009,6 +3009,11 @@ export module '@theia/plugin' {
|
|
|
3009
3009
|
*/
|
|
3010
3010
|
readonly creationOptions: Readonly<TerminalOptions | ExtensionTerminalOptions>
|
|
3011
3011
|
|
|
3012
|
+
/**
|
|
3013
|
+
* The current state of the {@link Terminal}.
|
|
3014
|
+
*/
|
|
3015
|
+
readonly state: TerminalState;
|
|
3016
|
+
|
|
3012
3017
|
/**
|
|
3013
3018
|
* Send text to the terminal.
|
|
3014
3019
|
* @param text - text content.
|
|
@@ -3033,6 +3038,24 @@ export module '@theia/plugin' {
|
|
|
3033
3038
|
dispose(): void;
|
|
3034
3039
|
}
|
|
3035
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
|
+
|
|
3036
3059
|
/**
|
|
3037
3060
|
* Options to create terminal widget.
|
|
3038
3061
|
*/
|
|
@@ -4995,6 +5018,11 @@ export module '@theia/plugin' {
|
|
|
4995
5018
|
*/
|
|
4996
5019
|
export const onDidOpenTerminal: Event<Terminal>;
|
|
4997
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
|
+
|
|
4998
5026
|
/**
|
|
4999
5027
|
* Create new terminal with predefined options.
|
|
5000
5028
|
* @param - terminal options.
|
|
@@ -6812,6 +6840,18 @@ export module '@theia/plugin' {
|
|
|
6812
6840
|
/**
|
|
6813
6841
|
* A base file path to which this pattern will be matched against relatively.
|
|
6814
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
|
+
*/
|
|
6815
6855
|
base: string;
|
|
6816
6856
|
|
|
6817
6857
|
/**
|
|
@@ -6831,7 +6871,7 @@ export module '@theia/plugin' {
|
|
|
6831
6871
|
* @param pattern A file glob pattern like `*.{ts,js}` that will be matched on file paths
|
|
6832
6872
|
* relative to the base path.
|
|
6833
6873
|
*/
|
|
6834
|
-
constructor(base: WorkspaceFolder | string, pattern: string)
|
|
6874
|
+
constructor(base: WorkspaceFolder | Uri | string, pattern: string)
|
|
6835
6875
|
}
|
|
6836
6876
|
|
|
6837
6877
|
/**
|