Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 8496633

Browse files
committed
Don't make r-a fail to initialize if updating the config fails
1 parent 8ac429d commit 8496633

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

editors/code/src/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ export async function createClient(serverPath: string, workspace: Workspace, ext
4949
let initializationOptions = vscode.workspace.getConfiguration("rust-analyzer");
5050

5151
// Update outdated user configs
52-
await updateConfig(initializationOptions);
52+
await updateConfig(initializationOptions).catch(err => {
53+
void vscode.window.showErrorMessage(`Failed updating old config keys: ${err.message}`);
54+
});
5355

5456
if (workspace.kind === "Detached Files") {
5557
initializationOptions = { "detachedFiles": workspace.files.map(file => file.uri.fsPath), ...initializationOptions };

0 commit comments

Comments
 (0)