monaco-yql-languages 1.11.1 → 1.12.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/build/completion.d.ts +1 -0
- package/build/completion.js +4 -1
- package/package.json +1 -1
package/build/completion.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type CompletionData = string | {
|
|
|
8
8
|
text: string;
|
|
9
9
|
shift?: number;
|
|
10
10
|
documentation?: string;
|
|
11
|
+
detail?: string;
|
|
11
12
|
filterText?: string;
|
|
12
13
|
};
|
|
13
14
|
export declare function provideCompletionItems(getCompletionList: CompletionListProvider, preserveOrder?: boolean, getFilterText?: (text: string) => string): (model: editor.ITextModel, position: Position, context: languages.CompletionContext, token: CancellationToken) => languages.ProviderResult<languages.CompletionList>;
|
package/build/completion.js
CHANGED
|
@@ -38,8 +38,9 @@ export function provideCompletionItems(getCompletionList, preserveOrder, getFilt
|
|
|
38
38
|
let label;
|
|
39
39
|
let serverFilterText = '';
|
|
40
40
|
let serverDocumentation;
|
|
41
|
+
let serverDetail;
|
|
41
42
|
if (typeof item === 'object') {
|
|
42
|
-
const { text, type, shift, filterText, documentation } = item;
|
|
43
|
+
const { text, type, shift, filterText, documentation, detail = 'See details', } = item;
|
|
43
44
|
if (filterText) {
|
|
44
45
|
serverFilterText = filterText;
|
|
45
46
|
}
|
|
@@ -51,6 +52,7 @@ export function provideCompletionItems(getCompletionList, preserveOrder, getFilt
|
|
|
51
52
|
}
|
|
52
53
|
if (documentation) {
|
|
53
54
|
serverDocumentation = { value: documentation };
|
|
55
|
+
serverDetail = detail;
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
else {
|
|
@@ -87,6 +89,7 @@ export function provideCompletionItems(getCompletionList, preserveOrder, getFilt
|
|
|
87
89
|
//@ts-ignore
|
|
88
90
|
range,
|
|
89
91
|
documentation: serverDocumentation,
|
|
92
|
+
detail: serverDetail,
|
|
90
93
|
});
|
|
91
94
|
}
|
|
92
95
|
return {
|