File tree Expand file tree Collapse file tree 3 files changed +31
-3
lines changed
test/unit-tests/utilities Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -548,9 +548,6 @@ export class SwiftToolchain {
548
548
break ;
549
549
}
550
550
default : {
551
- // use `type swift` to find `swift`. Run inside /bin/sh to ensure
552
- // we get consistent output as different shells output a different
553
- // format. Tried running with `-p` but that is not available in /bin/sh
554
551
swift = await findBinaryPath ( "swift" ) ;
555
552
break ;
556
553
}
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the VS Code Swift open source project
4
+ //
5
+ // Copyright (c) 2025 the VS Code Swift project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of VS Code Swift project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
1
15
import { execFile } from "./utilities" ;
2
16
17
+ // use `type swift` to find `swift`. Run inside /bin/sh to ensure
18
+ // we get consistent output as different shells output a different
19
+ // format. Tried running with `-p` but that is not available in /bin/sh
3
20
export async function findBinaryPath ( binaryName : string ) : Promise < string > {
4
21
const { stdout, stderr } = await execFile ( "/bin/sh" , [
5
22
"-c" ,
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the VS Code Swift open source project
4
+ //
5
+ // Copyright (c) 2025 the VS Code Swift project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of VS Code Swift project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
1
15
import { expect } from "chai" ;
2
16
import { findBinaryPath } from "../../../src/utilities/shell" ;
3
17
You can’t perform that action at this time.
0 commit comments