Skip to content

Commit 56c8161

Browse files
committed
add "Imprecise results" label to references
1 parent 4d858ae commit 56c8161

File tree

2 files changed

+35
-10
lines changed

2 files changed

+35
-10
lines changed

package.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,31 @@
1717
"language-server"
1818
],
1919
"contributes": {
20+
"actions": [
21+
{
22+
"id": "impreciseResults",
23+
"title": "Imprecise results",
24+
"command": "open",
25+
"commandArguments": [
26+
"https://sourcegraph.com/extensions/sourcegraph/python"
27+
],
28+
"actionItem": {
29+
"label": "Imprecise results",
30+
"description": "These locations are computed using heuristics. Use the Python language server for precise results."
31+
}
32+
}
33+
],
34+
"menus": {
35+
"panel/toolbar": [
36+
{
37+
"action": "externalReferences.toggle"
38+
},
39+
{
40+
"action": "impreciseResults",
41+
"when": "isImprecise"
42+
}
43+
]
44+
},
2045
"configuration": {
2146
"title": "Python settings",
2247
"properties": {
@@ -60,7 +85,7 @@
6085
"typescript": "^3.1.3"
6186
},
6287
"dependencies": {
63-
"@sourcegraph/basic-code-intel": "6.0.5",
88+
"@sourcegraph/basic-code-intel": "6.0.6",
6489
"@types/ws": "^6.0.1",
6590
"concurrently": "^4.1.0",
6691
"rxjs": "^6.3.3",

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -734,14 +734,14 @@
734734
dependencies:
735735
esquery "^1.0.1"
736736

737-
"@sourcegraph/basic-code-intel@6.0.5":
738-
version "6.0.5"
739-
resolved "https://registry.yarnpkg.com/@sourcegraph/basic-code-intel/-/basic-code-intel-6.0.5.tgz#09d394066ea2e860c2c89354425c0fd331abe0c6"
740-
integrity sha512-T6tx5srg9s/kqGnF9JydWqyAyxLGueaOa/IlLRRcKBwvVyTWPwBeg1kWXxPaBTVTR6VKt9E9LOx3BqNTGuNYHw==
737+
"@sourcegraph/basic-code-intel@6.0.6":
738+
version "6.0.6"
739+
resolved "https://registry.yarnpkg.com/@sourcegraph/basic-code-intel/-/basic-code-intel-6.0.6.tgz#dfa02255519da49b8c2bce4167be90af7cb528cb"
740+
integrity sha512-SgAhg8gBOQx3UvDNY8qLqBsJRJHW/b4kLnswEOi4A2lkCX9KaVFzLW03FmZO5/jRrXdT/uc0IJ0CLSwhu8ZRtg==
741741
dependencies:
742742
lodash "^4.17.11"
743743
rxjs "^6.3.3"
744-
sourcegraph "^22.0.0"
744+
sourcegraph "^23.0.0"
745745

746746
"@sourcegraph/tsconfig@^3.0.0":
747747
version "3.0.0"
@@ -4871,10 +4871,10 @@ sourcegraph@^19.4.0:
48714871
resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-19.4.0.tgz#5e02146ef06a5a3b0e37d1f09375bbfa011ddee8"
48724872
integrity sha512-fyx0nFtySTdn+Y1JR7LPdl2lj9vHCbSgoLjzMEW5iuBjVuVHXdVldq3kjBYoI98MI6L53qATT993sDVrq4Jqwg==
48734873

4874-
sourcegraph@^22.0.0:
4875-
version "22.0.0"
4876-
resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-22.0.0.tgz#b259929c31bf367f5160056698a881dc26eb36bd"
4877-
integrity sha512-cJHby0OPCM0y0BmRTKhY89D02f9koROluHMJGQGNE8q9CoIVbe1s6ctHCytz7bjY9mKtCpQMbtxYQhfIm5S4lg==
4874+
sourcegraph@^23.0.0:
4875+
version "23.0.0"
4876+
resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-23.0.0.tgz#1fb96015af3e84cc9cc2944823f04a7e952ed565"
4877+
integrity sha512-hQALHrTt+AK5ZAqUAUNhxO7ClSv/xyTjMQPBb+hQykKJrMaHTk+CnJNHs7dRfXYKnbnZeisQRjaxKGX8UecU0Q==
48784878

48794879
spawn-command@^0.0.2-1:
48804880
version "0.0.2-1"

0 commit comments

Comments
 (0)