rbxts-flamework / vscode

The vscode extension which improves the editing experience for Flamework projects.
2 stars 0 forks source link

Automatic Dependency Injection for flamework classes runs multiple times #2

Closed murmanox closed 1 year ago

murmanox commented 1 year ago

When injecting a dependency for a class that has no constructor, multiple constructors will sometimes be created. When adding a dependency to an existing constructor, it will be added multiple times.

Fireboltofdeath commented 1 year ago

Unfortunately, I believe this is a vscode/TS bug. The language extensions get activated multiple times by TypeScript.

I can look into workarounds but it's a bit trickier given how language service plugins work.

Fireboltofdeath commented 1 year ago

https://github.com/rbxts-flamework/lsp/commit/88c0650d7a431bc4824f3186ea9f49712ac56a3d