REditorSupport / REditorSupport/languageserver

Availability of `formatOnType` in quarto

Open
#626 0 comments 0 reactions 0 assignees View on GitHub

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

image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.