Commit 6d70bc8 1 parent be1bf80 commit 6d70bc8 Copy full SHA for 6d70bc8
File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ export async function editorToolAt(
339
339
}
340
340
341
341
dispose ( ) ;
342
- return ;
342
+ throw new Error ( "No document metrics or server info" ) ;
343
343
}
344
344
345
345
html = html . replace ( ":[[preview:FontsExportConfigure]]:" , base64Encode ( fontsExportConfig ) ) ;
Original file line number Diff line number Diff line change @@ -67,6 +67,15 @@ export async function getTests(ctx: Context) {
67
67
await vscode . commands . executeCommand ( "workbench.action.closeActiveEditor" ) ;
68
68
} ) ;
69
69
70
+ suite . addTest ( "diagnostics works well" , async ( ) => {
71
+ await ctx . openDocument ( vscode . Uri . joinPath ( workspaceUri , "preview-skyzh-cv.typ" ) ) ;
72
+
73
+ await vscode . commands . executeCommand ( "tinymist.showSummary" ) ;
74
+
75
+ // close the editor
76
+ await vscode . commands . executeCommand ( "workbench.action.closeActiveEditor" ) ;
77
+ } ) ;
78
+
70
79
suite . addTest ( "diagnostics works well" , async ( ) => {
71
80
const mainUrl = vscode . Uri . joinPath ( workspaceUri , "diagnostics.typ" ) ;
72
81
You can’t perform that action at this time.
0 commit comments