swiftlang / vscode-swift

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

Set Swift environment variables in the integrated terminal #944

Open matthewbastien opened 3 days ago

matthewbastien commented 3 days ago

This PR adds two new features to the extension:

  1. The swift.path and swift.swiftEnvironmentVariables settings will automatically be applied to the integrated terminal's environment variables. This can be disabled using the setting swift.enableTerminalEnvironment if the user wants.
  2. A new Terminal Profile has been added primarily for users that wish to have a special terminal for Swift related commands and will disable the automatic terminal environment.

I've also added an icon font with the Swift icon that can be used in various places. At the moment it is being used for the Terminal Profile and the Swiftly installation from the toolchain selection workflow.

Issue: #914