X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=editors%2Fcode%2Fsrc%2Fconfig.ts;h=e8abf8284eb7380c8f641f369c5c006fcba8c776;hb=5dab5e737909532e4a65390541393af6ee72f65b;hp=24002483d4410e2ffa25d0207564118dc3046a7f;hpb=9ebb2acdca6c711cff7bfc84a410794739092dbe;p=rust.git diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 24002483d44..e8abf8284eb 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -8,7 +8,7 @@ export const NIGHTLY_TAG = "nightly"; export class Config { readonly extensionId = "matklad.rust-analyzer"; - private readonly rootSection = "rust-analyzer"; + readonly rootSection = "rust-analyzer"; private readonly requiresReloadOpts = [ "serverPath", "cargo", @@ -16,6 +16,10 @@ export class Config { "files", "highlighting", "updates.channel", + "lens.enable", + "lens.run", + "lens.debug", + "lens.implementations", ] .map(opt => `${this.rootSection}.${opt}`); @@ -116,8 +120,16 @@ export class Config { engine: this.get("debug.engine"), engineSettings: this.get("debug.engineSettings"), openUpDebugPane: this.get("debug.openUpDebugPane"), - sourceFileMap: sourceFileMap, - useLaunchJson: this.get("debug.useLaunchJson"), + sourceFileMap: sourceFileMap + }; + } + + get lens() { + return { + enable: this.get("lens.enable"), + run: this.get("lens.run"), + debug: this.get("lens.debug"), + implementations: this.get("lens.implementations"), }; } }