Show emoji autocomplete only after the user has type 2 characters
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
ea38990d94
commit
b5b0a9bc4e
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,8 @@ export default class EmojiProvider extends AutocompleteProvider {
|
||||||
|
|
||||||
let completions = [];
|
let completions = [];
|
||||||
const { command, range } = this.getCurrentCommand(query, selection);
|
const { command, range } = this.getCurrentCommand(query, selection);
|
||||||
if (command) {
|
|
||||||
|
if (command && command[0].length > 2) {
|
||||||
const matchedString = command[0];
|
const matchedString = command[0];
|
||||||
completions = this.matcher.match(matchedString, limit);
|
completions = this.matcher.match(matchedString, limit);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue