@@ -2,6 +2,7 @@ import * as vscode from "vscode";
2
2
import * as assert from "assert" ;
3
3
import { exampleWorkspacePath , exampleWorkspaceOutPath , copyFile , wait } from "./test-utils" ;
4
4
import { isQuartoDoc } from "../core/doc" ;
5
+ import { extension } from "./extension" ;
5
6
6
7
const APPROX_TIME_TO_OPEN_VISUAL_EDITOR = 1600 ;
7
8
@@ -24,6 +25,10 @@ suite("Quarto basics", () => {
24
25
const doc = await vscode . workspace . openTextDocument ( exampleWorkspaceOutPath ( "hello.qmd" ) ) ;
25
26
const editor = await vscode . window . showTextDocument ( doc ) ;
26
27
28
+ console . log ( 'extension().isActive' , extension ( ) . isActive ) ;
29
+
30
+ await extension ( ) . activate ( ) ;
31
+
27
32
// manually confirm visual mode so dialogue pop-up doesn't show because dialogues cause test errors
28
33
// and switch to visual editor
29
34
await vscode . commands . executeCommand ( "quarto.test_setkVisualModeConfirmedTrue" ) ;
@@ -40,6 +45,8 @@ suite("Quarto basics", () => {
40
45
const doc = await vscode . workspace . openTextDocument ( exampleWorkspaceOutPath ( "hello.qmd" ) ) ;
41
46
const editor = await vscode . window . showTextDocument ( doc ) ;
42
47
48
+ await extension ( ) . activate ( ) ;
49
+
43
50
const docTextBefore = doc . getText ( ) ;
44
51
45
52
// switch to visual editor and back
0 commit comments