summaryrefslogtreecommitdiffstats
path: root/src/util.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.ts')
-rw-r--r--src/util.ts5
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) {