diff --git a/package.json b/package.json index cba63bd..1b1e30c 100644 --- a/package.json +++ b/package.json @@ -34,12 +34,28 @@ "actionItem": { "label": "${config.go.showExternalReferences && \"Hide references from other repositories\" || \"Show references from other repositories\"}" } + }, + { + "id": "impreciseResults", + "title": "Imprecise results", + "command": "open", + "commandArguments": [ + "https://sourcegraph.com/extensions/sourcegraph/go" + ], + "actionItem": { + "label": "Imprecise results", + "description": "These locations are computed using heuristics. Use the Go language server for precise results." + } } ], "menus": { "panel/toolbar": [ { "action": "externalReferences.toggle" + }, + { + "action": "impreciseResults", + "when": "isImprecise" } ] }, @@ -100,7 +116,7 @@ "typescript": "^3.1.6" }, "dependencies": { - "@sourcegraph/basic-code-intel": "6.0.5", + "@sourcegraph/basic-code-intel": "6.0.6", "@sourcegraph/vscode-ws-jsonrpc": "0.0.3-fork", "prettier": "^1.16.4", "rxjs": "^6.3.3", diff --git a/yarn.lock b/yarn.lock index e8c70ed..1f0b036 100644 --- a/yarn.lock +++ b/yarn.lock @@ -695,14 +695,14 @@ dependencies: esquery "^1.0.1" -"@sourcegraph/basic-code-intel@6.0.5": - version "6.0.5" - resolved "https://registry.yarnpkg.com/@sourcegraph/basic-code-intel/-/basic-code-intel-6.0.5.tgz#09d394066ea2e860c2c89354425c0fd331abe0c6" - integrity sha512-T6tx5srg9s/kqGnF9JydWqyAyxLGueaOa/IlLRRcKBwvVyTWPwBeg1kWXxPaBTVTR6VKt9E9LOx3BqNTGuNYHw== +"@sourcegraph/basic-code-intel@6.0.6": + version "6.0.6" + resolved "https://registry.yarnpkg.com/@sourcegraph/basic-code-intel/-/basic-code-intel-6.0.6.tgz#dfa02255519da49b8c2bce4167be90af7cb528cb" + integrity sha512-SgAhg8gBOQx3UvDNY8qLqBsJRJHW/b4kLnswEOi4A2lkCX9KaVFzLW03FmZO5/jRrXdT/uc0IJ0CLSwhu8ZRtg== dependencies: lodash "^4.17.11" rxjs "^6.3.3" - sourcegraph "^22.0.0" + sourcegraph "^23.0.0" "@sourcegraph/prettierrc@^2.2.0": version "2.2.0" @@ -4810,11 +4810,6 @@ source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6: dependencies: vscode-languageserver-types "^3.12.0" -sourcegraph@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-22.0.0.tgz#b259929c31bf367f5160056698a881dc26eb36bd" - integrity sha512-cJHby0OPCM0y0BmRTKhY89D02f9koROluHMJGQGNE8q9CoIVbe1s6ctHCytz7bjY9mKtCpQMbtxYQhfIm5S4lg== - sourcegraph@^23.0.0: version "23.0.0" resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-23.0.0.tgz#1fb96015af3e84cc9cc2944823f04a7e952ed565"