Fix completion items sorting
This commit is contained in:
Родитель
3c7a979e97
Коммит
4437d8cd59
|
@ -307,7 +307,8 @@ export class CompletionItemsVisitor extends MongoVisitor<Promise<CompletionItem[
|
||||||
},
|
},
|
||||||
label: collection.collectionName,
|
label: collection.collectionName,
|
||||||
kind: CompletionItemKind.Property,
|
kind: CompletionItemKind.Property,
|
||||||
filterText: 'collection'
|
filterText: collection.collectionName,
|
||||||
|
sortText:`1:${collection.collectionName}`
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -375,7 +376,8 @@ export class CompletionItemsVisitor extends MongoVisitor<Promise<CompletionItem[
|
||||||
range
|
range
|
||||||
},
|
},
|
||||||
kind: CompletionItemKind.Function,
|
kind: CompletionItemKind.Function,
|
||||||
label
|
label,
|
||||||
|
sortText: `2:${label}`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче