]> git.lizzy.rs Git - rust.git/commit
Merge #322
authorbors[bot] <bors[bot]@users.noreply.github.com>
Sat, 22 Dec 2018 13:34:04 +0000 (13:34 +0000)
committerbors[bot] <bors[bot]@users.noreply.github.com>
Sat, 22 Dec 2018 13:34:04 +0000 (13:34 +0000)
commit5a5402d4d4ab033f0035622df880c82ea064d2c5
treea0224a5e049e27f61c20f8d7fd0b723e832192b6
parent5c7e8f47a8318e744b8e5d5bcb127ca9753ca04b
parent0f5d9a03221ec9a4597f3e0bc29f210607713cb4
Merge #322

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 <me@maxfrai.com>