Skip to content

Commit 248b6c4

Browse files
committed
fix: the position of annotations
1 parent b4f393e commit 248b6c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vscode-js-profile-core/src/profileAnnotations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export abstract class ProfileAnnotations<DataType, NodeType extends INode> {
2626
for (const path of getCandidateDiskPaths(rootPath, src.source)) {
2727
this.set(
2828
path,
29-
new Position(Math.max(0, src.lineNumber), Math.max(0, src.columnNumber)),
29+
new Position(Math.max(0, src.lineNumber - 1), Math.max(0, src.columnNumber - 1)),
3030
node,
3131
);
3232
}

0 commit comments

Comments
 (0)