Commit be85df2
committed
feat: quick-action buttons in the LSP hover popup (Go to Definition / Find Usages)
The hover popup now shows a pinned action footer below the (scrollable)
documentation: "Go to Definition" on the left and "Find Usages" on the right,
each gated on what the server actually advertises (definitionProvider /
referencesProvider). Clicking places the cursor at the hovered symbol, dismisses
the popup, and runs the command - so the action targets what you hovered. The
keyboard shortcut is shown as a tooltip rather than inline to keep the row tidy.
Also rename the commands to match common IDE wording (applies to the context
menu too): "Jump to Definition" -> "Go to Definition", "Find All References" ->
"Find Usages". Adds QuickViewManager.hideQuickView() so an action can dismiss the
popup; hover styling lives in brackets.less (theme-aware).1 parent 9cb53b7 commit be85df2
4 files changed
Lines changed: 132 additions & 11 deletions
File tree
- src
- features
- languageTools
- nls/root
- styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
| 797 | + | |
797 | 798 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
71 | 131 | | |
72 | 132 | | |
73 | 133 | | |
| |||
98 | 158 | | |
99 | 159 | | |
100 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
101 | 167 | | |
102 | 168 | | |
103 | 169 | | |
104 | | - | |
| 170 | + | |
105 | 171 | | |
106 | 172 | | |
107 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1498 | 1498 | | |
1499 | 1499 | | |
1500 | 1500 | | |
1501 | | - | |
| 1501 | + | |
1502 | 1502 | | |
1503 | 1503 | | |
1504 | 1504 | | |
| |||
1735 | 1735 | | |
1736 | 1736 | | |
1737 | 1737 | | |
1738 | | - | |
| 1738 | + | |
1739 | 1739 | | |
1740 | 1740 | | |
1741 | 1741 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2146 | 2146 | | |
2147 | 2147 | | |
2148 | 2148 | | |
2149 | | - | |
2150 | | - | |
2151 | | - | |
2152 | 2149 | | |
2153 | 2150 | | |
2154 | 2151 | | |
| |||
2159 | 2156 | | |
2160 | 2157 | | |
2161 | 2158 | | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
2162 | 2166 | | |
2163 | 2167 | | |
2164 | 2168 | | |
| |||
2262 | 2266 | | |
2263 | 2267 | | |
2264 | 2268 | | |
2265 | | - | |
2266 | | - | |
| 2269 | + | |
| 2270 | + | |
2267 | 2271 | | |
2268 | 2272 | | |
2269 | 2273 | | |
2270 | | - | |
| 2274 | + | |
2271 | 2275 | | |
2272 | 2276 | | |
2273 | 2277 | | |
2274 | 2278 | | |
2275 | 2279 | | |
2276 | 2280 | | |
2277 | | - | |
| 2281 | + | |
2278 | 2282 | | |
2279 | 2283 | | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
2280 | 2334 | | |
2281 | 2335 | | |
2282 | 2336 | | |
| |||
0 commit comments