mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Don't make r-a fail to initialize if updating the config fails
This commit is contained in:
parent
8ac429dad9
commit
8496633c87
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ export async function createClient(serverPath: string, workspace: Workspace, ext
|
|||
let initializationOptions = vscode.workspace.getConfiguration("rust-analyzer");
|
||||
|
||||
// Update outdated user configs
|
||||
await updateConfig(initializationOptions);
|
||||
await updateConfig(initializationOptions).catch(err => {
|
||||
void vscode.window.showErrorMessage(`Failed updating old config keys: ${err.message}`);
|
||||
});
|
||||
|
||||
if (workspace.kind === "Detached Files") {
|
||||
initializationOptions = { "detachedFiles": workspace.files.map(file => file.uri.fsPath), ...initializationOptions };
|
||||
|
|
Loading…
Reference in a new issue