Skip to content

Commit 4e13e20

Browse files
Keep latex setup handler async
Co-authored-by: J. Simon Richard <jsimonrichard@gmail.com>
1 parent 238302f commit 4e13e20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/vscode-extensions/latex-integration/src/webview

apps/vscode-extensions/latex-integration/src/webview/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import './style.css';
1818
let latexSetupDone = false;
1919

2020
const procs: WebviewProcMap = {
21-
setup: () => {
21+
// eslint-disable-next-line @typescript-eslint/require-await -- async setup matches other integrations
22+
setup: async () => {
2223
const view = window.proseMark?.view;
2324
if (!view) {
2425
console.warn('[ProseMark] latex-integration setup: no view');
@@ -43,7 +44,6 @@ const procs: WebviewProcMap = {
4344
console.error('[ProseMark] latex-integration setup failed', err);
4445
throw err;
4546
}
46-
return Promise.resolve();
4747
},
4848
};
4949

0 commit comments

Comments
 (0)