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

Commit

Permalink
Use guru implements both ways #1536
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Feb 28, 2018
1 parent b926dd3 commit 770be4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Binary file modified Go-latest.vsix
Binary file not shown.
5 changes: 5 additions & 0 deletions src/goImplementations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ interface GuruImplementsOutput {
to: GuruImplementsRef[];
to_method: GuruImplementsRef[];
from: GuruImplementsRef[];
fromptr: GuruImplementsRef[];
}

export class GoImplementationProvider implements vscode.ImplementationProvider {
Expand Down Expand Up @@ -88,6 +89,10 @@ export class GoImplementationProvider implements vscode.ImplementationProvider {
addResults(guruOutput.to_method);
} else if (guruOutput.to) {
addResults(guruOutput.to);
} else if (guruOutput.from) {
addResults(guruOutput.from);
} else if (guruOutput.fromptr) {
addResults(guruOutput.fromptr);
}

return resolve(results);
Expand Down
2 changes: 1 addition & 1 deletion src/goMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function activate(ctx: vscode.ExtensionContext): void {
"data": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
// sendTelemetryEvent('beta-testing', { version: '0.6.75', date: '02/10/2018' });
sendTelemetryEvent('beta-testing', { version: '0.6.78', date: '02/27/2018' });

let useLangServer = vscode.workspace.getConfiguration('go')['useLanguageServer'];
let langServerFlags: string[] = vscode.workspace.getConfiguration('go')['languageServerFlags'] || [];
Expand Down

0 comments on commit 770be4c

Please sign in to comment.