Skip to content

Commit

Permalink
feat(vscode-plugin): add typst support
Browse files Browse the repository at this point in the history
  • Loading branch information
mcecode committed Jan 15, 2025
1 parent abb364f commit 177e05c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/vscode-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"onLanguage:swift",
"onLanguage:toml",
"onLanguage:typescript",
"onLanguage:typescriptreact"
"onLanguage:typescriptreact",
"onLanguage:typst"
],
"main": "./build/extension.js",
"contributes": {
Expand Down
3 changes: 3 additions & 0 deletions packages/vscode-plugin/src/tests/fixtures/languages/typst.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Title

*Errorz*
5 changes: 3 additions & 2 deletions packages/vscode-plugin/src/tests/suite/languages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ describe('Languages >', () => {
// Uncomment when #65 is fixed.
// { type: 'Shellscript without extension', file: 'shellscript', row: 2, column: 2 },

// VSCode doesn't support CMake, Haskell, Literate Haskell, Nix, and TOML files out of the box.
// Uncomment when you figure out how to support them during testing.
// VSCode doesn't support CMake, Haskell, Literate Haskell, Nix, TOML, and Typst files out of
// the box. Uncomment when you figure out how to support them during testing.
// { type: 'CMake', file: 'CMakeLists.txt', row: 2, column: 30 },
// { type: 'Haskell', file: 'haskell.hs', row: 1, column: 3 },
// { type: 'Literate Haskell', file: 'literate-haskell.lhs', row: 5, column: 0 },
// { type: 'Nix', file: 'nix.nix', row: 1, column: 2 },
// { type: 'TOML', file: 'toml.toml', row: 1, column: 2 },
// { type: 'Typst', file: 'typst.typ', row: 2, column: 1 },

{ type: 'C', file: 'c.c', row: 2, column: 3 },
{ type: 'C++', file: 'cpp.cpp', row: 3, column: 5 },
Expand Down

0 comments on commit 177e05c

Please sign in to comment.