Skip to content

Commit be8a30a

Browse files
committed
fix: Fix the problem that the number of lines of vue file function is one more
1 parent 22c60e1 commit be8a30a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/handle_file_utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function getFileAst (filePath: string): FileAstInfo {
177177
const compilerResult = parseComponent(fileCtx);
178178
if (compilerResult.script) {
179179
fileCtx = compilerResult.script.content;
180-
vueScriptStartLine = getVueScriptRealStartLine(filePath) + 1;
180+
vueScriptStartLine = getVueScriptRealStartLine(filePath);
181181
} else {
182182
fileCtx = '';
183183
}

0 commit comments

Comments
 (0)