Skip to content

Commit 7e70093

Browse files
authored
Merge branch 'main' into use-bundled-quarto-in-positron
2 parents d9b3bfb + 8a04107 commit 7e70093

File tree

4 files changed

+82
-14
lines changed

4 files changed

+82
-14
lines changed

apps/vscode/CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Changelog
22

3-
## 1.126.0 (Unreleased)
3+
## 1.127.0 (Unreleased)
44

55
- Added a new setting `quarto.useBundledQuartoInPositron` to prefer the Quarto CLI bundled with Positron when available. This setting has precedence _between_ `quarto.path` and `quarto.usePipQuarto`, and has no effect outside of Positron (<https://github.com/quarto-dev/quarto/pull/841>).
66

7-
## 1.125.0 (Release on 2025-09-03)
7+
## 1.126.0 (Release on 2025-10-08)
8+
9+
- Fixed a bug opening non-Quarto files in visual mode on saving (<https://github.com/quarto-dev/quarto/pull/848>).
10+
11+
## 1.125.0 (Release on 2025-10-03)
812

913
- Fixed an issue where attribute values containing '='s could be truncated in some scenarios (<https://github.com/quarto-dev/quarto/pull/814>).
1014
- Fixed an issue where a loading spinner for qmd previews wasn't dismissed on preview errors (<https://github.com/quarto-dev/quarto/pull/823>).

apps/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"pandoc",
1212
"quarto"
1313
],
14-
"version": "1.126.0",
14+
"version": "1.127.0",
1515
"repository": {
1616
"type": "git",
1717
"url": "https://github.com/quarto-dev/quarto/tree/main/apps/vscode"

apps/vscode/src/providers/editor/toggle.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,18 @@ export async function reopenEditorInVisualMode(
129129
// reopen in visual mode
130130
commands.executeCommand('positron.reopenWith', document.uri, 'quarto.visualEditor');
131131
} else {
132-
workspace.onDidSaveTextDocument(async (doc: TextDocument) => {
133-
// open in visual mode
134-
VisualEditorProvider.recordPendingSwitchToVisual(doc);
135-
await commands.executeCommand('workbench.action.closeActiveEditor');
136-
await commands.executeCommand("vscode.openWith",
137-
doc.uri,
138-
VisualEditorProvider.viewType,
139-
{ viewColumn }
140-
);
141-
});
142-
// save, which will trigger `onDidSaveTextDocument`
132+
// save then close
143133
await commands.executeCommand("workbench.action.files.save");
134+
await commands.executeCommand('workbench.action.closeActiveEditor');
135+
VisualEditorProvider.recordPendingSwitchToVisual(document);
136+
137+
// open in visual mode
138+
await commands.executeCommand(
139+
"vscode.openWith",
140+
document.uri,
141+
VisualEditorProvider.viewType,
142+
{ viewColumn }
143+
);
144144
}
145145
}
146146

claude.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Quarto Development Guide
2+
3+
## Project Overview
4+
5+
Quarto is an open-source scientific and technical publishing system built on [Pandoc](https://pandoc.org). This repository contains the source code for various parts of the Quarto ecosystem, with the main CLI implementation housed in a separate repository ([quarto-cli](https://github.com/quarto-dev/quarto-cli)).
6+
7+
### Main Components
8+
9+
- **VS Code Extension**: The primary VS Code extension for working with Quarto documents
10+
- **Writer**: An experimental web-based editor for Quarto documents (not used in production yet)
11+
- **LSP**: Language server for Quarto documents
12+
- **Core Packages**: Shared libraries used across multiple components
13+
14+
## Development Workflow
15+
16+
Each component has specific development guidelines. Refer to the corresponding CONTRIBUTING.md files:
17+
18+
- VS Code extension: [apps/vscode/CONTRIBUTING.md](apps/vscode/CONTRIBUTING.md) - Contains detailed instructions for building, debugging, and releasing the extension
19+
20+
## Repository Structure
21+
22+
The repository is organized as a monorepo using Yarn workspaces and Turborepo for build orchestration:
23+
24+
- `apps/`: Contains standalone applications
25+
- `vscode/`: VS Code extension for Quarto
26+
- `writer/`: Experimental web-based Quarto editor (not in production, ignore this for now)
27+
- `lsp/`: Language Server Protocol implementation
28+
- `panmirror/`: WYSIWYG editor component
29+
- `packages/`: Contains shared libraries
30+
- `core/`: Core functionality shared across packages
31+
- `editor-*/`: Editor-related packages
32+
- `quarto-core/`: Quarto-specific core functionality
33+
- Other utility packages
34+
35+
## Build System
36+
37+
Quarto uses [turborepo](https://turbo.build/) to manage the monorepo build process:
38+
39+
- `turbo.json`: Defines the pipeline configuration for common tasks
40+
- Common commands:
41+
- `yarn build`: Builds all packages and applications
42+
- `yarn dev-writer`: Runs the writer app in development mode
43+
- `yarn dev-vscode`: Runs the VS Code extension in development mode
44+
- `yarn lint`: Runs linters across all workspaces
45+
- `yarn build-vscode`: Builds only the VS Code extension and its dependencies
46+
47+
The turborepo pipeline helps optimize build times by caching build artifacts and respecting the dependency graph between packages.
48+
49+
## Testing
50+
51+
Testing procedures vary by component:
52+
53+
- VS Code extension: Run `yarn test-vscode` to compile test files and run them with the vscode-test CLI
54+
- Other components have specific test commands defined in their respective package.json files
55+
56+
57+
## Additional Resources
58+
59+
- [Quarto Website](https://quarto.org)
60+
- [Extension on Microsoft marketplace](https://marketplace.visualstudio.com/items?itemName=quarto.quarto)
61+
- [Extension on Open VSX Registry](https://open-vsx.org/extension/quarto/quarto)
62+
- [Quarto GitHub Organization](https://github.com/quarto-dev)
63+
64+
# Instructions

0 commit comments

Comments
 (0)