@@ -2,6 +2,7 @@ import * as vscode from "vscode";
22import * as assert from "assert" ;
33import { exampleWorkspacePath , exampleWorkspaceOutPath , copyFile , wait } from "./test-utils" ;
44import { isQuartoDoc } from "../core/doc" ;
5+ import { extension } from "./extension" ;
56
67const APPROX_TIME_TO_OPEN_VISUAL_EDITOR = 1600 ;
78
@@ -24,6 +25,10 @@ suite("Quarto basics", () => {
2425 const doc = await vscode . workspace . openTextDocument ( exampleWorkspaceOutPath ( "hello.qmd" ) ) ;
2526 const editor = await vscode . window . showTextDocument ( doc ) ;
2627
28+ console . log ( 'extension().isActive' , extension ( ) . isActive ) ;
29+
30+ await extension ( ) . activate ( ) ;
31+
2732 // manually confirm visual mode so dialogue pop-up doesn't show because dialogues cause test errors
2833 // and switch to visual editor
2934 await vscode . commands . executeCommand ( "quarto.test_setkVisualModeConfirmedTrue" ) ;
@@ -40,6 +45,8 @@ suite("Quarto basics", () => {
4045 const doc = await vscode . workspace . openTextDocument ( exampleWorkspaceOutPath ( "hello.qmd" ) ) ;
4146 const editor = await vscode . window . showTextDocument ( doc ) ;
4247
48+ await extension ( ) . activate ( ) ;
49+
4350 const docTextBefore = doc . getText ( ) ;
4451
4552 // switch to visual editor and back
0 commit comments