Skip to content

Commit 63a83ab

Browse files
committed
Use double quotes like the rest of this repo
1 parent d63ae4e commit 63a83ab

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

apps/vscode/src/core/quarto.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import * as path from "node:path";
1717
import * as fs from "node:fs";
1818

1919
import { window, env, workspace, Uri } from "vscode";
20-
import { tryAcquirePositronApi } from '@posit-dev/positron';
20+
import { tryAcquirePositronApi } from "@posit-dev/positron";
2121
import { QuartoContext } from "quarto-core";
2222
import { activePythonInterpreter, pythonIsCondaEnv, pythonIsVenv } from "./python";
2323
import { isWindows } from "./platform";
@@ -47,8 +47,8 @@ export async function configuredQuartoPath() {
4747
const rootPath = env.appRoot; // Use vscode.env.appRoot as the application root path
4848
const positronQuartoPath = path.join(
4949
rootPath,
50-
'quarto',
51-
'bin',
50+
"quarto",
51+
"bin",
5252
isWindows() ? "quarto.exe" : "quarto"
5353
);
5454

apps/vscode/src/main.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function activate(context: vscode.ExtensionContext) {
6060
quartoPath,
6161
workspaceFolder,
6262
// Look for quarto in the app root; this is where Positron installs it
63-
[path.join(vscode.env.appRoot, 'quarto', 'bin')],
63+
[path.join(vscode.env.appRoot, "quarto", "bin")],
6464
vscode.window.showWarningMessage
6565
);
6666
if (quartoContext.available) {
@@ -141,9 +141,9 @@ export async function activate(context: vscode.ExtensionContext) {
141141
function registerQuartoPathConfigListener(context: vscode.ExtensionContext, outputChannel: vscode.LogOutputChannel) {
142142
// List of settings that require restart when changed
143143
const quartoPathSettings = [
144-
'quarto.path',
145-
'quarto.usePipQuarto',
146-
'quarto.useBundledQuartoInPositron'
144+
"quarto.path",
145+
"quarto.usePipQuarto",
146+
"quarto.useBundledQuartoInPositron"
147147
];
148148

149149
// Listen for configuration changes
@@ -154,15 +154,15 @@ function registerQuartoPathConfigListener(context: vscode.ExtensionContext, outp
154154

155155
if (requiresRestart) {
156156
outputChannel.info(`Quarto path settings changed, restart required: ${quartoPathSettings.filter(setting =>
157-
event.affectsConfiguration(setting)).join(', ')}`);
157+
event.affectsConfiguration(setting)).join(", ")}`);
158158

159159
// Prompt user to restart
160160
vscode.window.showInformationMessage(
161-
'Quarto path settings have changed. Please reload the window for changes to take effect.',
162-
'Reload Window'
161+
"Quarto path settings have changed. Please reload the window for changes to take effect.",
162+
"Reload Window"
163163
).then(selection => {
164-
if (selection === 'Reload Window') {
165-
vscode.commands.executeCommand('workbench.action.reloadWindow');
164+
if (selection === "Reload Window") {
165+
vscode.commands.executeCommand("workbench.action.reloadWindow");
166166
}
167167
});
168168
}

0 commit comments

Comments
 (0)