diff options
| author | Christoph Schlosser <christoph@linux.com> | 2018-03-02 23:24:50 +0100 |
|---|---|---|
| committer | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2018-03-02 23:47:28 +0100 |
| commit | aeb67cd13dcf5e5b69898dff6c05c605a81827f4 (patch) | |
| tree | 1e5809b1f9957b02cb7f3d54ad4c5a95cb502e0e /src/Lang/Cpp/CppDocGen.ts | |
| parent | 8701d74ba4672c0d916fc01f950f5a7cc1298881 (diff) | |
| download | doxdocgen-aeb67cd13dcf5e5b69898dff6c05c605a81827f4.tar.gz | |
Add brief template
Diffstat (limited to 'src/Lang/Cpp/CppDocGen.ts')
| -rw-r--r-- | src/Lang/Cpp/CppDocGen.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Lang/Cpp/CppDocGen.ts b/src/Lang/Cpp/CppDocGen.ts index 56ce922..dd4818a 100644 --- a/src/Lang/Cpp/CppDocGen.ts +++ b/src/Lang/Cpp/CppDocGen.ts @@ -162,7 +162,9 @@ export class CppDocGen implements IDocGen { } protected generateBrief(lines: string[]) { - lines.push(this.cfg.C.commentPrefix + this.cfg.Generic.briefTemplate + this.getSmartText()); + lines.push(this.getTemplatedString(this.cfg.textTemplateReplace, + this.cfg.C.commentPrefix + this.cfg.Generic.briefTemplate, + this.getSmartText())); } protected generateFromTemplate(lines: string[], replace: string, template: string, templateWith: string[]) { @@ -365,10 +367,8 @@ export class CppDocGen implements IDocGen { line = baseLine; character = baseCharacter; } - const start = character - this.smartTextLength - 1; - const from: Position = new Position(line, (start > 0 ? start : 0)); const to: Position = new Position(line, character); - this.activeEditor.selection = new Selection(from, to); + this.activeEditor.selection = new Selection(to, to); } protected splitCasing(text: string): string { |