We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d03867e commit 9d72f86Copy full SHA for 9d72f86
src/lib/modules/tabComplete.ts
@@ -1,9 +1,15 @@
1
import { snakeCase } from 'change-case'
2
3
export const player = function (player: Player, serv: Server, options: Options) {
4
- const sendTabComplete = (matches, existingContent) => {
+ const sendTabComplete = (allMatches, existingContent) => {
5
+ const matches = allMatches.filter((match) => match.startsWith(existingContent))
6
player._client.write('tab_complete', {
- matches: matches.filter((match) => match.startsWith(existingContent))
7
+ matches: !serv.supportFeature("tabCompleteHasAToolTip") ? matches : matches.map((match) => {
8
+ return {
9
+ match,
10
+ tooltip: ""
11
+ }
12
+ })
13
})
14
}
15
0 commit comments