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

Add support for *.tidal files

Open rossng opened this issue 7 years ago • 2 comments

.tidal is the standard extension for TidalCycles files. These are basically just a scratchpad containing Haskell expressions. You can then use the vscode-tidalcycles extension to feed these expressions into GHCi.

To get syntax highlighting at the moment, one has to associate *.tidal files with the Haskell filetype, but this causes other extensions like haskell-lsp to go a bit nuts because they expect the files to be valid Haskell modules.

P.S. If you think it is better to put this in its own extension I'll do that.

Proposal:

"languages": [
            ...
            {
                "id": "tidal",
                "aliases": [
                    "Tidal",
                    "tidal"
                ],
                "extensions": [
                    ".tidal"
                ],
                "configuration": "./haskell-configuration.json"
            }
],

rossng avatar Oct 03 '18 20:10 rossng

If it breaks haskell-lsp its probably better not to include it here. It's unfortunate that this happens. Maybe open an issue in haskell-lsp that ensures they skip such invalid files, and then we can add this change here?

JustusAdam avatar May 29 '19 07:05 JustusAdam

Does this still happen with https://github.com/haskell/vscode-haskell? The language server should only be running on .hs and .lhs files

lukel97 avatar Aug 11 '20 17:08 lukel97