swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
726 stars 50 forks source link

Generated code detection when done by a build plugin. #672

Closed carlynorama closed 7 months ago

carlynorama commented 7 months ago

Is your feature request related to a problem? Please describe. When I run a build plug in using swift run in the integrated terminal (my usual process) and it puts that code in the standard context.pluginWorkDirectory in the .build folder it would be nice if the ["cannot find $MYNEWTHING in scope" sourcekitd ] error didn't pop up. Even lovelier would be auto completion.

Demo project(s):

Describe the solution you'd like Instead, I'd like those symbols to be available without having to figure out a VScode setting.

Describe alternatives you've considered Using Xcode for all dev work with package build plugins and keeping VScode for Linux testing only. Trying to figure out if there is a settings.json / launch.json / tasks.json thing I should be trying.

Additional context I suspect my other issues with build plugins & VSCode will be fixed in 5.10, perhaps this is a new feature already!

carlynorama commented 7 months ago

Sorry, this may be this

carlynorama commented 7 months ago

Yes this is already tracked.

https://forums.swift.org/t/vscode-doesnt-seem-to-find-generated-code/64278 https://github.com/orgs/swift-server/projects/2/views/1