coc-pyright 1.1.219 → 1.1.220
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/lib/index.js +1 -3
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -23381,9 +23381,7 @@ async function provideCompletionItem(document, position, context, token, next) {
|
|
|
23381
23381
|
if (!result)
|
|
23382
23382
|
return;
|
|
23383
23383
|
const items = Array.isArray(result) ? result : result.items;
|
|
23384
|
-
items.map((x) =>
|
|
23385
|
-
const privateLevel = (x) => (x.insertText || x.label).match(/^_*/)[0].length;
|
|
23386
|
-
items.sort((a, b) => privateLevel(a) - privateLevel(b) || (a.kind && b.kind ? a.kind - b.kind : 0));
|
|
23384
|
+
items.map((x) => x.sortText ? x.sortText = x.sortText.toLowerCase() : x.sortText = x.label.toLowerCase());
|
|
23387
23385
|
const snippetSupport = import_coc24.workspace.getConfiguration("pyright").get("completion.snippetSupport");
|
|
23388
23386
|
if (snippetSupport) {
|
|
23389
23387
|
for (const item of items) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coc-pyright",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.220",
|
|
4
4
|
"description": "Pyright extension for coc.nvim, static type checker for Python",
|
|
5
5
|
"author": "Heyward Fann <fannheyward@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1391,6 +1391,6 @@
|
|
|
1391
1391
|
]
|
|
1392
1392
|
},
|
|
1393
1393
|
"dependencies": {
|
|
1394
|
-
"pyright": "^1.1.
|
|
1394
|
+
"pyright": "^1.1.220"
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|