language-service icon indicating copy to clipboard operation
language-service copied to clipboard

Auto-completion for namespace imports in a project

Open nounder opened this issue 4 months ago • 2 comments

What is the problem this feature would solve?

Easy import of Effect-styled modules in my codebase.

What is the feature you are proposing to solve the problem?

If my codebase consists of files like BunS3.ts, FileSystemExtra.ts, when typing those filenames, I'd like for it to appear in auto-completion so when I activate it, a namespace for it appears.

What alternatives have you considered?

https://github.com/Josh211ua/typescript-namespace-imports-plugin

But it only works for uppercase.

There's Asana one but it's a vscode extension. (I use NeoVim btw)

https://github.com/Asana/typescript-namespace-imports-vscode-plugin

nounder avatar Aug 07 '25 19:08 nounder

Okay, I ended up implementing this in a separate plugin:

https://github.com/nounder/ts-namespace-import

Works great with Effect 👉👈

@mattiamanzati would you be interested in having this feature. Happy to port it over here.

nounder avatar Aug 07 '25 22:08 nounder

I'll definitely take a look at it, it works on the assumption of using filenames as alias right?

mattiamanzati avatar Aug 08 '25 10:08 mattiamanzati