@theia/plugin 1.30.0-next.2 → 1.30.0-next.21
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 +50 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.30.0-next.
|
|
3
|
+
"version": "1.30.0-next.21+9908bf162",
|
|
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": "9908bf1623043b6effc99424fb3b29ee6f33afd7"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -315,7 +315,7 @@ export module '@theia/plugin' {
|
|
|
315
315
|
* @return A position that reflects the given delta. Will return `this` position if the change
|
|
316
316
|
* is not changing anything.
|
|
317
317
|
*/
|
|
318
|
-
translate(change: { lineDelta?: number; characterDelta?: number
|
|
318
|
+
translate(change: { lineDelta?: number; characterDelta?: number }): Position;
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
321
|
* Create a new position derived from this position.
|
|
@@ -333,7 +333,7 @@ export module '@theia/plugin' {
|
|
|
333
333
|
* @return A position that reflects the given change. Will return `this` position if the change
|
|
334
334
|
* is not changing anything.
|
|
335
335
|
*/
|
|
336
|
-
with(change: { line?: number; character?: number
|
|
336
|
+
with(change: { line?: number; character?: number }): Position;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
/**
|
|
@@ -2074,7 +2074,7 @@ export module '@theia/plugin' {
|
|
|
2074
2074
|
* Fire the event and pass data object
|
|
2075
2075
|
* @param data
|
|
2076
2076
|
*/
|
|
2077
|
-
fire(data
|
|
2077
|
+
fire(data: T): void;
|
|
2078
2078
|
|
|
2079
2079
|
/**
|
|
2080
2080
|
* Dispose this object
|
|
@@ -2782,6 +2782,16 @@ export module '@theia/plugin' {
|
|
|
2782
2782
|
*/
|
|
2783
2783
|
clear(): void;
|
|
2784
2784
|
|
|
2785
|
+
/**
|
|
2786
|
+
* Reveal this channel in the UI.
|
|
2787
|
+
*
|
|
2788
|
+
* @deprecated Use the overload with just one parameter (`show(preserveFocus?: boolean): void`).
|
|
2789
|
+
*
|
|
2790
|
+
* @param column This argument is **deprecated** and will be ignored.
|
|
2791
|
+
* @param preserveFocus When `true` the channel will not take focus.
|
|
2792
|
+
*/
|
|
2793
|
+
show(column?: ViewColumn, preserveFocus?: boolean): void;
|
|
2794
|
+
|
|
2785
2795
|
/**
|
|
2786
2796
|
* Reveal this channel in the UI.
|
|
2787
2797
|
*
|
|
@@ -2928,6 +2938,12 @@ export module '@theia/plugin' {
|
|
|
2928
2938
|
*/
|
|
2929
2939
|
readonly exitStatus: TerminalExitStatus | undefined;
|
|
2930
2940
|
|
|
2941
|
+
/**
|
|
2942
|
+
* The object used to initialize the terminal, this is useful for example to detecting the shell type of when the terminal was not launched by this extension or for
|
|
2943
|
+
* detecting what folder the shell was launched in.
|
|
2944
|
+
*/
|
|
2945
|
+
readonly creationOptions: Readonly<TerminalOptions | ExtensionTerminalOptions>
|
|
2946
|
+
|
|
2931
2947
|
/**
|
|
2932
2948
|
* Send text to the terminal.
|
|
2933
2949
|
* @param text - text content.
|
|
@@ -2981,6 +2997,15 @@ export module '@theia/plugin' {
|
|
|
2981
2997
|
*/
|
|
2982
2998
|
env?: { [key: string]: string | null };
|
|
2983
2999
|
|
|
3000
|
+
/**
|
|
3001
|
+
* Whether the terminal process environment should be exactly as provided in
|
|
3002
|
+
* `TerminalOptions.env`. When this is false (default), the environment will be based on the
|
|
3003
|
+
* window's environment and also apply configured platform settings like
|
|
3004
|
+
* `terminal.integrated.windows.env` on top. When this is true, the complete environment
|
|
3005
|
+
* must be provided as nothing will be inherited from the process or any configuration.
|
|
3006
|
+
*/
|
|
3007
|
+
strictEnv?: boolean;
|
|
3008
|
+
|
|
2984
3009
|
/**
|
|
2985
3010
|
* A message to write to the terminal on first launch. Note that this is not sent to the
|
|
2986
3011
|
* process, but rather written directly to the terminal. This supports escape sequences such
|
|
@@ -3075,6 +3100,26 @@ export module '@theia/plugin' {
|
|
|
3075
3100
|
*/
|
|
3076
3101
|
onDidClose?: Event<void | number>;
|
|
3077
3102
|
|
|
3103
|
+
/**
|
|
3104
|
+
* An event that when fired allows changing the name of the terminal.
|
|
3105
|
+
*
|
|
3106
|
+
* Events fired before {@link Pseudoterminal.open} is called will be be ignored.
|
|
3107
|
+
*
|
|
3108
|
+
* **Example:** Change the terminal name to "My new terminal".
|
|
3109
|
+
* ```typescript
|
|
3110
|
+
* const writeEmitter = new vscode.EventEmitter<string>();
|
|
3111
|
+
* const changeNameEmitter = new vscode.EventEmitter<string>();
|
|
3112
|
+
* const pty: vscode.Pseudoterminal = {
|
|
3113
|
+
* onDidWrite: writeEmitter.event,
|
|
3114
|
+
* onDidChangeName: changeNameEmitter.event,
|
|
3115
|
+
* open: () => changeNameEmitter.fire('My new terminal'),
|
|
3116
|
+
* close: () => {}
|
|
3117
|
+
* };
|
|
3118
|
+
* vscode.window.createTerminal({ name: 'My terminal', pty });
|
|
3119
|
+
* ```
|
|
3120
|
+
*/
|
|
3121
|
+
onDidChangeName?: Event<string>;
|
|
3122
|
+
|
|
3078
3123
|
/**
|
|
3079
3124
|
* Implement to handle when the pty is opened.
|
|
3080
3125
|
*
|
|
@@ -5463,7 +5508,7 @@ export module '@theia/plugin' {
|
|
|
5463
5508
|
/**
|
|
5464
5509
|
* The tooltip text when you hover over this item.
|
|
5465
5510
|
*/
|
|
5466
|
-
tooltip?: string | undefined;
|
|
5511
|
+
tooltip?: string | MarkdownString | undefined;
|
|
5467
5512
|
|
|
5468
5513
|
/**
|
|
5469
5514
|
* The {@link Command command} which should be run when the tree item is selected.
|
|
@@ -8932,7 +8977,7 @@ export module '@theia/plugin' {
|
|
|
8932
8977
|
* @param tokenType The token type.
|
|
8933
8978
|
* @param tokenModifiers The token modifiers.
|
|
8934
8979
|
*/
|
|
8935
|
-
push(range: Range, tokenType: string, tokenModifiers?: string[]): void;
|
|
8980
|
+
push(range: Range, tokenType: string, tokenModifiers?: readonly string[]): void;
|
|
8936
8981
|
|
|
8937
8982
|
/**
|
|
8938
8983
|
* Finish and create a `SemanticTokens` instance.
|