mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 11:24:24 +00:00
Add a setting to disable comment continuation in VSCode
This commit is contained in:
parent
ec3586eab9
commit
46d6357994
3 changed files with 19 additions and 4 deletions
|
@ -16,9 +16,13 @@ export class Config {
|
|||
readonly extensionId = "rust-lang.rust-analyzer";
|
||||
|
||||
readonly rootSection = "rust-analyzer";
|
||||
private readonly requiresWorkspaceReloadOpts = ["serverPath", "server"].map(
|
||||
(opt) => `${this.rootSection}.${opt}`
|
||||
);
|
||||
private readonly requiresWorkspaceReloadOpts = [
|
||||
"serverPath",
|
||||
"server",
|
||||
// FIXME: This shouldn't be here, changing this setting should reload
|
||||
// `continueCommentsOnNewline` behavior without restart
|
||||
"typing",
|
||||
].map((opt) => `${this.rootSection}.${opt}`);
|
||||
private readonly requiresReloadOpts = [
|
||||
"cargo",
|
||||
"procMacro",
|
||||
|
@ -140,6 +144,10 @@ export class Config {
|
|||
return this.get<boolean>("restartServerOnConfigChange");
|
||||
}
|
||||
|
||||
get typingContinueCommentsOnNewline() {
|
||||
return this.get<boolean>("typing.continueCommentsOnNewline");
|
||||
}
|
||||
|
||||
get debug() {
|
||||
let sourceFileMap = this.get<Record<string, string> | "auto">("debug.sourceFileMap");
|
||||
if (sourceFileMap !== "auto") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue