We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version: 1.47.3 Commit: 91899dc Date: 2020-07-23T13:08:29.692Z Electron: 7.3.2 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Darwin x64 19.3.0
plaintext
.
const vscode = require('vscode'); function activate(context) { vscode.languages.registerCompletionItemProvider('plaintext', { provideCompletionItems() { return [ { label: 'pp', sortText: '01', kind: 5, }, { label: 'pp-1', filterText: '.pp-1', sortText: '02', kind: 5, textEdit: { range: { start: { line: 0, character: 0 }, end: { line: 0, character: 1 }, }, newText: '.pp-1', }, }, ]; }, }); } module.exports = { activate, };
Expected: pp show up before pp-1, as '01' < '02' Actual:
pp
pp-1
'01' < '02'
Related: vuejs/vetur#1804
@jrieken
The text was updated successfully, but these errors were encountered:
The sortText is only respected when no prefix is selected and since the latter item selects a prefix a score is computed and assigned.
Sorry, something went wrong.
jrieken
No branches or pull requests
Version: 1.47.3
Commit: 91899dc
Date: 2020-07-23T13:08:29.692Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.3.0
plaintext
file. Enter a dot.
Expected:
pp
show up beforepp-1
, as'01' < '02'
Actual:
Related: vuejs/vetur#1804
@jrieken
The text was updated successfully, but these errors were encountered: