We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c44a14 commit c3d34b8Copy full SHA for c3d34b8
1 file changed
src/client/providers/completionProvider.ts
@@ -13,8 +13,10 @@ export class PythonCompletionItemProvider implements vscode.CompletionItemProvid
13
private static parseData(data: proxy.ICompletionResult): vscode.CompletionItem[] {
14
if (data && data.items.length > 0) {
15
return data.items.map(item => {
16
- var completionItem = new vscode.CompletionItem(item.text);
+ let completionItem = new vscode.CompletionItem(item.text);
17
completionItem.documentation = item.description;
18
+ // ensure the built in memebers are at the bottom
19
+ completionItem.sortText = (completionItem.label.startsWith("__") ? "z" : (completionItem.label.startsWith("_") ? "y" : "__")) + completionItem.label;
20
return completionItem;
21
});
22
}
0 commit comments