Skip to content
New issue

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

command 'type' already exists #4

Closed
bpanmit opened this issue Jun 24, 2022 · 4 comments
Closed

command 'type' already exists #4

bpanmit opened this issue Jun 24, 2022 · 4 comments

Comments

@bpanmit
Copy link

bpanmit commented Jun 24, 2022

After installation, when i pressed either the keyboard shortcut or used the command, it says command 'type' already exists

Command 'Jump-Select: Jump forward to next occurrence' resulted in an error (command 'type' already exists)

Could you help me to fix this issue?

@ArturoDent
Copy link
Owner

Unfortunately, this issue cannot be fixed. It means you have another extension that also uses the type command - vim and neovim and others do so. And only the last extension to register type that gets loaded when the extension host starts up can use it.

See Multiple extensions registering the 'type' command

We added registerCommand("type") especially to enable vim mode to be implemented from an extension. We didn't want to bake vim mode in the core, and there can be only one handler. We never considered typing being something collaborative (in this case between vscode-jumpy and VSCodeVim). Today, the last one wins.

@goyalyashpal
Copy link

hi! how can i know which other extension is using that type command? i have installed several of vim-like extensions, but i have disabled all of them; so...

@digitalmaster
Copy link

hi! how can i know which other extension is using that type command? i have installed several of vim-like extensions, but i have disabled all of them; so...

I'm trying to figure this same thing. I already uninstalled the ones mentioned.

@ArturoDent
Copy link
Owner

You can try the command Help: Start Extension Bisect and report the results.

The command will walk through bisecting your installed extensions where you should test this extension's keybindings at each step to see if the problem still exists. Hopefully, you get to another extension that is also registering the type command.

But if you still have the problem after disabling ALL your extensions then the bisect might do no good.

I note the issue I mentioned above is still open since 2016...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants