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

Commit ebb224c

Browse files
committed
remove outdated zig_install and zls_install directory
1 parent 42d95ca commit ebb224c

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
@@ -389,6 +389,14 @@ export async function setupZig(context: vscode.ExtensionContext) {
389389
{
390390
// This check can be removed once enough time has passed so that most users switched to the new value
391391

392+
// remove the `zig_install` directory from the global storage
393+
try {
394+
await vscode.workspace.fs.delete(vscode.Uri.joinPath(context.globalStorageUri, "zig_install"), {
395+
recursive: true,
396+
useTrash: false,
397+
});
398+
} catch {}
399+
392400
// remove a `zig.path` that points to the global storage.
393401
const configuration = vscode.workspace.getConfiguration("zig");
394402
const zigPath = configuration.get<string>("path", "");

src/zls.ts

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

378+
// remove the `zls_install` directory from the global storage
379+
try {
380+
await vscode.workspace.fs.delete(vscode.Uri.joinPath(context.globalStorageUri, "zls_install"), {
381+
recursive: true,
382+
useTrash: false,
383+
});
384+
} catch {}
385+
378386
// convert a `zig.zls.path` that points to the global storage to `zig.zls.enabled == true`
379387
const zlsConfig = vscode.workspace.getConfiguration("zig.zls");
380388
if (zlsConfig.get<boolean | null>("enabled", null) === null) {

0 commit comments

Comments
 (0)