Siilwyn
Siilwyn•3y ago

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
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
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
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
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
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
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
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
Project code is setup for Node. But I'm using an editor with the Deno LSP
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
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
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
but it's just a lot nicer to install the LSP with cargo and be done
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
yeah the project doesn't contain those so no problem
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
I know...
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
I've just switched from Vs Code to helix
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
hmm that's a proper idea aren't the core modules supported in compat mode?
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
??? 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
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
interesting...
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
yeah would've been a huge coincidence otherwise haha
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Siilwyn
SiilwynOP•3y ago
No worries, I prefer it over Discord ofc. but I also check Discord more often than matrix tbh