diff options
| author | HO-COOH <42881734+HO-COOH@users.noreply.github.com> | 2021-05-17 21:21:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-17 15:21:46 +0200 |
| commit | 327f8a8c12c0981ad5b31cf7dfde636e3fa43a9a (patch) | |
| tree | 3ce9fde1f2d0bfcf31eb93794ea63940f768a83b /src/util.ts | |
| parent | 57b20882140ea56b2c67fa43f345af114041f027 (diff) | |
| download | doxdocgen-327f8a8c12c0981ad5b31cf7dfde636e3fa43a9a.tar.gz | |
Add comment detection in providing doxygen command (#229)
Diffstat (limited to 'src/util.ts')
| -rw-r--r-- | src/util.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util.ts b/src/util.ts index f2068e7..f6e429a 100644 --- a/src/util.ts +++ b/src/util.ts @@ -2,9 +2,10 @@ import * as env from "env-var"; import * as vscode from "vscode"; /** - * Check if a specific line is inside a comment block + * Check if a specific line will be inside a comment block if comment block is inserted, + * that is a line before the active line * @param activeEditor the active editor - * @param activeLine the line number to be checked + * @param activeLine the !previous! line to be checked */ export function inComment(activeEditor: vscode.TextEditor, activeLine: number): boolean { if (activeLine === 0) { |