Skip to content

Commit f264049

Browse files
committed
disable ziglang/zig#21905 workaround when used with recent Zig version
This issue has been fixed in ziglang/zig#24649. The workaround can be removed completely when it's safe to assume that the majority of projects and users have updated to Zig 0.15.
1 parent 1e34279 commit f264049

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/zigSetup.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,11 @@ export async function setupZig(context: vscode.ExtensionContext) {
621621
if (document.languageId !== "zig") return;
622622
if (document.uri.scheme !== "file") return;
623623

624+
const zigVersion = zigProvider.getZigVersion();
625+
if (!zigVersion) return;
626+
627+
if (semver.gte(zigVersion, "0.15.0-dev.1372+abf179533")) return;
628+
624629
const fsPath = document.uri.fsPath;
625630
try {
626631
await fs.copyFile(fsPath, fsPath + ".tmp", fs.constants.COPYFILE_EXCL);

0 commit comments

Comments
 (0)