REditorSupport / languageserver

An implementation of the Language Server Protocol for R
Other
564 stars 91 forks source link

Availability of `formatOnType` in quarto #626

Open brianmsm opened 11 months ago

brianmsm commented 11 months ago

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