-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode Extension Feedback #11
Comments
I've played around with it (simulating some searches I might do during actual development) and it's quite useful! With the combination of Haskell Language Server hover documentation, it improves how quickly I can experiment around with new functions and understand existing code. There is a bit of a sharp end on the right of function descriptions when it is expanded, meaning some of the text is not visible (and there is no indication that there are more) unless the window is wide enough. Perhaps we can improve this with ellipsis in the text, or a shadow/border in the package list. output.mp4EDIT: I just realised that the website version also suffers the same problem when the viewport is not wide enough. |
@yutotakano thank you for the bug report! The browser extension, VSCode extension, and the site version use the same React component. Bugs and features across them will be eventually consistent. 😆 |
quoting from this reddit comment:
|
For me it would be a good option that if some code was selected when I press Alt-H, it would be instantly hoogled (for example, I see unknown function in code, then I select it, and press Alt-H, without Ctrl-C/etc) |
I would personally prefer if the extension showed up in a modal (similar to VS Code's Command Palette) rather than in a separate tab. |
@NiekPas me too, but as I know, it's not possible to implement in VSCode for this moment. Also, I don't really know examples of any good working extensions with similar functionality for VSCode that use native UI. |
@visortelle Ah, I wasn't aware of that limitation. That's unfortunate, and seems like something that would really limit the usefulness of some extensions. Perhaps it's a security restriction of some kind. I did a quick search of the VS Code issues and found nothing, so perhaps something it could be suggested there --- although I wouldn't expect it to be implement by end-of-day. 😄 In any case, thanks for making this extension! It's good to see some (frankly, much-needed) progress in the Haskell DevEx :) |
Relevant issue: microsoft/vscode#112031 Almost a year ago it has been moved to the backlog. 🤞 |
hi @visortelle, thanks for the extension, I really like it. I have a question though, would you consider adding searching using a local hoogle DB or local pre-built haddock docs? |
hi @epicallan and thank you for feedback!
I didn't consider this option, but it's not hard to implement. Probably it's a good idea. In the next few weeks, I'll dedicate a day or two to the VSCode extension improvements. Collecting more feedback. 🙂 |
Just tried this out today. I really like it! My suggestion would be to have a way to open links within VSCode. For example, I wanted to see the Data.Text module. I searched for Data.Text. But then when I clicked, I was taken to my separate browser. Maybe make this somehow user configurable? Thanks for your work here! |
@goldfirere thank you for the feedback! |
Not sure if this is the correct place to ask, but would it be possible to publish this extension to open-vsx.org for vs codium users? |
@mip29 I tried login in at open-vsx.org, but it wants to read my private profile information 😱 If you want, you can publish it under your own account. All you need is NodeJS > 14.x.x. https://nodejs.org/en/download/ |
I love this extension, an absolute time saver 👍 I have a suggestion. There is a significant delay until all search results appear (up to 2s even on 1Gbs network connection). I find myself searching for the same functions multiple times and it would be nice if the results would be cached, and thanks to caching showed immediately without waiting for an API response. EDIT: |
@KristianBalaj, thank you for the feedback. You are right - latency is probably not as low as it could be. Your PC (let's say you are in Europe) --> Caching may be the solution, but instead of dealing with it, I'd rather try to bring API closer to a user and remove extra hops by hosting a Hoogle instance for each region. I'll think about it later. Right now busy with other activities. 🙂 |
Hey! Wondering if it is possible to search in some other Haddock than the official one (Probably a setting where i would input multiple hosts where all of them are used when searching). I'm interested in the Plutus Haddock - it runs on a separate hosting. It would be nice to have it in the Spotlight along with the types search. |
@KristianBalaj Hello. If Cardano guys have such running Hoogle instance, it would be possible to search over their docs. The ability to configure Hoogle instances to search over them isn't hard to implement, but I don't have the bandwidth at this moment to do it. |
Please check out this comment first: #2 (comment)
Screen.Recording.2022-01-18.at.9.45.18.PM.mov
The text was updated successfully, but these errors were encountered: