Skip to content

Commit f9fa51a

Browse files
committed
fix(remoteFileSystemProvider): simplify project name extraction in parseUri function
1 parent 0cc02be commit f9fa51a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core/remoteFileSystemProvider.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,7 @@ export function parseUri(uri: vscode.Uri) {
100100
const [userId, projectId] = [query.user, query.project];
101101
const _pathParts = uri.path.split('/');
102102
const serverName = uri.authority;
103-
let projectName = _pathParts[1] ? decodeURIComponent(_pathParts[1]) : '';
104-
if (!projectName && query.projectName) {
105-
projectName = decodeURIComponent(query.projectName);
106-
}
103+
const projectName = decodeURIComponent(_pathParts[1]);
107104
const pathParts = _pathParts.splice(2);
108105
const identifier = `${userId}/${projectId}/${projectName}`;
109106
return {userId, projectId, serverName, projectName, identifier, pathParts};

0 commit comments

Comments
 (0)