Skip to content

Commit 175c634

Browse files
authored
fix(vscode): rootRegisterAuto broken (#3337)
1 parent af91b66 commit 175c634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vscode/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function activate(ext: ExtensionContext) {
3333

3434
const ctx = (Array.isArray(root) && root.length)
3535
? await rootRegisterManual(ext, root, projectPath, status)
36-
: await rootRegisterAuto(ext, typeof root === 'string' ? root : projectPath, config, status)
36+
: await rootRegisterAuto(ext, typeof root === 'string' ? path.resolve(projectPath, root) : projectPath, config, status)
3737

3838
ext.subscriptions.push(
3939
commands.registerCommand('unocss.reload', async () => {

0 commit comments

Comments
 (0)