Skip to content

Commit 5485a2f

Browse files
committed
feat: decode URI components in workspace path for accurate name extraction
1 parent d98d387 commit 5485a2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

VsCode/Classes/VSCodeWorkspace.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using Microsoft.CommandPalette.Extensions.Toolkit;
33
using System;
44
using System.Collections.Generic;
5+
using Windows.Web.AtomPub;
56

67
namespace CmdPalVsCode;
78

@@ -45,7 +46,7 @@ public string GetName()
4546
string workspaceName = "";
4647

4748
// split name by / and get last part
48-
var nameParts = Path.Split('/');
49+
var nameParts = Uri.UnescapeDataString(Path).Split('/');
4950
if (nameParts.Length == 0)
5051
{
5152
return workspaceName;

0 commit comments

Comments
 (0)