Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 60635f4

Browse files
committed
remove outdated zig_install and zls_install directory
1 parent 43834ee commit 60635f4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/zigSetup.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,14 @@ export async function setupZig(context: vscode.ExtensionContext) {
370370
{
371371
// This check can be removed once enough time has passed so that most users switched to the new value
372372

373+
// remove the `zig_install` directory from the global storage
374+
try {
375+
await vscode.workspace.fs.delete(vscode.Uri.joinPath(context.globalStorageUri, "zig_install"), {
376+
recursive: true,
377+
useTrash: false,
378+
});
379+
} catch {}
380+
373381
// remove a `zig.path` that points to the global storage.
374382
const zigConfig = vscode.workspace.getConfiguration("zig");
375383
const zigPath = zigConfig.get<string>("path", "");

src/zls.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,14 @@ export async function activate(context: vscode.ExtensionContext) {
379379
{
380380
// This check can be removed once enough time has passed so that most users switched to the new value
381381

382+
// remove the `zls_install` directory from the global storage
383+
try {
384+
await vscode.workspace.fs.delete(vscode.Uri.joinPath(context.globalStorageUri, "zls_install"), {
385+
recursive: true,
386+
useTrash: false,
387+
});
388+
} catch {}
389+
382390
// convert a `zig.zls.path` that points to the global storage to `zig.zls.enabled == "on"`
383391
const zlsConfig = vscode.workspace.getConfiguration("zig.zls");
384392
const zlsPath = zlsConfig.get<string>("path", "");

0 commit comments

Comments
 (0)