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

Commit

Permalink
Remove initial null reference when hover
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Oct 1, 2017
1 parent a814a2a commit 1ee173e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified Go-latest.vsix
Binary file not shown.
4 changes: 2 additions & 2 deletions src/goExtraInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ export class GoHoverProvider implements HoverProvider {
}

public provideHover(document: TextDocument, position: Position, token: CancellationToken): Thenable<Hover> {
let goConfig = this.goConfig;
if (!this.goConfig) {
this.goConfig = vscode.workspace.getConfiguration('go', document.uri);
}
let goConfig = this.goConfig;

// Temporary fix to fall back to godoc if guru is the set docsTool
if (goConfig['docsTool'] === 'guru') {
goConfig = Object.assign({}, goConfig, {'docsTool': 'godoc'});
goConfig = Object.assign({}, goConfig, { 'docsTool': 'godoc' });
}
return definitionLocation(document, position, goConfig, true).then(definitionInfo => {
if (definitionInfo == null) return null;
Expand Down
2 changes: 1 addition & 1 deletion src/goMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function activate(ctx: vscode.ExtensionContext): void {
"data": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
sendTelemetryEvent('beta-testing', { version: '0.6.66', date: '09/26/2017' });
sendTelemetryEvent('beta-testing', { version: '0.6.66', date: '10/01/2017' });

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

0 comments on commit 1ee173e

Please sign in to comment.