Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This change log covers only the command line interface (CLI) of Open VSX.

### [Unreleased]

#### Fixes

- Support custom registry url including a subpath ([#1542](https://github.com/eclipse/openvsx/pull/1542))

#### Changes

- Move `ovsx` script to `bin` directory ([#1538](https://github.com/eclipse/openvsx/pull/1538))
Expand Down
6 changes: 5 additions & 1 deletion cli/src/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ export class Registry {

private getUrl(path: string, query?: { [key: string]: string }): URL {
const url = new URL(this.url);
url.pathname += path;
if (url.pathname.endsWith("/")) {
url.pathname += path;
} else {
url.pathname += `/${path}`;
}
if (query) {
url.search = querystring.stringify(query);
}
Expand Down