Skip to content

Commit cf48779

Browse files
authored
Merge branch 'main' into bobbrow/runWithoutDebugging
2 parents bd6eb8b + 7774daf commit cf48779

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

Extension/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,12 @@
17031703
"description": "%c_cpp.configuration.doxygen.generateOnType.description%",
17041704
"scope": "resource"
17051705
},
1706+
"C_Cpp.doxygen.generateOnCodeAction": {
1707+
"type": "boolean",
1708+
"default": true,
1709+
"description": "%c_cpp.configuration.doxygen.generateOnCodeAction.description%",
1710+
"scope": "resource"
1711+
},
17061712
"C_Cpp.doxygen.generatedStyle": {
17071713
"type": "string",
17081714
"enum": [

Extension/package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@
580580
]
581581
},
582582
"c_cpp.configuration.doxygen.generateOnType.description": "Controls whether to automatically insert the Doxygen comment after typing the chosen comment style.",
583+
"c_cpp.configuration.doxygen.generateOnCodeAction.description": "Controls whether the code action to generate a Doxygen comment is enabled.",
583584
"c_cpp.configuration.doxygen.generatedStyle.description": "The string of characters used as the starting line of the Doxygen comment.",
584585
"c_cpp.configuration.doxygen.sectionTags.description": "Select the Doxygen section tags that you would like to appear on hover in the tooltip area when the 'Simplify Structured Comments' setting is enabled. ",
585586
"c_cpp.configuration.commentContinuationPatterns.items.anyof.string.markdownDescription": {

Extension/src/LanguageServer/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,7 @@ export class DefaultClient implements Client {
15371537
vcFormatSpaceAroundTernaryOperator: settings.vcFormatSpaceAroundTernaryOperator,
15381538
vcFormatWrapPreserveBlocks: settings.vcFormatWrapPreserveBlocks,
15391539
doxygenGenerateOnType: settings.doxygenGenerateOnType,
1540+
doxygenGenerateOnCodeAction: settings.doxygenGenerateOnCodeAction,
15401541
doxygenGeneratedStyle: settings.doxygenGeneratedCommentStyle,
15411542
doxygenSectionTags: settings.doxygenSectionTags,
15421543
filesExclude: otherSettings.filesExclude,

Extension/src/LanguageServer/settings.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export interface WorkspaceFolderSettingsParams {
126126
vcFormatSpaceAroundTernaryOperator: string;
127127
vcFormatWrapPreserveBlocks: string;
128128
doxygenGenerateOnType: boolean;
129+
doxygenGenerateOnCodeAction: boolean;
129130
doxygenGeneratedStyle: string;
130131
doxygenSectionTags: string[];
131132
filesExclude: Excludes;
@@ -383,6 +384,7 @@ export class CppSettings extends Settings {
383384
public get simplifyStructuredComments(): boolean { return this.getAsBoolean("simplifyStructuredComments"); }
384385
public get doxygenGeneratedCommentStyle(): string { return this.getAsString("doxygen.generatedStyle"); }
385386
public get doxygenGenerateOnType(): boolean { return this.getAsBoolean("doxygen.generateOnType"); }
387+
public get doxygenGenerateOnCodeAction(): boolean { return this.getAsBoolean("doxygen.generateOnCodeAction"); }
386388
public get commentContinuationPatterns(): (string | CommentPattern)[] {
387389
const value: any = super.Section.get<any>("commentContinuationPatterns");
388390
if (this.isArrayOfCommentContinuationPatterns(value)) {

0 commit comments

Comments
 (0)