Skip to content

Commit f1eef75

Browse files
committed
Update r.rmarkdown.codeLensCommands
Use an enum to restrict the input for the setting: r.rmarkdown.codeLensCommands
1 parent 03fcd0f commit f1eef75

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,13 +1193,25 @@
11931193
"r.rmarkdown.codeLensCommands": {
11941194
"type": "array",
11951195
"items": {
1196-
"type": "string"
1196+
"type": "string",
1197+
"enum": [
1198+
"r.selectCurrentChunk",
1199+
"r.runCurrentChunk",
1200+
"r.runAboveChunks",
1201+
"r.runCurrentAndBelowChunks",
1202+
"r.runBelowChunks",
1203+
"r.runAllChunks",
1204+
"r.runPreviousChunk",
1205+
"r.runNextChunk",
1206+
"r.goToPreviousChunk",
1207+
"r.goToNextChunk"
1208+
]
11971209
},
11981210
"default": [
11991211
"r.runCurrentChunk",
12001212
"r.runAboveChunks"
12011213
],
1202-
"description": "Customize RMarkdown CodeLens, which are inline commands/buttons e.g. 'Run Chunk' shown on the first line of each code chunk. Available commands:\n\nr.selectCurrentChunk\nr.runCurrentChunk\nr.runAboveChunks\nr.runCurrentAndBelowChunks\nr.runBelowChunks\nr.runAllChunks\nr.runPreviousChunk\nr.runNextChunk\nr.goToPreviousChunk\nr.goToNextChunk\n\n----------------------------------\nCustomize both the commands AND its orders (that is, CodeLens respect user-specified orders):"
1214+
"description": "Customize RMarkdown CodeLens, which are inline commands/buttons e.g. 'Run Chunk' shown on the first line of each code chunk. \nCustomize both the commands AND its orders (that is, CodeLens respect user-specified orders):"
12031215
},
12041216
"r.rmarkdown.enableCodeLens": {
12051217
"type": "boolean",

0 commit comments

Comments
 (0)