export class Config {
readonly extensionId = "matklad.rust-analyzer";
- private readonly rootSection = "rust-analyzer";
+ readonly rootSection = "rust-analyzer";
private readonly requiresReloadOpts = [
"serverPath",
"cargo",
"files",
"highlighting",
"updates.channel",
+ "lens.enable",
+ "lens.run",
+ "lens.debug",
+ "lens.implementations",
]
.map(opt => `${this.rootSection}.${opt}`);
engine: this.get<string>("debug.engine"),
engineSettings: this.get<object>("debug.engineSettings"),
openUpDebugPane: this.get<boolean>("debug.openUpDebugPane"),
- sourceFileMap: sourceFileMap,
- useLaunchJson: this.get<object>("debug.useLaunchJson"),
+ sourceFileMap: sourceFileMap
+ };
+ }
+
+ get lens() {
+ return {
+ enable: this.get<boolean>("lens.enable"),
+ run: this.get<boolean>("lens.run"),
+ debug: this.get<boolean>("lens.debug"),
+ implementations: this.get<boolean>("lens.implementations"),
};
}
}