jonJ
Denoβ€’2y agoβ€’
1 reply
jon

Automate Export+Import when using deps.ts pattern in VSCode/LSP

Hey, I wanted to see if there is a way to configure my IDE's (VSCode using the Deno extension) "Quick Fix" feature to automate importing from deps.ts instead of a fully-qualified URL, but in the case where an existing export in deps.ts is not present?

To restate, when deps.ts is present and used, I want to automate adding a new export from deps.ts, and then import that exported thing directly in the file I am trying to run the "Quick Fix" from. deps.ts will be recommended as an import origin, but only if the exported thing already exists in deps.ts.
Screenshot_2024-08-01_at_10.35.56_AM.png
Was this page helpful?