-
Notifications
You must be signed in to change notification settings - Fork 7
Package.swift support #17
Comments
I think it'd be smart for us to investigate how @modocache implemented this for nuclide-swift. After #14 this is my next priority. |
What kind of inline hinted are you thinking of? |
Are you asking where would the information come from our what would the information look like in VS Code? |
Hmm I guess the editor doesn't need to support package.swift to compile |
EDIT: I've re-read what you wrote and I think the answer I gave you was non-sensical. I was responding to #14 and #17 at the same time. It would be great to do 2 things regarding
|
yeah for #14, maybe we can start with just plain old As for this issue I did some setup https://github.com/RLovelett/vscode-swift/commits/swift-pm this brings a yaml parser, and typings for it. Also swapped to the A few weeks ago I created the template with yo and it came with |
I think the build YAML that you that is going to build off of is only created after running Off-topic: I created the project on July 27 using |
Only reason I saw that was because I was looking into how to add the typings via |
if I recall when I cloned the deck of cards project, and run |
Just chiming in with a silly idea: there's a naive solution here, one that doesn't involve any sort of integration with SwiftPM:
This won't work if the I think integrating with |
Yeah something like that was going to be the first step. Supporting tooling around Package.swift is a side effect of first being able to parse and use the YAML it outputs. And then exposing a friendlier editor UI around Maybe an inaccurate issue title. P.S. Feature Idea: Neat thing about language servers, is we could even provide specialized completions for Package.swift files. Not sure what that would look like yet, the precedent exists throughout VSCode already though: auto completion for all the various settings in configs. |
This is now implemented in the latest version of the language server. See RLovelett/langserver-swift@32356cf. |
Yeah, this is probably a big one. But its not 100% accurate to say that all swift files in a directory are part of or should provide completion data. A Package.swift( and xcodeproj....👻 ) is the mechanism for that..
The text was updated successfully, but these errors were encountered: