We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4450082 commit 4c63db6Copy full SHA for 4c63db6
src/views/documentSymbolNode.ts
@@ -34,6 +34,7 @@ export class DocumentSymbolNode extends BaseSymbolNode {
34
}
35
36
protected get range(): Range {
37
- return (<DocumentSymbol>this.symbolInfo).range;
+ // Using `selectionRange` instead of `range` to make sure the cursor will be pointing to the codes, not the comments
38
+ return (<DocumentSymbol>this.symbolInfo).selectionRange;
39
40
0 commit comments