From 327f8a8c12c0981ad5b31cf7dfde636e3fa43a9a Mon Sep 17 00:00:00 2001 From: HO-COOH <42881734+HO-COOH@users.noreply.github.com> Date: Mon, 17 May 2021 21:21:46 +0800 Subject: Add comment detection in providing doxygen command (#229) --- src/util.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/util.ts') 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) { -- cgit v1.2.3