#Import local typescript file so both Deno (LSP) and TS work?
47 messages · Page 1 of 1 (latest)
Maybe an auto generated import map for deno. But really why do you want this?
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.
Is it not easier to use the deno vscode extension?
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?
You can kindly point others to use it, either through documentation or messages or .vscode/settings.json
Oh yeah extensions.json my bad
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?
Project code is setup for Node.
But I'm using an editor with the Deno LSP
You should enable Deno LSP per project, not globally
Because I already have a decent JS/TS server installed imo
I get what you mean and why it's a "bad idea"
What editor are you using?
Deno won't work with node modules or node types
but it's just a lot nicer to install the LSP with cargo and be done
So i think you'll run into more issues than you might expect
yeah the project doesn't contain those so no problem
No node modules?
VSCode provides a nice out of the box experience for Node projects
I know...
Still, built in types won't work either, nor built in modules
So no require, no fs
I've just switched from Vs Code to helix
Create a project-specific config
typescript package already installs tsserver it should be able to use
Compat mode is no more
??? it's in the latest version right?
https://deno.land/[email protected]/node/compatibility_mode
I guess the manual is wrong
Or if not then it will be removed very very soon
Like check last message in #685193730114060300 soon
interesting...
@north ridge btw, are you the same guy from matrix?
yeah would've been a huge coincidence otherwise haha
Glad to see people use matrix (and sorry i didn't see it there first)