Skip to content
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

Language features (R and Python) do not work in Quarto visual editor #1805

Open
juliasilge opened this issue Nov 9, 2023 · 4 comments
Open
Labels
area: quarto Issues related to Quarto category.

Comments

@juliasilge
Copy link
Contributor

juliasilge commented Nov 9, 2023

Related to #1645
Related to #1572

As of build 1144, something like the R language support (code completions, hover help, etc) work when you edit a Quarto in source mode. However, when you try to edit the document in visual mode, the language support features are not working:

visual-mode.mov

Also notice you can't use tab to accept a completion that is offered:

Screen.Recording.2023-11-09.at.1.00.02.PM.mov

I observe this class of problems for both Python and R chunks in visual mode.

@MichelNivard
Copy link

A potentially related issue (which I raised but then closed on the quarto github to prevent sprawl), the tab key works differently in visual mode (indents entire line) vs the editor (for example if your between quotes behind say file = it’ll suggest paths to local files.)

@juliasilge
Copy link
Contributor Author

juliasilge commented Aug 16, 2024

I am realizing there is a lot that doesn't work in visual mode because of how it is a whole separate editor. As another example as pointed out in #1955 (comment), if you opt in to the RStudio Keymap, you cannot use the keyboard shortcuts for |> and <-. The only "when" condition we have on those is editorLangId == quarto:

"when": "config.rstudio.keymap.enable && editorLangId == quarto",

@juliasilge
Copy link
Contributor Author

We do provide completions in visual mode but they are a MESS.

@DavisVaughan
Copy link
Contributor

DavisVaughan commented Nov 22, 2024

@juliasilge extensions suffer hard when providing their own completions + their own document model because the completion item filtering that vs code does is internal to vs code, and is not exposed to the completion hook that extensions get access to 😢

I think it does not affect source mode because it is backed by a typical TextDocument, and thus gets access to the internal filtering code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: quarto Issues related to Quarto category.
Projects
None yet
Development

No branches or pull requests

4 participants