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

Fix analyzer extension fail when there are enabled any VIM extension #322

Merged
merged 1 commit into from
Dec 22, 2018
Merged

Fix analyzer extension fail when there are enabled any VIM extension #322

merged 1 commit into from
Dec 22, 2018

Conversation

max-frai
Copy link
Contributor

type command is allowed only once to be registered and it was built specially for vim mode.
So if user has vim extension enabled, rust-analyzer initialization failes on trying to register own type handler.

Unfortunatelly, there are no nice ways to check if command is already registered so the way is to wrap everything with try/catch and notify user about conflict.

@matklad
Copy link
Member

matklad commented Dec 22, 2018

bors r+

Thanks!

bors bot added a commit that referenced this pull request Dec 22, 2018
322: Fix analyzer extension fail when there are enabled any VIM extension r=matklad a=max-frai

`type` command is allowed only once to be registered and it was built specially for vim mode.
So if user has vim extension enabled, rust-analyzer initialization failes on trying to register own `type` handler.

Unfortunatelly, there are no nice ways to check if command is already registered so the way is to wrap everything with try/catch and notify user about conflict.

Co-authored-by: frai <[email protected]>
@bors
Copy link
Contributor

bors bot commented Dec 22, 2018

Build succeeded

@bors bors bot merged commit 0f5d9a0 into rust-lang:master Dec 22, 2018
@regiontog
Copy link
Contributor

This issue may be of interest microsoft/vscode#13441

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

Successfully merging this pull request may close these issues.

3 participants