@theia/plugin 1.43.1 → 1.45.0
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 +3 -3
- package/src/theia.d.ts +107 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.45.0",
|
|
4
4
|
"description": "Theia - Plugin API",
|
|
5
5
|
"types": "./src/theia.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"watch": "theiaext watch"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@theia/ext-scripts": "1.
|
|
30
|
+
"@theia/ext-scripts": "1.45.0"
|
|
31
31
|
},
|
|
32
32
|
"nyc": {
|
|
33
33
|
"extends": "../../configs/nyc.json"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "2b20a60a0f9b54b19838a0f71760989a19622495"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -1909,6 +1909,14 @@ export module '@theia/plugin' {
|
|
|
1909
1909
|
*/
|
|
1910
1910
|
tabSize?: number | string;
|
|
1911
1911
|
|
|
1912
|
+
/**
|
|
1913
|
+
* The number of spaces to insert when {@link TextEditorOptions.insertSpaces insertSpaces} is true.
|
|
1914
|
+
*
|
|
1915
|
+
* When getting a text editor's options, this property will always be a number (resolved).
|
|
1916
|
+
* When setting a text editor's options, this property is optional and it can be a number or `"tabSize"`.
|
|
1917
|
+
*/
|
|
1918
|
+
indentSize?: number | string;
|
|
1919
|
+
|
|
1912
1920
|
/**
|
|
1913
1921
|
* When pressing Tab insert {@link TextEditorOptions.tabSize n} spaces.
|
|
1914
1922
|
* When getting a text editor's options, this property will always be a boolean (resolved).
|
|
@@ -7720,6 +7728,12 @@ export module '@theia/plugin' {
|
|
|
7720
7728
|
*/
|
|
7721
7729
|
export const isTelemetryEnabled: boolean;
|
|
7722
7730
|
|
|
7731
|
+
/**
|
|
7732
|
+
* An {@link Event} which fires when the default shell changes. This fires with the new
|
|
7733
|
+
* shell path.
|
|
7734
|
+
*/
|
|
7735
|
+
export const onDidChangeShell: Event<string>;
|
|
7736
|
+
|
|
7723
7737
|
/**
|
|
7724
7738
|
* An {@link Event} which fires when the user enabled or disables telemetry.
|
|
7725
7739
|
* `true` if the user has enabled telemetry or `false` if the user has disabled telemetry.
|
|
@@ -7747,7 +7761,9 @@ export module '@theia/plugin' {
|
|
|
7747
7761
|
export const remoteName: string | undefined;
|
|
7748
7762
|
|
|
7749
7763
|
/**
|
|
7750
|
-
* The detected default shell for the extension host
|
|
7764
|
+
* The detected default shell for the extension host, this is overridden by the
|
|
7765
|
+
* `terminal.integrated.defaultProfile` setting for the extension host's platform. Note that in
|
|
7766
|
+
* environments that do not support a shell the value is the empty string.
|
|
7751
7767
|
*/
|
|
7752
7768
|
export const shell: string;
|
|
7753
7769
|
|
|
@@ -8038,6 +8054,43 @@ export module '@theia/plugin' {
|
|
|
8038
8054
|
unIndentedLinePattern?: RegExp;
|
|
8039
8055
|
}
|
|
8040
8056
|
|
|
8057
|
+
export enum SyntaxTokenType {
|
|
8058
|
+
/**
|
|
8059
|
+
* Everything except tokens that are part of comments, string literals and regular expressions.
|
|
8060
|
+
*/
|
|
8061
|
+
Other = 0,
|
|
8062
|
+
/**
|
|
8063
|
+
* A comment.
|
|
8064
|
+
*/
|
|
8065
|
+
Comment = 1,
|
|
8066
|
+
/**
|
|
8067
|
+
* A string literal.
|
|
8068
|
+
*/
|
|
8069
|
+
String = 2,
|
|
8070
|
+
/**
|
|
8071
|
+
* A regular expression.
|
|
8072
|
+
*/
|
|
8073
|
+
RegEx = 3
|
|
8074
|
+
}
|
|
8075
|
+
|
|
8076
|
+
/**
|
|
8077
|
+
* Describes pairs of strings where the close string will be automatically inserted when typing the opening string.
|
|
8078
|
+
*/
|
|
8079
|
+
export interface AutoClosingPair {
|
|
8080
|
+
/**
|
|
8081
|
+
* The string that will trigger the automatic insertion of the closing string.
|
|
8082
|
+
*/
|
|
8083
|
+
open: string;
|
|
8084
|
+
/**
|
|
8085
|
+
* The closing string that will be automatically inserted when typing the opening string.
|
|
8086
|
+
*/
|
|
8087
|
+
close: string;
|
|
8088
|
+
/**
|
|
8089
|
+
* A set of tokens where the pair should not be auto closed.
|
|
8090
|
+
*/
|
|
8091
|
+
notIn?: SyntaxTokenType[];
|
|
8092
|
+
}
|
|
8093
|
+
|
|
8041
8094
|
/**
|
|
8042
8095
|
* The language configuration interfaces defines the contract between extensions
|
|
8043
8096
|
* and various editor features, like automatic bracket insertion, automatic indentation etc.
|
|
@@ -8077,6 +8130,10 @@ export module '@theia/plugin' {
|
|
|
8077
8130
|
*/
|
|
8078
8131
|
onEnterRules?: OnEnterRule[];
|
|
8079
8132
|
|
|
8133
|
+
/**
|
|
8134
|
+
* The language's auto closing pairs.
|
|
8135
|
+
*/
|
|
8136
|
+
autoClosingPairs?: AutoClosingPair[];
|
|
8080
8137
|
}
|
|
8081
8138
|
|
|
8082
8139
|
/**
|
|
@@ -10001,6 +10058,24 @@ export module '@theia/plugin' {
|
|
|
10001
10058
|
*/
|
|
10002
10059
|
static readonly SourceFixAll: CodeActionKind;
|
|
10003
10060
|
|
|
10061
|
+
/**
|
|
10062
|
+
* Base kind for all code actions applying to the entire notebook's scope. CodeActionKinds using
|
|
10063
|
+
* this should always begin with `notebook.`
|
|
10064
|
+
*
|
|
10065
|
+
* This requires that new CodeActions be created for it and contributed via extensions.
|
|
10066
|
+
* Pre-existing kinds can not just have the new `notebook.` prefix added to them, as the functionality
|
|
10067
|
+
* is unique to the full-notebook scope.
|
|
10068
|
+
*
|
|
10069
|
+
* Notebook CodeActionKinds can be initialized as either of the following (both resulting in `notebook.source.xyz`):
|
|
10070
|
+
* - `const newKind = CodeActionKind.Notebook.append(CodeActionKind.Source.append('xyz').value)`
|
|
10071
|
+
* - `const newKind = CodeActionKind.Notebook.append('source.xyz')`
|
|
10072
|
+
*
|
|
10073
|
+
* Example Kinds/Actions:
|
|
10074
|
+
* - `notebook.source.organizeImports` (might move all imports to a new top cell)
|
|
10075
|
+
* - `notebook.source.normalizeVariableNames` (might rename all variables to a standardized casing format)
|
|
10076
|
+
*/
|
|
10077
|
+
static readonly Notebook: CodeActionKind;
|
|
10078
|
+
|
|
10004
10079
|
private constructor(value: string);
|
|
10005
10080
|
|
|
10006
10081
|
/**
|
|
@@ -16373,6 +16448,37 @@ export module '@theia/plugin' {
|
|
|
16373
16448
|
*/
|
|
16374
16449
|
location?: Location;
|
|
16375
16450
|
|
|
16451
|
+
/**
|
|
16452
|
+
* Context value of the test item. This can be used to contribute message-
|
|
16453
|
+
* specific actions to the test peek view. The value set here can be found
|
|
16454
|
+
* in the `testMessage` property of the following `menus` contribution points:
|
|
16455
|
+
*
|
|
16456
|
+
* - `testing/message/context` - context menu for the message in the results tree
|
|
16457
|
+
* - `testing/message/content` - a prominent button overlaying editor content where
|
|
16458
|
+
* the message is displayed.
|
|
16459
|
+
*
|
|
16460
|
+
* For example:
|
|
16461
|
+
*
|
|
16462
|
+
* ```json
|
|
16463
|
+
* "contributes": {
|
|
16464
|
+
* "menus": {
|
|
16465
|
+
* "testing/message/content": [
|
|
16466
|
+
* {
|
|
16467
|
+
* "command": "extension.deleteCommentThread",
|
|
16468
|
+
* "when": "testMessage == canApplyRichDiff"
|
|
16469
|
+
* }
|
|
16470
|
+
* ]
|
|
16471
|
+
* }
|
|
16472
|
+
* }
|
|
16473
|
+
* ```
|
|
16474
|
+
*
|
|
16475
|
+
* The command will be called with an object containing:
|
|
16476
|
+
* - `test`: the {@link TestItem} the message is associated with, *if* it
|
|
16477
|
+
* is still present in the {@link TestController.items} collection.
|
|
16478
|
+
* - `message`: the {@link TestMessage} instance.
|
|
16479
|
+
*/
|
|
16480
|
+
contextValue?: string;
|
|
16481
|
+
|
|
16376
16482
|
/**
|
|
16377
16483
|
* Creates a new TestMessage that will present as a diff in the editor.
|
|
16378
16484
|
* @param message Message to display to the user.
|