Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat(vscode-plugin): add Haskell support
Matthew Espinoeb0fa755eda8
diff --git a/packages/vscode-plugin/package.json b/packages/vscode-plugin/package.jsonindex cb0bc02dc..e519c7bab 100644--- a/packages/vscode-plugin/package.json+++ b/packages/vscode-plugin/package.json@@ -36,6 +36,7 @@"onLanguage:csharp","onLanguage:git-commit","onLanguage:go",+ "onLanguage:haskell","onLanguage:html","onLanguage:java","onLanguage:javascript",diff --git a/packages/vscode-plugin/src/tests/fixtures/languages/haskell.hs b/packages/vscode-plugin/src/tests/fixtures/languages/haskell.hsnew file mode 100644index 000000000..3ed2cc46d--- /dev/null+++ b/packages/vscode-plugin/src/tests/fixtures/languages/haskell.hs@@ -0,0 +1,3 @@+main :: IO ()+-- Errorz+main = putStrLn "Hello World!"diff --git a/packages/vscode-plugin/src/tests/suite/languages.test.ts b/packages/vscode-plugin/src/tests/suite/languages.test.tsindex 9b6f08e50..09128536c 100644--- a/packages/vscode-plugin/src/tests/suite/languages.test.ts+++ b/packages/vscode-plugin/src/tests/suite/languages.test.ts@@ -21,8 +21,9 @@ describe('Languages >', () => {// Uncomment when #65 is fixed.// { type: 'Shellscript without extension', file: 'shellscript', row: 2, column: 2 },- // VSCode doesn't support Nix and TOML files out of the box. Uncomment when you figure out how- // to support them during testing.+ // VSCode doesn't support Haskell, Nix, and TOML files out of the box. Uncomment when you figure+ // out how to support them during testing.+ // { type: 'Haskell', file: 'haskell.hs', row: 1, column: 3 },// { type: 'Nix', file: 'nix.nix', row: 1, column: 2 },// { type: 'TOML', file: 'toml.toml', row: 1, column: 2 },