Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#!/usr/bin/env node doesn't necesarily need to mean a javascript filetype if you are using e.g. Typescript #7

Open
Lilja opened this issue Apr 27, 2022 · 1 comment

Comments

@Lilja
Copy link

Lilja commented Apr 27, 2022

Stumbled upon a bug today after having used this plugin for a while.

I put my node shebang today in my file.ts typescript file, which after not completely understanding why my language server complained about me putting types into a javascript file.

Perhaps if the file extension ends with .ts, you cannot make the assumption that we are looking at a javascript file?

@Lilja
Copy link
Author

Lilja commented Apr 27, 2022

image

coc.nvim complaining about the filetype, which is not typescript as I would expect here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant