mkloubert / vscode-easy-coffeescript

Visual Studio Code extension which compiles CoffeeScript files on save.
https://marketplace.visualstudio.com/items?itemName=mkloubert.vscode-easy-coffeescript
GNU Lesser General Public License v3.0
2 stars 1 forks source link

Source maps for multiple files not working #2

Open pal03377 opened 6 years ago

pal03377 commented 6 years ago

https://github.com/mkloubert/vscode-easy-coffeescript/blob/29600fe91185b254d707aeac9f6aeb07b23c41f9/src/extension.ts#L222

This line makes the sourceURL always be coffeescript which... doesn't really make sense in my eyes, as the sourceURL should be the coffeescript source file, right?

This causes my browser (Google Chrome) to think all my different coffeescript files compiled with your (by the way otherwise awesome) extension come from the same file. Because of this, I can't debug multiple coffeescript files at the same time. 😞

pal03377 commented 6 years ago

I googled a bit and apparently, you only need wither sourceURL or sourceMappingURL in the file, and when I remove the line everything works.

pal03377 commented 6 years ago

Btw. a great thanks to you @mkloubert . I didn't find any other tool that allows me to compile coffeescript that quickly for quick debugging.