vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

Automatically enable extension for files with deno shebang

Open matklad opened this issue 1 year ago • 1 comments
trafficstars

I have a make.ts file in my Zig project which starts with

#!/usr/bin/env -S deno run --allow-all
import $ from "https://deno.land/x/dax/mod.ts";

I don't get any LSP features in this file, unless I explicitly invoke Deno: Initialize Workspace Configuration and click through two questions.

It seems like with a shebang the thing should just work without any extra configuration from my side?

matklad avatar Dec 23 '23 11:12 matklad

It should work with the .ts too.

Authoring executable script without editor support is quite difficult.

ratson avatar May 28 '24 02:05 ratson