monaco-editor-sqlclient 0.29.2 → 0.29.4
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/esm/vs/basic-languages/sql/sql.js +2 -0
- package/esm/vs/editor/contrib/suggest/completionModel.js +5 -0
- package/esm/vs/editor/contrib/suggest/suggest.js +5 -0
- package/esm/vs/editor/contrib/suggest/suggestWidgetDetails.js +2 -2
- package/esm/vs/editor/contrib/suggest/suggestWidgetRenderer.js +9 -6
- package/package.json +1 -1
- package/CHANGELOG.md +0 -1229
- package/ThirdPartyNotices.txt +0 -256
|
@@ -769,6 +769,7 @@ export var language = {
|
|
|
769
769
|
'SET',
|
|
770
770
|
'SETS',
|
|
771
771
|
'SETUSER',
|
|
772
|
+
'SHOW',
|
|
772
773
|
'SHOW_STATISTICS',
|
|
773
774
|
'SHOWCONTIG',
|
|
774
775
|
'SHOWPLAN',
|
|
@@ -883,6 +884,7 @@ export var language = {
|
|
|
883
884
|
'TWO_DIGIT_YEAR_CUTOFF',
|
|
884
885
|
'TYPE',
|
|
885
886
|
'TYPE_WARNING',
|
|
887
|
+
'TABLES',
|
|
886
888
|
'UNBOUNDED',
|
|
887
889
|
'UNCHECKED',
|
|
888
890
|
'UNCOMMITTED',
|
|
@@ -98,6 +98,7 @@ export class CompletionModel {
|
|
|
98
98
|
// items that we have to score/filter and based on the
|
|
99
99
|
// user-configuration
|
|
100
100
|
const scoreFn = (!this._options.filterGraceful || source.length > 2000) ? fuzzyScore : fuzzyScoreGracefulAggressive;
|
|
101
|
+
//
|
|
101
102
|
for (let i = 0; i < source.length; i++) {
|
|
102
103
|
const item = source[i];
|
|
103
104
|
if (item.isInvalid) {
|
|
@@ -172,6 +173,10 @@ export class CompletionModel {
|
|
|
172
173
|
item.score = match;
|
|
173
174
|
}
|
|
174
175
|
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
175
180
|
item.idx = i;
|
|
176
181
|
item.distance = this._wordDistance.distance(item.position, item.completion);
|
|
177
182
|
target.push(item);
|
|
@@ -144,6 +144,7 @@ export function provideSuggestionItems(model, position, options = CompletionOpti
|
|
|
144
144
|
const durations = [];
|
|
145
145
|
let needsClipboard = false;
|
|
146
146
|
const onCompletionList = (provider, container, sw) => {
|
|
147
|
+
console.log('provider--------')
|
|
147
148
|
var _a, _b, _c;
|
|
148
149
|
if (!container) {
|
|
149
150
|
return;
|
|
@@ -185,6 +186,7 @@ export function provideSuggestionItems(model, position, options = CompletionOpti
|
|
|
185
186
|
return;
|
|
186
187
|
}
|
|
187
188
|
const sw = new StopWatch(true);
|
|
189
|
+
console.log('provideCompletionItems--------')
|
|
188
190
|
const list = yield _snippetSuggestSupport.provideCompletionItems(model, position, context, token);
|
|
189
191
|
onCompletionList(_snippetSuggestSupport, list, sw);
|
|
190
192
|
}))();
|
|
@@ -220,6 +222,9 @@ export function provideSuggestionItems(model, position, options = CompletionOpti
|
|
|
220
222
|
});
|
|
221
223
|
}
|
|
222
224
|
function defaultComparator(a, b) {
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
console.log('defaultComparator sortText')
|
|
223
228
|
// check with 'sortText'
|
|
224
229
|
if (a.sortTextLow && b.sortTextLow) {
|
|
225
230
|
if (a.sortTextLow < b.sortTextLow) {
|
|
@@ -142,7 +142,7 @@ let SuggestDetailsWidget = class SuggestDetailsWidget {
|
|
|
142
142
|
this._renderDisposeable.add(renderedContents);
|
|
143
143
|
this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(() => {
|
|
144
144
|
this.layout(this._size.width, this._type.clientHeight + this._docs.clientHeight);
|
|
145
|
-
this._onDidChangeContents.fire(this);
|
|
145
|
+
// this._onDidChangeContents.fire(this);
|
|
146
146
|
}));
|
|
147
147
|
}
|
|
148
148
|
this.domNode.style.userSelect = 'text';
|
|
@@ -158,7 +158,7 @@ let SuggestDetailsWidget = class SuggestDetailsWidget {
|
|
|
158
158
|
};
|
|
159
159
|
this._body.scrollTop = 0;
|
|
160
160
|
this.layout(this._size.width, this._type.clientHeight + this._docs.clientHeight);
|
|
161
|
-
this._onDidChangeContents.fire(this);
|
|
161
|
+
// this._onDidChangeContents.fire(this);
|
|
162
162
|
}
|
|
163
163
|
clearContents() {
|
|
164
164
|
this.domNode.classList.add('no-docs');
|
|
@@ -65,6 +65,7 @@ let ItemRenderer = class ItemRenderer {
|
|
|
65
65
|
this._onDidToggleDetails = new Emitter();
|
|
66
66
|
this.onDidToggleDetails = this._onDidToggleDetails.event;
|
|
67
67
|
this.templateId = 'suggestion';
|
|
68
|
+
this.isFirstShow = false
|
|
68
69
|
}
|
|
69
70
|
dispose() {
|
|
70
71
|
this._onDidToggleDetails.dispose();
|
|
@@ -188,12 +189,12 @@ let ItemRenderer = class ItemRenderer {
|
|
|
188
189
|
this._onDidToggleDetails.fire();
|
|
189
190
|
};
|
|
190
191
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
192
|
+
if(!this.isFirstShow){
|
|
193
|
+
this.isFirstShow = true
|
|
194
|
+
setTimeout(()=>{
|
|
195
|
+
this._onDidToggleDetails.fire();
|
|
196
|
+
},200)
|
|
197
|
+
}
|
|
197
198
|
}
|
|
198
199
|
else {
|
|
199
200
|
data.right.classList.remove('can-expand-details');
|
|
@@ -201,6 +202,8 @@ let ItemRenderer = class ItemRenderer {
|
|
|
201
202
|
data.readMore.onmousedown = null;
|
|
202
203
|
data.readMore.onclick = null;
|
|
203
204
|
}
|
|
205
|
+
|
|
206
|
+
|
|
204
207
|
}
|
|
205
208
|
disposeTemplate(templateData) {
|
|
206
209
|
templateData.disposables.dispose();
|