You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add setting to enable multiline comment customizations (#1583)
* Work in progress. Wrote framework for comment pattern handling. Implementation incomplete and some bugs remain.
* address TODOs
* incorrect disposal
* incorrect type decorations
* WIP: update changelog, add a test
* test updates
* rename the setting, update package.json and add more tests
* deal with whitespace continuations
* address PR feedback
Copy file name to clipboardExpand all lines: Extension/package.json
+30-1Lines changed: 30 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -194,6 +194,35 @@
194
194
"default": "checkFolders",
195
195
"description": "Instructs the extension when to use the \"files.exclude\" setting when determining which files should be added to the code navigation database while traversing through the paths in the \"browse.path\" array. \"checkFolders\" means that the exclusion filters will only be evaluated once per folder (individual files are not checked). \"checkFilesAndFolders\" means that the exclusion filters will be evaluated against every file and folder encountered. If your \"files.exclude\" setting only contains folders, then \"checkFolders\" is the best choice and will increase the speed at which the extension can initialize the code navigation database.",
196
196
"scope": "resource"
197
+
},
198
+
"C_Cpp.commentContinuationPatterns": {
199
+
"type": "array",
200
+
"default": [
201
+
"/**"
202
+
],
203
+
"items": {
204
+
"anyOf": [
205
+
{
206
+
"type": "string",
207
+
"description": "The pattern that begins a multiline or single line comment block. The continuation pattern defaults to ' * ' for multiline comment blocks or this string for single line comment blocks."
208
+
},
209
+
{
210
+
"type": "object",
211
+
"properties": {
212
+
"begin": {
213
+
"type": "string",
214
+
"description": "The pattern that begins a multiline or single line comment block."
215
+
},
216
+
"continue": {
217
+
"type": "string",
218
+
"description": "The text that will be inserted on the next line when Enter is pressed inside a multiline or single line comment block."
219
+
}
220
+
}
221
+
}
222
+
]
223
+
},
224
+
"description": "Defines the editor behavior for when the Enter key is pressed inside a multiline or single line comment block.",
0 commit comments