Import local typescript file so both Deno (LSP) and TS work?
Seems like Deno wants the import to end with
.ts
while TS wants no file extension.
Is there any way to change either of them to accept the other?28 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Hmm that's an idea 💡 , do you know of a tool that does this? Wonder if hundreds of local files would slow down the resolution too...
Want this so I can use Deno's LSP, because I have it installed and setup already with my editor Helix. While other developers in my team use VSCode and thus TSC.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Oh that's an interesting project but sadly can't use it in this case / force others to use it
No, because I don't use VSCode this isn't applicable right?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Not really what I'm looking for 🤔 sadly
Guess the answer is "no" in that case, unless I can generate an import map for all local files?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Project code is setup for Node.
But I'm using an editor with the Deno LSP
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Because I already have a decent JS/TS server installed imo
I get what you mean and why it's a "bad idea"
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
but it's just a lot nicer to install the LSP with cargo and be done
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yeah the project doesn't contain those so no problem
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I know...
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I've just switched from Vs Code to helix
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
hmm that's a proper idea
aren't the core modules supported in compat mode?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
??? it's in the latest version right?
https://deno.land/manual@v1.26.0/node/compatibility_mode
Deno
Node Compatibility Mode | Manual | Deno
Starting with v1.15 Deno provides Node compatibility mode that makes it possible
to run a subset of programs authored for Node directly in Deno. Compatibility
mode can be activated by passing `--comp
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
interesting...
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yeah would've been a huge coincidence otherwise haha
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
No worries, I prefer it over Discord ofc. but I also check Discord more often than matrix tbh