natanfudge / Auto-Using

Visual Studio Code extension that auto imports and provides auto complete for available imports in C#
https://marketplace.visualstudio.com/items?itemName=Fudge.auto-using
GNU Lesser General Public License v3.0
37 stars 7 forks source link

C# Script support (.csx files) #10

Closed SlowLogicBoy closed 5 years ago

SlowLogicBoy commented 5 years ago

Add support for C# Script files (.csx).

Currently suggestions work for some references, however if I use them, using statements are added at the top, ignoring #r and #load statements.

Also references from #r and #load are not considered.

More on C# scripting can be found in dotnet-script repository.

natanfudge commented 5 years ago

Hey, thanks for the bug report/suggestion. I expect to have the using placement fixed in a week or so, perhaps sooner if I manage to complete another ongoing task without too many issues. In regards to references from libraries (#r and #load), those are not supported yet, including in normal C# files that have the packageReferences declared in .csproj files. This is the next milestone, and beta builds of it are available in the README (although the support is only for normal C# files right now. I'll try to support it for .CSX as well ). Release will take quite a while, the amount of time depending on many factors along the way.

natanfudge commented 5 years ago

The first part is fixed in 0.7.8. The second part is being tracked separately in #11 so I can mark the first part as done by closing this issue.