@theia/plugin-ext 1.26.0-next.22 → 1.26.0-next.25
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/lib/common/paths-util.js +1 -1
- package/lib/common/paths-util.js.map +1 -1
- package/lib/common/plugin-api-rpc-model.d.ts +7 -12
- package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc-model.js +3 -1
- package/lib/common/plugin-api-rpc-model.js.map +1 -1
- package/lib/common/plugin-api-rpc.d.ts +18 -2
- package/lib/common/plugin-api-rpc.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.js.map +1 -1
- package/lib/main/browser/documents-main.d.ts.map +1 -1
- package/lib/main/browser/documents-main.js +2 -0
- package/lib/main/browser/documents-main.js.map +1 -1
- package/lib/main/browser/languages-main.d.ts +6 -2
- package/lib/main/browser/languages-main.d.ts.map +1 -1
- package/lib/main/browser/languages-main.js +15 -0
- package/lib/main/browser/languages-main.js.map +1 -1
- package/lib/main/browser/status-bar-message-registry-main.d.ts +2 -1
- package/lib/main/browser/status-bar-message-registry-main.d.ts.map +1 -1
- package/lib/main/browser/status-bar-message-registry-main.js.map +1 -1
- package/lib/main/browser/view/tree-view-widget.js +2 -2
- package/lib/main/browser/view/tree-view-widget.js.map +1 -1
- package/lib/plugin/documents.d.ts.map +1 -1
- package/lib/plugin/documents.js +3 -1
- package/lib/plugin/documents.js.map +1 -1
- package/lib/plugin/file-system-event-service-ext-impl.d.ts +1 -1
- package/lib/plugin/file-system-event-service-ext-impl.d.ts.map +1 -1
- package/lib/plugin/file-system-event-service-ext-impl.js +1 -1
- package/lib/plugin/file-system-event-service-ext-impl.js.map +1 -1
- package/lib/plugin/languages.d.ts +4 -1
- package/lib/plugin/languages.d.ts.map +1 -1
- package/lib/plugin/languages.js +117 -0
- package/lib/plugin/languages.js.map +1 -1
- package/lib/plugin/markdown-string.d.ts +23 -9
- package/lib/plugin/markdown-string.d.ts.map +1 -1
- package/lib/plugin/markdown-string.js +97 -26
- package/lib/plugin/markdown-string.js.map +1 -1
- package/lib/plugin/plugin-context.d.ts.map +1 -1
- package/lib/plugin/plugin-context.js +6 -1
- package/lib/plugin/plugin-context.js.map +1 -1
- package/lib/plugin/scm.js +1 -1
- package/lib/plugin/scm.js.map +1 -1
- package/lib/plugin/status-bar/status-bar-item.d.ts +2 -2
- package/lib/plugin/status-bar/status-bar-item.d.ts.map +1 -1
- package/lib/plugin/status-bar/status-bar-item.js.map +1 -1
- package/lib/plugin/type-converters.d.ts +6 -5
- package/lib/plugin/type-converters.d.ts.map +1 -1
- package/lib/plugin/type-converters.js +12 -6
- package/lib/plugin/type-converters.js.map +1 -1
- package/lib/plugin/type-converters.spec.js +16 -15
- package/lib/plugin/type-converters.spec.js.map +1 -1
- package/lib/plugin/types-impl.d.ts +16 -8
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/types-impl.js +14 -7
- package/lib/plugin/types-impl.js.map +1 -1
- package/lib/plugin/workspace.js +1 -1
- package/lib/plugin/workspace.js.map +1 -1
- package/package.json +23 -23
- package/src/common/paths-util.ts +1 -1
- package/src/common/plugin-api-rpc-model.ts +7 -12
- package/src/common/plugin-api-rpc.ts +21 -2
- package/src/main/browser/documents-main.ts +2 -0
- package/src/main/browser/languages-main.ts +17 -2
- package/src/main/browser/status-bar-message-registry-main.ts +2 -1
- package/src/main/browser/view/tree-view-widget.tsx +2 -2
- package/src/plugin/documents.ts +9 -8
- package/src/plugin/file-system-event-service-ext-impl.ts +1 -1
- package/src/plugin/languages.ts +124 -3
- package/src/plugin/markdown-string.ts +83 -26
- package/src/plugin/plugin-context.ts +9 -2
- package/src/plugin/scm.ts +1 -1
- package/src/plugin/status-bar/status-bar-item.ts +3 -3
- package/src/plugin/type-converters.spec.ts +20 -17
- package/src/plugin/type-converters.ts +17 -12
- package/src/plugin/types-impl.ts +19 -11
- package/src/plugin/workspace.ts +1 -1
package/src/plugin/types-impl.ts
CHANGED
|
@@ -28,7 +28,6 @@ import type * as theia from '@theia/plugin';
|
|
|
28
28
|
import { URI as CodeURI, UriComponents } from '@theia/core/shared/vscode-uri';
|
|
29
29
|
import { relative } from '../common/paths-util';
|
|
30
30
|
import { startsWithIgnoreCase } from '@theia/core/lib/common/strings';
|
|
31
|
-
import { MarkdownString, isMarkdownString } from './markdown-string';
|
|
32
31
|
import { SymbolKind } from '../common/plugin-api-rpc-model';
|
|
33
32
|
import { FileSystemProviderErrorCode, markAsFileSystemProviderError } from '@theia/filesystem/lib/common/files';
|
|
34
33
|
import * as paths from 'path';
|
|
@@ -262,6 +261,11 @@ export namespace TextEditorSelectionChangeKind {
|
|
|
262
261
|
}
|
|
263
262
|
}
|
|
264
263
|
|
|
264
|
+
export enum TextDocumentChangeReason {
|
|
265
|
+
Undo = 1,
|
|
266
|
+
Redo = 2,
|
|
267
|
+
}
|
|
268
|
+
|
|
265
269
|
@es5ClassCompat
|
|
266
270
|
export class Position {
|
|
267
271
|
private _line: number;
|
|
@@ -935,7 +939,7 @@ export class CompletionItem implements theia.CompletionItem {
|
|
|
935
939
|
kind?: CompletionItemKind;
|
|
936
940
|
tags?: CompletionItemTag[];
|
|
937
941
|
detail: string;
|
|
938
|
-
documentation: string | MarkdownString;
|
|
942
|
+
documentation: string | theia.MarkdownString;
|
|
939
943
|
sortText: string;
|
|
940
944
|
filterText: string;
|
|
941
945
|
preselect: boolean;
|
|
@@ -1054,9 +1058,9 @@ export enum MarkerTag {
|
|
|
1054
1058
|
@es5ClassCompat
|
|
1055
1059
|
export class ParameterInformation {
|
|
1056
1060
|
label: string | [number, number];
|
|
1057
|
-
documentation?: string | MarkdownString;
|
|
1061
|
+
documentation?: string | theia.MarkdownString;
|
|
1058
1062
|
|
|
1059
|
-
constructor(label: string | [number, number], documentation?: string | MarkdownString) {
|
|
1063
|
+
constructor(label: string | [number, number], documentation?: string | theia.MarkdownString) {
|
|
1060
1064
|
this.label = label;
|
|
1061
1065
|
this.documentation = documentation;
|
|
1062
1066
|
}
|
|
@@ -1065,10 +1069,10 @@ export class ParameterInformation {
|
|
|
1065
1069
|
@es5ClassCompat
|
|
1066
1070
|
export class SignatureInformation {
|
|
1067
1071
|
label: string;
|
|
1068
|
-
documentation?: string | MarkdownString;
|
|
1072
|
+
documentation?: string | theia.MarkdownString;
|
|
1069
1073
|
parameters: ParameterInformation[];
|
|
1070
1074
|
|
|
1071
|
-
constructor(label: string, documentation?: string | MarkdownString) {
|
|
1075
|
+
constructor(label: string, documentation?: string | theia.MarkdownString) {
|
|
1072
1076
|
this.label = label;
|
|
1073
1077
|
this.documentation = documentation;
|
|
1074
1078
|
this.parameters = [];
|
|
@@ -1095,20 +1099,18 @@ export class SignatureHelp {
|
|
|
1095
1099
|
@es5ClassCompat
|
|
1096
1100
|
export class Hover {
|
|
1097
1101
|
|
|
1098
|
-
public contents: MarkdownString[] | theia.MarkedString[];
|
|
1102
|
+
public contents: theia.MarkdownString[] | theia.MarkedString[];
|
|
1099
1103
|
public range?: Range;
|
|
1100
1104
|
|
|
1101
1105
|
constructor(
|
|
1102
|
-
contents: MarkdownString | theia.MarkedString | MarkdownString[] | theia.MarkedString[],
|
|
1106
|
+
contents: theia.MarkdownString | theia.MarkedString | theia.MarkdownString[] | theia.MarkedString[],
|
|
1103
1107
|
range?: Range
|
|
1104
1108
|
) {
|
|
1105
1109
|
if (!contents) {
|
|
1106
1110
|
illegalArgument('contents must be defined');
|
|
1107
1111
|
}
|
|
1108
1112
|
if (Array.isArray(contents)) {
|
|
1109
|
-
this.contents = <MarkdownString[] | theia.MarkedString[]>contents;
|
|
1110
|
-
} else if (isMarkdownString(contents)) {
|
|
1111
|
-
this.contents = [contents];
|
|
1113
|
+
this.contents = <theia.MarkdownString[] | theia.MarkedString[]>contents;
|
|
1112
1114
|
} else {
|
|
1113
1115
|
this.contents = [contents];
|
|
1114
1116
|
}
|
|
@@ -2486,6 +2488,12 @@ export class CallHierarchyOutgoingCall {
|
|
|
2486
2488
|
}
|
|
2487
2489
|
}
|
|
2488
2490
|
|
|
2491
|
+
export enum LanguageStatusSeverity {
|
|
2492
|
+
Information = 0,
|
|
2493
|
+
Warning = 1,
|
|
2494
|
+
Error = 2
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2489
2497
|
@es5ClassCompat
|
|
2490
2498
|
export class LinkedEditingRanges {
|
|
2491
2499
|
|
package/src/plugin/workspace.ts
CHANGED
|
@@ -35,7 +35,7 @@ import { RPCProtocol } from '../common/rpc-protocol';
|
|
|
35
35
|
import { WorkspaceRootsChangeEvent, SearchInWorkspaceResult, Range } from '../common/plugin-api-rpc-model';
|
|
36
36
|
import { EditorsAndDocumentsExtImpl } from './editors-and-documents';
|
|
37
37
|
import { URI } from './types-impl';
|
|
38
|
-
import { normalize } from '@theia/
|
|
38
|
+
import { normalize } from '@theia/core/lib/common/paths';
|
|
39
39
|
import { relative } from '../common/paths-util';
|
|
40
40
|
import { Schemes } from '../common/uri-components';
|
|
41
41
|
import { toWorkspaceFolder } from './type-converters';
|