@theia/plugin 1.59.0 → 1.60.0-next.43
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 +9 -48
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.60.0-next.43+2a13720d2",
|
|
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": "2a13720d2d41d8ae6ee4e34cd2dee1c656a18018"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -357,19 +357,21 @@ export module '@theia/plugin' {
|
|
|
357
357
|
export class Selection extends Range {
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
|
-
*
|
|
360
|
+
* The position at which the selection starts.
|
|
361
|
+
* This position might be before or after {@link Selection.active active}.
|
|
361
362
|
*/
|
|
362
|
-
anchor: Position;
|
|
363
|
+
readonly anchor: Position;
|
|
363
364
|
|
|
364
365
|
/**
|
|
365
|
-
*
|
|
366
|
+
* The position of the cursor.
|
|
367
|
+
* This position might be before or after {@link Selection.anchor anchor}.
|
|
366
368
|
*/
|
|
367
|
-
active: Position;
|
|
369
|
+
readonly active: Position;
|
|
368
370
|
|
|
369
371
|
/**
|
|
370
|
-
* A selection is reversed if
|
|
372
|
+
* A selection is reversed if its {@link Selection.anchor anchor} is the {@link Selection.end end} position.
|
|
371
373
|
*/
|
|
372
|
-
isReversed: boolean;
|
|
374
|
+
readonly isReversed: boolean;
|
|
373
375
|
|
|
374
376
|
/**
|
|
375
377
|
* Create a selection from two positions.
|
|
@@ -14528,6 +14530,7 @@ export module '@theia/plugin' {
|
|
|
14528
14530
|
*
|
|
14529
14531
|
* @returns The resolved edit or a thenable that resolves to such. It is OK to return the given
|
|
14530
14532
|
* `edit`. If no result is returned, the given `edit` is used.
|
|
14533
|
+
* @stubbed
|
|
14531
14534
|
*/
|
|
14532
14535
|
resolveDocumentDropEdit?(edit: T, token: CancellationToken): ProviderResult<T>;
|
|
14533
14536
|
}
|
|
@@ -14728,48 +14731,6 @@ export module '@theia/plugin' {
|
|
|
14728
14731
|
*/
|
|
14729
14732
|
export type CharacterPair = [string, string];
|
|
14730
14733
|
|
|
14731
|
-
/**
|
|
14732
|
-
* An edit operation applied {@link DocumentDropEditProvider on drop}.
|
|
14733
|
-
*/
|
|
14734
|
-
export class DocumentDropEdit {
|
|
14735
|
-
/**
|
|
14736
|
-
* The text or snippet to insert at the drop location.
|
|
14737
|
-
*/
|
|
14738
|
-
insertText: string | SnippetString;
|
|
14739
|
-
|
|
14740
|
-
/**
|
|
14741
|
-
* An optional additional edit to apply on drop.
|
|
14742
|
-
*/
|
|
14743
|
-
additionalEdit?: WorkspaceEdit;
|
|
14744
|
-
|
|
14745
|
-
/**
|
|
14746
|
-
* @param insertText The text or snippet to insert at the drop location.
|
|
14747
|
-
*/
|
|
14748
|
-
constructor(insertText: string | SnippetString);
|
|
14749
|
-
}
|
|
14750
|
-
|
|
14751
|
-
/**
|
|
14752
|
-
* Provider which handles dropping of resources into a text editor.
|
|
14753
|
-
*
|
|
14754
|
-
* This allows users to drag and drop resources (including resources from external apps) into the editor. While dragging
|
|
14755
|
-
* and dropping files, users can hold down `shift` to drop the file into the editor instead of opening it.
|
|
14756
|
-
* Requires `editor.dropIntoEditor.enabled` to be on.
|
|
14757
|
-
*/
|
|
14758
|
-
export interface DocumentDropEditProvider {
|
|
14759
|
-
/**
|
|
14760
|
-
* Provide edits which inserts the content being dragged and dropped into the document.
|
|
14761
|
-
*
|
|
14762
|
-
* @param document The document in which the drop occurred.
|
|
14763
|
-
* @param position The position in the document where the drop occurred.
|
|
14764
|
-
* @param dataTransfer A {@link DataTransfer} object that holds data about what is being dragged and dropped.
|
|
14765
|
-
* @param token A cancellation token.
|
|
14766
|
-
*
|
|
14767
|
-
* @return A {@link DocumentDropEdit} or a thenable that resolves to such. The lack of a result can be
|
|
14768
|
-
* signaled by returning `undefined` or `null`.
|
|
14769
|
-
*/
|
|
14770
|
-
provideDocumentDropEdits(document: TextDocument, position: Position, dataTransfer: DataTransfer, token: CancellationToken): ProviderResult<DocumentDropEdit>;
|
|
14771
|
-
}
|
|
14772
|
-
|
|
14773
14734
|
/**
|
|
14774
14735
|
* Represents a session of a currently logged in user.
|
|
14775
14736
|
*/
|