From 367c4bf11dfaf4d98d86a032c24cdfbd8042e792 Mon Sep 17 00:00:00 2001 From: Lionel Henry Date: Mon, 7 Jul 2025 13:31:45 +0200 Subject: [PATCH] Add `workspaceSymbols.includeCommentSections` setting --- extensions/positron-r/package.json | 5 +++++ extensions/positron-r/package.nls.json | 1 + 2 files changed, 6 insertions(+) diff --git a/extensions/positron-r/package.json b/extensions/positron-r/package.json index 981b4e106d73..169ae6165fa0 100644 --- a/extensions/positron-r/package.json +++ b/extensions/positron-r/package.json @@ -194,6 +194,11 @@ "type": "boolean", "default": false, "description": "%r.configuration.symbols.includeAssignmentsInBlocks.description%" + }, + "positron.r.workspaceSymbols.includeCommentSections": { + "type": "boolean", + "default": false, + "description": "%r.configuration.workspaceSymbols.includeCommentSections.description%" } } }, diff --git a/extensions/positron-r/package.nls.json b/extensions/positron-r/package.nls.json index 2f8121061f0b..e2aef92b8d36 100644 --- a/extensions/positron-r/package.nls.json +++ b/extensions/positron-r/package.nls.json @@ -65,6 +65,7 @@ "r.configuration.pipe.magrittr.description": "Pipe operator from the magrittr package, re-exported by many other packages", "r.configuration.diagnostics.enable.description": "Enable R diagnostics globally", "r.configuration.symbols.includeAssignmentsInBlocks.description": "Controls whether assigned objects inside `{}` blocks are included as document symbols, in addition to top-level assignments. Reopen files or restart the server for the setting to take effect.", + "r.configuration.workspaceSymbols.includeCommentSections.description": "Controls whether comment sections like `# My section ---` are included as workspace symbols.", "r.configuration.defaultRepositories.description": "The default repositories to use for R package installation, if no repository is otherwise specified in R startup scripts (restart Positron to apply).\n\nThe default repositories will be set as the `repos` option in R.", "r.configuration.defaultRepositories.auto.description": "Automatically choose a default repository, or use a repos.conf file if it exists.", "r.configuration.defaultRepositories.rstudio.description": "Use the RStudio CRAN mirror (cran.rstudio.com)",