snakemake / snakemake-lang-vscode-plugin

Language support and snippets for Snakemake workflows (Snakefile, *.smk) for Visual Studio Code and Apache Theia.
MIT License
13 stars 13 forks source link

Snakefile not recognized #4

Closed pawelqs closed 1 year ago

pawelqs commented 3 years ago

Hi,

I have found, that snakemake plugin does not recognize Snakefile as smakemake file. Everything is ok for .smk files, but most content of Snakefile is underlined with red. How can I fix it?

I am using Smakemake Language v0.1.6.

Thanks, Paweł

DSuveges commented 2 years ago

Hi @pawel125,

I came across the same issue. It's an easy fix, you need to add ".Snakemake" to the contribues.languages.extensions object in the package.json file as this:

"extensions": [
    ".smk", ".Snakefile"
],

The file is in the root directory of the extension. Also opened a PR: #11

johanneskoester commented 1 year ago

This extension is deprecated (I've just updated the docs accordingly). Hence, I'd rather avoid it to occur here. Nevertheless, thanks for the suggestion, which pointed me to the inconsistency.