Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Commit 25e6aa1

Browse files
committed
add "Imprecise results" label to references
1 parent c57a276 commit 25e6aa1

File tree

2 files changed

+34
-9
lines changed

2 files changed

+34
-9
lines changed

package.json

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,30 @@
2727
"onLanguage:javascript"
2828
],
2929
"contributes": {
30-
"actions": [],
30+
"actions": [
31+
{
32+
"id": "impreciseResults",
33+
"title": "Imprecise results",
34+
"command": "open",
35+
"commandArguments": [
36+
"https://sourcegraph.com/extensions/sourcegraph/typescript"
37+
],
38+
"actionItem": {
39+
"label": "Imprecise results",
40+
"description": "These locations are computed using heuristics. Use the TypeScript language server for precise results."
41+
}
42+
}
43+
],
3144
"menus": {
32-
"editor/title": [],
33-
"commandPalette": []
45+
"panel/toolbar": [
46+
{
47+
"action": "externalReferences.toggle"
48+
},
49+
{
50+
"action": "impreciseResults",
51+
"when": "isImprecise"
52+
}
53+
]
3454
},
3555
"configuration": {
3656
"title": "LangTypescriptConfiguration",
@@ -158,7 +178,7 @@
158178
"yarn-deduplicate": "^1.1.1"
159179
},
160180
"dependencies": {
161-
"@sourcegraph/basic-code-intel": "6.0.5",
181+
"@sourcegraph/basic-code-intel": "6.0.6",
162182
"@sourcegraph/lightstep-tracer-webworker": "^0.20.14-fork.3",
163183
"@sourcegraph/typescript-language-server": "^0.3.7-fork",
164184
"@sourcegraph/vscode-ws-jsonrpc": "0.0.3-fork",

yarn.lock

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -705,14 +705,14 @@
705705
resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd"
706706
integrity sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==
707707

708-
"@sourcegraph/basic-code-intel@6.0.5":
709-
version "6.0.5"
710-
resolved "https://registry.npmjs.org/@sourcegraph/basic-code-intel/-/basic-code-intel-6.0.5.tgz#09d394066ea2e860c2c89354425c0fd331abe0c6"
711-
integrity sha512-T6tx5srg9s/kqGnF9JydWqyAyxLGueaOa/IlLRRcKBwvVyTWPwBeg1kWXxPaBTVTR6VKt9E9LOx3BqNTGuNYHw==
708+
"@sourcegraph/basic-code-intel@6.0.6":
709+
version "6.0.6"
710+
resolved "https://registry.npmjs.org/@sourcegraph/basic-code-intel/-/basic-code-intel-6.0.6.tgz#dfa02255519da49b8c2bce4167be90af7cb528cb"
711+
integrity sha512-SgAhg8gBOQx3UvDNY8qLqBsJRJHW/b4kLnswEOi4A2lkCX9KaVFzLW03FmZO5/jRrXdT/uc0IJ0CLSwhu8ZRtg==
712712
dependencies:
713713
lodash "^4.17.11"
714714
rxjs "^6.3.3"
715-
sourcegraph "^22.0.0"
715+
sourcegraph "^23.0.0"
716716

717717
"@sourcegraph/lightstep-tracer-webworker@^0.20.14-fork.3":
718718
version "0.20.14-fork.3"
@@ -6270,6 +6270,11 @@ sourcegraph@^22.0.0:
62706270
resolved "https://registry.npmjs.org/sourcegraph/-/sourcegraph-22.0.0.tgz#b259929c31bf367f5160056698a881dc26eb36bd"
62716271
integrity sha512-cJHby0OPCM0y0BmRTKhY89D02f9koROluHMJGQGNE8q9CoIVbe1s6ctHCytz7bjY9mKtCpQMbtxYQhfIm5S4lg==
62726272

6273+
sourcegraph@^23.0.0:
6274+
version "23.0.0"
6275+
resolved "https://registry.npmjs.org/sourcegraph/-/sourcegraph-23.0.0.tgz#1fb96015af3e84cc9cc2944823f04a7e952ed565"
6276+
integrity sha512-hQALHrTt+AK5ZAqUAUNhxO7ClSv/xyTjMQPBb+hQykKJrMaHTk+CnJNHs7dRfXYKnbnZeisQRjaxKGX8UecU0Q==
6277+
62736278
spdx-correct@^3.0.0:
62746279
version "3.0.2"
62756280
resolved "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.2.tgz#19bb409e91b47b1ad54159243f7312a858db3c2e"

0 commit comments

Comments
 (0)