Skip to content

Commit cdcb585

Browse files
authored
Add workspaceSymbols.includeCommentSections setting (#8419)
Branched from #8412 For #4886 Extension side of posit-dev/ark#866 Can be merged separately.
1 parent e11e322 commit cdcb585

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

extensions/positron-r/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@
194194
"type": "boolean",
195195
"default": false,
196196
"description": "%r.configuration.symbols.includeAssignmentsInBlocks.description%"
197+
},
198+
"positron.r.workspaceSymbols.includeCommentSections": {
199+
"type": "boolean",
200+
"default": false,
201+
"description": "%r.configuration.workspaceSymbols.includeCommentSections.description%"
197202
}
198203
}
199204
},

extensions/positron-r/package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"r.configuration.pipe.magrittr.description": "Pipe operator from the magrittr package, re-exported by many other packages",
6666
"r.configuration.diagnostics.enable.description": "Enable R diagnostics globally",
6767
"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.",
68+
"r.configuration.workspaceSymbols.includeCommentSections.description": "Controls whether comment sections like `# My section ---` are included as workspace symbols.",
6869
"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.",
6970
"r.configuration.defaultRepositories.auto.description": "Automatically choose a default repository, or use a repos.conf file if it exists.",
7071
"r.configuration.defaultRepositories.rstudio.description": "Use the RStudio CRAN mirror (cran.rstudio.com)",

0 commit comments

Comments
 (0)