Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r--editors/code/src/main.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index c126a0a105..1b512696ac 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -14,6 +14,10 @@ export interface RustAnalyzerExtensionApi {
// FIXME: this should be non-optional
readonly client?: lc.LanguageClient;
+ // Allows adding a configuration override from another extension.
+ // `configuration` is a `rust-analyzer` subtree of the vscode configuration
+ // that gets merged with the workspace/user configuration. `extensionId` is
+ // used to only merge configuration override from present extensions.
addConfiguration(extensionId: string, configuration: Record<string, unknown>): Promise<void>;
}