monaco-yql-languages 1.10.0 → 1.11.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
|
@@ -7,6 +7,7 @@ export type CompletionData = string | {
|
|
|
7
7
|
type: YqlCompletionType;
|
|
8
8
|
text: string;
|
|
9
9
|
shift?: number;
|
|
10
|
+
documentation?: languages.CompletionItem['documentation'];
|
|
10
11
|
filterText?: string;
|
|
11
12
|
};
|
|
12
13
|
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
|
@@ -37,8 +37,9 @@ export function provideCompletionItems(getCompletionList, preserveOrder, getFilt
|
|
|
37
37
|
let kind = 18;
|
|
38
38
|
let label;
|
|
39
39
|
let serverFilterText = '';
|
|
40
|
+
let serverDocumentation;
|
|
40
41
|
if (typeof item === 'object') {
|
|
41
|
-
const { text, type, shift, filterText } = item;
|
|
42
|
+
const { text, type, shift, filterText, documentation } = item;
|
|
42
43
|
if (filterText) {
|
|
43
44
|
serverFilterText = filterText;
|
|
44
45
|
}
|
|
@@ -48,6 +49,7 @@ export function provideCompletionItems(getCompletionList, preserveOrder, getFilt
|
|
|
48
49
|
const pos = text.length - shift;
|
|
49
50
|
labelAsSnippet = text.slice(0, pos) + '$0' + text.slice(pos);
|
|
50
51
|
}
|
|
52
|
+
serverDocumentation = documentation;
|
|
51
53
|
}
|
|
52
54
|
else {
|
|
53
55
|
label = item;
|
|
@@ -82,6 +84,7 @@ export function provideCompletionItems(getCompletionList, preserveOrder, getFilt
|
|
|
82
84
|
: undefined,
|
|
83
85
|
//@ts-ignore
|
|
84
86
|
range,
|
|
87
|
+
documentation: serverDocumentation,
|
|
85
88
|
});
|
|
86
89
|
}
|
|
87
90
|
return {
|