@theia/plugin 1.47.0-next.0 → 1.47.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 +41 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.47.0
|
|
3
|
+
"version": "1.47.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.47.0"
|
|
31
31
|
},
|
|
32
32
|
"nyc": {
|
|
33
33
|
"extends": "../../configs/nyc.json"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "96685e37b5450a599370355ccffd4062cf1b72ab"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
// This program and the accompanying materials are made available under the
|
|
5
5
|
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.g
|
|
7
7
|
//
|
|
8
8
|
// This Source Code may also be made available under the following Secondary
|
|
9
9
|
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
@@ -682,8 +682,12 @@ export module '@theia/plugin' {
|
|
|
682
682
|
/**
|
|
683
683
|
* Indicates that this markdown string is from a trusted source. Only *trusted*
|
|
684
684
|
* markdown supports links that execute commands, e.g. `[Run it](command:myCommandId)`.
|
|
685
|
+
*
|
|
686
|
+
* Defaults to `false` (commands are disabled).
|
|
687
|
+
*
|
|
688
|
+
* If this is an object, only the set of commands listed in `enabledCommands` are allowed.
|
|
685
689
|
*/
|
|
686
|
-
isTrusted?: boolean;
|
|
690
|
+
isTrusted?: boolean | { readonly enabledCommands: readonly string[] };
|
|
687
691
|
|
|
688
692
|
/**
|
|
689
693
|
* Indicates that this markdown string can contain {@link ThemeIcon ThemeIcons}, e.g. `$(zap)`.
|
|
@@ -7528,6 +7532,29 @@ export module '@theia/plugin' {
|
|
|
7528
7532
|
*/
|
|
7529
7533
|
export function findFiles(include: GlobPattern, exclude?: GlobPattern | null, maxResults?: number, token?: CancellationToken): Thenable<Uri[]>;
|
|
7530
7534
|
|
|
7535
|
+
/**
|
|
7536
|
+
* Saves the editor identified by the given resource and returns the resulting resource or `undefined`
|
|
7537
|
+
* if save was not successful or no editor with the given resource was found.
|
|
7538
|
+
*
|
|
7539
|
+
* **Note** that an editor with the provided resource must be opened in order to be saved.
|
|
7540
|
+
*
|
|
7541
|
+
* @param uri the associated uri for the opened editor to save.
|
|
7542
|
+
* @returns A thenable that resolves when the save operation has finished.
|
|
7543
|
+
*/
|
|
7544
|
+
export function save(uri: Uri): Thenable<Uri | undefined>;
|
|
7545
|
+
|
|
7546
|
+
/**
|
|
7547
|
+
* Saves the editor identified by the given resource to a new file name as provided by the user and
|
|
7548
|
+
* returns the resulting resource or `undefined` if save was not successful or cancelled or no editor
|
|
7549
|
+
* with the given resource was found.
|
|
7550
|
+
*
|
|
7551
|
+
* **Note** that an editor with the provided resource must be opened in order to be saved as.
|
|
7552
|
+
*
|
|
7553
|
+
* @param uri the associated uri for the opened editor to save as.
|
|
7554
|
+
* @returns A thenable that resolves when the save-as operation has finished.
|
|
7555
|
+
*/
|
|
7556
|
+
export function saveAs(uri: Uri): Thenable<Uri | undefined>;
|
|
7557
|
+
|
|
7531
7558
|
/**
|
|
7532
7559
|
* Save all dirty files.
|
|
7533
7560
|
*
|
|
@@ -7566,7 +7593,7 @@ export module '@theia/plugin' {
|
|
|
7566
7593
|
* @param options Immutable metadata about the provider.
|
|
7567
7594
|
* @return A {@link Disposable disposable} that unregisters this provider when being disposed.
|
|
7568
7595
|
*/
|
|
7569
|
-
export function registerFileSystemProvider(scheme: string, provider: FileSystemProvider, options?: { readonly isCaseSensitive?: boolean, readonly isReadonly?: boolean }): Disposable;
|
|
7596
|
+
export function registerFileSystemProvider(scheme: string, provider: FileSystemProvider, options?: { readonly isCaseSensitive?: boolean, readonly isReadonly?: boolean | MarkdownString }): Disposable;
|
|
7570
7597
|
|
|
7571
7598
|
/**
|
|
7572
7599
|
* Returns the {@link WorkspaceFolder workspace folder} that contains a given uri.
|
|
@@ -10254,15 +10281,7 @@ export module '@theia/plugin' {
|
|
|
10254
10281
|
* @param uri A resource identifier.
|
|
10255
10282
|
* @param edits An array of edits.
|
|
10256
10283
|
*/
|
|
10257
|
-
set(uri: Uri, edits: ReadonlyArray<[TextEdit | SnippetTextEdit, WorkspaceEditEntryMetadata]>): void;
|
|
10258
|
-
|
|
10259
|
-
/**
|
|
10260
|
-
* Set (and replace) text edits or snippet edits with metadata for a resource.
|
|
10261
|
-
*
|
|
10262
|
-
* @param uri A resource identifier.
|
|
10263
|
-
* @param edits An array of edits.
|
|
10264
|
-
*/
|
|
10265
|
-
set(uri: Uri, edits: ReadonlyArray<[TextEdit | SnippetTextEdit, WorkspaceEditEntryMetadata]>): void;
|
|
10284
|
+
set(uri: Uri, edits: ReadonlyArray<[TextEdit | SnippetTextEdit, WorkspaceEditEntryMetadata | undefined]>): void;
|
|
10266
10285
|
|
|
10267
10286
|
/**
|
|
10268
10287
|
* Set (and replace) notebook edits for a resource.
|
|
@@ -10278,7 +10297,7 @@ export module '@theia/plugin' {
|
|
|
10278
10297
|
* @param uri A resource identifier.
|
|
10279
10298
|
* @param edits An array of edits.
|
|
10280
10299
|
*/
|
|
10281
|
-
set(uri: Uri, edits: ReadonlyArray<[NotebookEdit, WorkspaceEditEntryMetadata]>): void;
|
|
10300
|
+
set(uri: Uri, edits: ReadonlyArray<[NotebookEdit, WorkspaceEditEntryMetadata | undefined]>): void;
|
|
10282
10301
|
|
|
10283
10302
|
/**
|
|
10284
10303
|
* Get the text edits for a resource.
|
|
@@ -15960,9 +15979,18 @@ export module '@theia/plugin' {
|
|
|
15960
15979
|
* the generic "run all" button, then the default profile for
|
|
15961
15980
|
* {@link TestRunProfileKind.Run} will be executed, although the
|
|
15962
15981
|
* user can configure this.
|
|
15982
|
+
*
|
|
15983
|
+
* Changes the user makes in their default profiles will be reflected
|
|
15984
|
+
* in this property after a {@link onDidChangeDefault} event.
|
|
15963
15985
|
*/
|
|
15964
15986
|
isDefault: boolean;
|
|
15965
15987
|
|
|
15988
|
+
/**
|
|
15989
|
+
* Fired when a user has changed whether this is a default profile. The
|
|
15990
|
+
* event contains the new value of {@link isDefault}
|
|
15991
|
+
*/
|
|
15992
|
+
onDidChangeDefault: Event<boolean>;
|
|
15993
|
+
|
|
15966
15994
|
/**
|
|
15967
15995
|
* Whether this profile supports continuous running of requests. If so,
|
|
15968
15996
|
* then {@link TestRunRequest.continuous} may be set to `true`. Defaults
|