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

Commit 8668eb3

Browse files
committed
fix(extension): normalise extensionPath
1 parent 454a725 commit 8668eb3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/extension.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import { ExtensionContext, extensions, workspace, commands } from "vscode";
22
import { homedir } from "os";
3+
import { normalize } from "path";
34

45
export const id = "overextended.cfxlua-vscode";
5-
export const extensionPath = extensions
6-
.getExtension(id)!
7-
.extensionPath.replace(homedir(), "~");
6+
export const extension = extensions.getExtension(id)!;
7+
export const extensionPath = normalize(extension.extensionPath).replace(
8+
normalize(homedir()),
9+
"~",
10+
);
811

912
import setPlugin from "./setPlugin";
1013
import setLibrary from "./setLibrary";

0 commit comments

Comments
 (0)