File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
### Added
6
6
7
+ - Add clickable toolchain selection to Swift version status bar item ([ #1674 ] ( https://github.com/swiftlang/vscode-swift/pull/1674 ) )
7
8
- Add macOS support for Swiftly toolchain management ([ #1673 ] ( https://github.com/swiftlang/vscode-swift/pull/1673 ) )
8
9
- Show revision hash or local/editing keyword in project panel dependency descriptions ([ #1667 ] ( https://github.com/swiftlang/vscode-swift/pull/1667 ) )
9
10
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import * as vscode from "vscode";
16
16
import { Command } from "vscode-languageclient" ;
17
17
import { WorkspaceContext , FolderOperation } from "../WorkspaceContext" ;
18
18
import { LanguagerClientDocumentSelectors } from "../sourcekit-lsp/LanguageClientConfiguration" ;
19
+ import { Commands } from "../commands" ;
19
20
20
21
export class LanguageStatusItems implements vscode . Disposable {
21
22
constructor ( workspaceContext : WorkspaceContext ) {
@@ -31,6 +32,8 @@ export class LanguageStatusItems implements vscode.Disposable {
31
32
label : `Swift Version ${ toolchain . swiftVersion . toString ( ) } ` ,
32
33
} ;
33
34
35
+ swiftVersionItem . command = Command . create ( "Select Toolchain" , Commands . SELECT_TOOLCHAIN ) ;
36
+
34
37
// Package.swift item
35
38
const packageSwiftItem = vscode . languages . createLanguageStatusItem ( "swiftlang-package" , [
36
39
...LanguagerClientDocumentSelectors . appleLangDocumentSelector ,
You can’t perform that action at this time.
0 commit comments