Skip to content

Commit 5fd9190

Browse files
authored
Merge pull request #8 from Enter-tainer/patch-1
chore: add tinymist detection
2 parents 240457b + e29978e commit 5fd9190

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/extension.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import * as formatting from './format';
66
export function activate(context: vscode.ExtensionContext) {
77

88
const typstLSP = vscode.extensions.getExtension('nvarner.typst-lsp');
9-
if(!typstLSP){
9+
const tinymistLSP = vscode.extensions.getExtension('myriad-dreamin.tinymist');
10+
if(!typstLSP && !tinymistLSP){
1011
void vscode.window.showWarningMessage(
11-
'Typst Companion Says:\n\nHi there! This extension is designed to complement and accompany Nathan Varner\'s "Typst LSP" extension. It doesn\'t look like you have that extension installed!\n\nYou probably want to go install Typst LSP in addition to this one.',
12+
'Typst Companion Says:\n\nHi there! This extension is designed to complement and accompany Nathan Varner\'s "Typst LSP" or Myriad Dreamin\'s "Tinymist Typst" extension. It doesn\'t look like you have that extension installed!\n\nYou probably want to go install Typst LSP or Tinymist Typst in addition to this one.',
1213
'Got it, thanks!'
1314
);
1415
}

0 commit comments

Comments
 (0)