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:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user