vscode-haskell icon indicating copy to clipboard operation
vscode-haskell copied to clipboard

Remove explicit dependency on Haskell Syntax Highlighting

Open hchmr opened this issue 3 years ago • 3 comments

This extension depends on another extension called 'Haskell Syntax Highlighting' in order to highlight Haskell code. This makes it impossible to use vscode-haskell with a different syntax highlighting extension. When I try to disable the dependency I get the following error in VS Code:

Cannot disable 'Haskell Syntax Highlighting' extension alone. 'Haskell' extension depends on this. Do you want to disable all these extensions?

Would it be possible to remove this dependency or to make it optional?

hchmr avatar Jul 01 '21 12:07 hchmr

Out of curiosity: which other syntax highlighting extension works for Haskell?

srid avatar Mar 14 '22 23:03 srid

I hacked together my own extension from scratch several years ago. Unfortunately it's not publicly available. It looks like the mainstream extension has improved quite a lot since I wrote mine, but back then, all available extensions for VS Code were severely lacking. Now I'm used to my own extension and what is highlighted. By the way, atom also has one that can be easily ported.

hchmr avatar Mar 18 '22 13:03 hchmr

I am wondering why we have that explicit dependency, I don't see a reason, except for maybe, better for beginners. Do other Language Server plugins have similar dependencies, and can they replace the syntax highlighting extension?

fendor avatar Mar 30 '23 08:03 fendor