Resolve formatting inconsistency between positron-python
extension and main Positron codebase
#5838
Labels
positron-python
extension and main Positron codebase
#5838
We have two upstream repos that we incorporate into this repo at a regular cadence, both the Python extension and the Code - OSS repo. The upstream projects have different sets of formatting rules for the same kinds of files. We believe we want to maintain the same formatting as the upstream projects because if we did not, managing these upstream merges would be much more difficult. The current state we are dealing with is that if you have the main
positron
workspace open and make any changes to files in thepositron-python
extension, the formatting rules from the main workspace are applied to those files. If you check in that change, the linter fails.My current workaround here is to:
positron-python
folder, build, iterate, etcnpm run format-fix
inpositron/extensions/positron-python
to fix the formatting of the files I just editedAnother workaround people have shared with me that can be used for very small changes is to run "File: Save without Formatting" in VS Code on such files. 😩
This is a pain point for all of us, but new team members are tripping over it in a bad way. Let's find a way to resolve this inconsistency. Is a multi-root workspace the way to go?
For reference:
The text was updated successfully, but these errors were encountered: