{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreihn5s2bihburcdjphxnfx3we4fzdf4mfvez6jkjto2ewc6djmvqlu",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mpomp23xstl2"
},
"path": "/t/no-syntax-highlighting-in-vscode-on-windows/14345#post_1",
"publishedAt": "2026-07-02T16:30:39.000Z",
"site": "https://discourse.haskell.org",
"textContent": "I’ve been away from Haskell for a few years and have run into some issues when trying to set things up on a new Windows machine.\n\nAfter installing everything except for HLS via ghcup and installing the Haskell extension in VSCode, I chose the ‘manage through ghcup’ option since I thought I remembered that as being recommended. After opening a test .hs file I first noticed that there was no syntax highlighting in the file, although `-- >>>` evaluations and compiler suggestions worked. I closed VSCode hoping that a restart would fix the problem, but when I reopened the file the extension told me that I needed to download an older version of HLS, which kept happening for older and older versions each time I restarted.\n\nChanging the settings of the extension did not help, nor did uninstalling and reinstalling it. I also tried using ghcup to make sure only the latest version of HLS was installed and selected, but that didn’t solve the issue either.\n\nEventually I deleted everything in `~\\AppData\\Roaming\\Code\\User\\globalStorage`, not just the Haskell directory, and when I reinstalled the extension chose to use PATH to manage HLS. This has the extension working again, but I still have no syntax highlighting (with Haskell, other languages have no problem). I also want to reiterate that this is a completely new install, I have no other extensions in VSCode and installing the Haskell extension was the first thing I did when I opened it so I doubt it’s a conflicting configuration.\n\nI am appreciative of any suggestions people may have, thanks.",
"title": "No Syntax Highlighting in VSCode on Windows"
}