REditorSupport / REditorSupport/languageserver
Availability of `formatOnType` in quarto
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 675
- Forks
- 118
- Avg merge
- 1d 37m
- Merged PRs (30d)
- 11
Description
I'm not sure if this is the right place. I was wondering if it would be possible to resolve the formatOnType for quarto from here or vscode-R, rather than from the quarto extension having a different formatting than what has been achieved so far here.
There have already been some discussions about this and the current state in quarto (code completion, auto-indent): https://github.com/quarto-dev/quarto-cli/discussions/4269 and https://github.com/quarto-dev/quarto/issues/150
I noticed that in the case of document formatting, only the .Rmd and .R file type is validated for example: https://github.com/REditorSupport/languageserver/blob/master/R/formatting.R#L44
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with R/formatting.R around the file-type validation at line 44, then read the linked Quarto discussions and issues for the current formatOnType, completion, and auto-indent behavior. Clarify whether support belongs here or in vscode-R, and define done as consistent Quarto formatting behavior without diverging from the existing R and Rmd handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100