-
Notifications
You must be signed in to change notification settings - Fork 30
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
Positron's help panel is not used when F1 is invoked #580
Comments
It turns out this is the quarto/apps/vscode/src/providers/assist/render-assist.ts Lines 43 to 45 in 227af78
Once you get this webview going, it responds to where your cursor is and renders things for you, depending on whether it is an equation, a function etc. The Help does not seem to work for Python for me, and I have not found a pydoc server or anything like that. One option would be to turn this webview off in Positron and hook up F1 to calling Positron's Help; it does seem like most use of it is for Help from the issues about it. Or I guess we can pipe through F1 to Positron's Help without messing with this at all, and they both would be available. Real talk: I had never pulled up this webview until starting to look into this today. |
The command in Positron is The command goes to a help topic provider that is a |
I got this wrapped up in #599 plus posit-dev/positron#5292. I'm going to close this now but just FYI @andrewheiss the fix in Positron hasn't been promoted to a public build yet and probably won't be until early next week. When that happens, you'll need a) the new Positron build and b) the dev Quarto extension version. You can get a development version of the Quarto extension by downloading the artifact built here, unzipping it, install the Thanks again for the report! 🙌 |
woohoo! Thanks for the quick fix! |
Currently, in VS Code, pressing F1 inside a function name opens the documentation in a special "Quarto: Help" panel in the File Explorer:
That's great when using VS Code because it doesn't have a dedicated help panel like RStudio does.
However, in the spirit of RStudio, Positron does have a dedicated help panel—when pressing F1 in a regular R script in Positron, the documentation opens there:
When pressing F1 in a Quarto file in Positron, though, nothing happens in the Positron help panel. Instead, the documentation appears in the custom Quarto help panel:
There's an issue at Positron tracking this: posit-dev/positron#4097 and it's part of a larger push for better Quarto improvements (posit-dev/positron#4858). I figured that F1 wasn't doing anything at all (I'd forgotten about Quarto's custom help panel), and others likely thought the same, but a recent comment posit-dev/positron#4097 (comment) discovered that F1 is actually working as expected in Positron—it's just invisible if the custom Quarto help panel is hidden.
So the underlying issue seems to be that Quarto's VS Code extension is hijacking F1 inside Positron
The text was updated successfully, but these errors were encountered: