提交 93477a79 编写于 作者: J Johannes Rieken

honor sort text in suggest view mode, fixes #1403

上级 f54f8543
......@@ -31,7 +31,9 @@ import URI from 'vs/base/common/uri';
import { isFalsyOrEmpty } from 'vs/base/common/arrays';
import { onUnexpectedError, isPromiseCanceledError, illegalArgument } from 'vs/base/common/errors';
const defaultCompare: ISuggestionCompare = (a, b) => a.label.localeCompare(b.label);
const defaultCompare: ISuggestionCompare = (a, b) => {
return (a.sortText || a.label).localeCompare((b.sortText || b.label));
}
class CompletionItem {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册