Skip to content

Commit b49ee49

Browse files
committed
Attempt to diagnose quarto extension activation via console logs
1 parent 1a3b90f commit b49ee49

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

apps/vscode/src/main.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import { configuredQuartoPath } from "./core/quarto";
3737
import { activateDenoConfig } from "./providers/deno-config";
3838

3939
export async function activate(context: vscode.ExtensionContext) {
40+
console.log('ACTIVATING QUARTO EXTENSION!');
4041
// create output channel for extension logs and lsp client logs
4142
const outputChannel = vscode.window.createOutputChannel("Quarto", { log: true });
4243

@@ -45,6 +46,8 @@ export async function activate(context: vscode.ExtensionContext) {
4546
// create extension host
4647
const host = extensionHost();
4748

49+
console.log('ACTIVATING QUARTO EXTENSION! 2');
50+
4851
// create markdown engine
4952
const engine = new MarkdownEngine();
5053

@@ -65,13 +68,17 @@ export async function activate(context: vscode.ExtensionContext) {
6568
);
6669
if (quartoContext.available) {
6770

71+
console.log('ACTIVATING QUARTO EXTENSION! 3');
72+
6873
// enable commands conditional on quarto installation
6974
vscode.commands.executeCommand(
7075
"setContext",
7176
"quartoAvailable",
7277
true
7378
);
7479

80+
console.log('ACTIVATING QUARTO EXTENSION! 4');
81+
7582
// ensure quarto is on the path
7683
context.environmentVariableCollection.prepend(
7784
"PATH",
@@ -87,13 +94,19 @@ export async function activate(context: vscode.ExtensionContext) {
8794
// deno config
8895
activateDenoConfig(context, engine);
8996

97+
console.log('ACTIVATING QUARTO EXTENSION! 5');
98+
9099
// lsp
91100
const lspClient = await activateLsp(context, quartoContext, engine, outputChannel);
92101

102+
console.log('ACTIVATING QUARTO EXTENSION! 6');
103+
93104
// provide visual editor
94105
const editorCommands = activateEditor(context, host, quartoContext, lspClient, engine);
95106
commands.push(...editorCommands);
96107

108+
console.log('ACTIVATING QUARTO EXTENSION! 7');
109+
97110
// zotero
98111
const zoteroCommands = await activateZotero(context, lspClient);
99112
commands.push(...zoteroCommands);
@@ -130,6 +143,8 @@ export async function activate(context: vscode.ExtensionContext) {
130143
activateCommon(context, host, engine, commands);
131144

132145
outputChannel.info("Activated Quarto extension.");
146+
147+
console.log('ACTIVATING QUARTO EXTENSION! 8');
133148
}
134149

135150
export async function deactivate() {

0 commit comments

Comments
 (0)