mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-11-10 00:59:44 +03:00
Throw correct error when an unimplemented command is used with arguments
Fixes #7207
This commit is contained in:
parent
9712a7744a
commit
b58bb6ed25
@ -632,7 +632,7 @@ function nameParser(
|
||||
name: [string, string],
|
||||
argParser: ArgParser | undefined
|
||||
): Parser<Parser<ExCommand>> {
|
||||
argParser ??= succeed(new UnimplementedCommand(name[1] ? `${name[0]}[${name[1]}]` : name[0]));
|
||||
argParser ??= all.result(new UnimplementedCommand(name[1] ? `${name[0]}[${name[1]}]` : name[0]));
|
||||
|
||||
const fullName = name[0] + name[1];
|
||||
const p = nameAbbrevParser(name[0], name[1]).result(argParser);
|
||||
|
Loading…
Reference in New Issue
Block a user