Skip to content

Commit 70cd176

Browse files
authored
fix: Cannot show Chinese project name (#394)
Signed-off-by: Sheng Chen <[email protected]>
1 parent 118806a commit 70cd176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/ProjectCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public static List<PackageNode> listProjects(List<Object> arguments, IProgressMo
124124
}
125125
PackageNode projectNode = PackageNode.createNodeForProject(JavaCore.create(project));
126126
if (Objects.equals(project.getName(), invisibleProjectName)) {
127-
projectNode.setDisplayName(FilenameUtils.getBaseName(workspaceUri));
127+
projectNode.setDisplayName(FilenameUtils.getBaseName(workspaceFolderPath.toOSString()));
128128
}
129129
children.add(projectNode);
130130
}

0 commit comments

Comments
 (0)