Skip to content

Commit dd1a194

Browse files
committed
Added missing copyright headers
1 parent 3bc4ae0 commit dd1a194

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

src/toolchain/toolchain.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,6 @@ export class SwiftToolchain {
548548
break;
549549
}
550550
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
554551
swift = await findBinaryPath("swift");
555552
break;
556553
}

src/utilities/shell.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
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+
115
import { execFile } from "./utilities";
216

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
320
export async function findBinaryPath(binaryName: string): Promise<string> {
421
const { stdout, stderr } = await execFile("/bin/sh", [
522
"-c",

test/unit-tests/utilities/shell.test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
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+
115
import { expect } from "chai";
216
import { findBinaryPath } from "../../../src/utilities/shell";
317

0 commit comments

Comments
 (0)