-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Labels
Description
Bug description
If I open any file in a workspace in the Visual Editor, from then on any file that I save gets opened in the Visual Editor. This is happening with .qmd files, but also .json, .yaml, .R files, etc. Whenever it does open one of these other files in the Visual editor, it destroys all of the file formatting.
Steps to reproduce
- Install the above versions of Quarto and VSCode
- In an empty workspace, create a *.qmd file
- View the file in Visual editor
- Create a *.json file (e.g.
.vscode/settings.json) - Save the .json file
- File is opened in Visual editor and .json formatting is collapsed
Actual behavior
After any .qmd file is opened in the visual editor, all subsequent files are opened in the visual editor with catastrophic effects on file formatting.
Expected behavior
The visual editor should only open when requested and only for files of the correct file type (i.e. .qmd files).
Your environment
-IDE VS Code 1.96.4
-OS either Mac OS 14.6.1 or CentOS 7 (remote SSH)
-VS Code Quarto extension 1.125.0
Relevant lines from settings.json:
"[quarto]": {
"editor.formatOnPaste": true,
"editor.formatOnSave": false,
"editor.formatOnType": true,
"editor.wordWrap": "on",
"editor.quickSuggestions": {
"comments": "on",
"other": "on",
"strings": "on"
},
"editor.quickSuggestionsDelay": 250,
"editor.snippetSuggestions": "none",
"editor.wordBasedSuggestions": "off",
"editor.suggestOnTriggerCharacters": true,
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.unicodeHighlight.invisibleCharacters": false
}