diff options
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) { |