|
@@ -393,7 +393,7 @@ export class CompleterModel implements Completer.IModel {
|
|
let items = JSONExt.deepCopy(this._completionItems.items);
|
|
let items = JSONExt.deepCopy(this._completionItems.items);
|
|
let results: CompletionHandler.ICompletionItem[] = [];
|
|
let results: CompletionHandler.ICompletionItem[] = [];
|
|
for (let item of items) {
|
|
for (let item of items) {
|
|
- // See if insert text matches query string
|
|
|
|
|
|
+ // See if label matches query string
|
|
let match = StringExt.matchSumOfSquares(item.label, query);
|
|
let match = StringExt.matchSumOfSquares(item.label, query);
|
|
if (match) {
|
|
if (match) {
|
|
// Highlight label text if there's a match
|
|
// Highlight label text if there's a match
|