symlinking foundry.js and vscode

Is this something you were able to do with vscode? I'm trying right now with both WSL2 symlinks and bog standard windows links but not getting any results...
11 Replies
Calego
CalegoOP4y ago
@lordzeel @stax2912 Same question ^ Trying to write up an update to the existing pin which says to copy the file. I'm only actually getting hints in vscode when the foundry.js file is open while it's linked. Hmmm, actually. Adding a jsconfig.json file to the root fixed this:
{
"compilerOptions": {
"module": "es2020",
"target": "es2020"
},
}
{
"compilerOptions": {
"module": "es2020",
"target": "es2020"
},
}
zeel
zeel4y ago
Works fine with windows sym links for me.
corporat
corporat4y ago
FWIW Linux symlinks definitely don't work. The Windows filesystem has to see them if Foundry is being run as a Windows executable Windows symlinks should work Are you perchance running the node server inside WSL?
zeel
zeel4y ago
You may need to have Foundry.js open
Daniel Thorp
Daniel Thorp4y ago
It works for me on Linux with it closed This is not needed for me
zeel
zeel4y ago
I've noticed it working closed, but also sometimes not. It may have to do with how much memory VS is using or some other factor.
Daniel Thorp
Daniel Thorp4y ago
vscode is using like 400mb
No description
Calego
CalegoOP4y ago
That's what the Jsconfig fixes for me @skyronandromeda try putting this file into your project to see if that fixes your issue of foundry having to be open
Unknown User
Unknown User4y ago
Message Not Public
Sign In & Join Server To View
Leo The League Lion
@skyronandromeda gave vote LeaguePoints™ to @calego (#1 • 1071)
Calego
CalegoOP4y ago
innnnteresting
Want results from more Discord servers?
Add your server