Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Document using Swift with VSCode #67

Open
tomerd opened this issue Jul 7, 2021 · 6 comments
Open

Document using Swift with VSCode #67

tomerd opened this issue Jul 7, 2021 · 6 comments
Assignees
Labels

Comments

@tomerd
Copy link
Contributor

tomerd commented Jul 7, 2021

  • installing directly
  • dev containter
  • document any issues to make this easier, and pursue fixing / reporting to swift team as appropriate
@0xTim
Copy link
Member

0xTim commented Aug 18, 2021

Initial set up stuff:

Install VSCode
Install the following extensions:

  • CodeLLDB
  • Maintained Swift Development Environment
  • Swift Language
  • Swift Test Explorer

Open the settings for Swift SDE and set the language server mode to sourcekit-lsp and set the path to SourceKit to your Xcode installations version of the LSP, in my case it was /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp
Under the Swift build parameters, pass -Xswiftc -Xfrontend -Xswiftc -serialize-debugging-options as a second option to align it with the test extension

Optional - set all the key shortcuts you use in Xcode to the same behaviours in VSCode

@0xTim
Copy link
Member

0xTim commented Aug 18, 2021

cc @toddvarland ☝️

@VineFiner
Copy link

Does DocC help?

@0xTim
Copy link
Member

0xTim commented Sep 22, 2021

@VineFiner How would DocC help?

@VineFiner
Copy link

How does swift server provide its own api documentation? Are there any best practices. I know OpenAPIKit

@0xTim
Copy link
Member

0xTim commented Sep 22, 2021

I'm confused, what's API documentation got to do with a VSCode guide?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants