Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Commit 9943ca1

Browse files
richardatphiloramya-rao-a
authored andcommitted
Enable 'Find All References' to work when the reference has been selected. (#2226)
1 parent 236c637 commit 9943ca1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/goReferences.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class GoReferenceProvider implements vscode.ReferenceProvider {
3333

3434
let filename = canonicalizeGOPATHPrefix(document.fileName);
3535
let cwd = path.dirname(filename);
36-
let offset = byteOffsetAt(document, position);
36+
let offset = byteOffsetAt(document, wordRange.start);
3737
let env = getToolsEnvVars();
3838
let buildTags = vscode.workspace.getConfiguration('go', document.uri)['buildTags'];
3939
let args = buildTags ? ['-tags', buildTags] : [];

0 commit comments

Comments
 (0)