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

Commit

Permalink
Enable 'Find All References' to work when the reference has been sele…
Browse files Browse the repository at this point in the history
…cted. (#2226)
  • Loading branch information
richardatphilo authored and ramya-rao-a committed Jan 7, 2019
1 parent 236c637 commit 9943ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goReferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class GoReferenceProvider implements vscode.ReferenceProvider {

let filename = canonicalizeGOPATHPrefix(document.fileName);
let cwd = path.dirname(filename);
let offset = byteOffsetAt(document, position);
let offset = byteOffsetAt(document, wordRange.start);
let env = getToolsEnvVars();
let buildTags = vscode.workspace.getConfiguration('go', document.uri)['buildTags'];
let args = buildTags ? ['-tags', buildTags] : [];
Expand Down

0 comments on commit 9943ca1

Please sign in to comment.