Skip to content

Commit

Permalink
fix: make the extension path not end with a /
Browse files Browse the repository at this point in the history
because some extensions like redhat yaml just concat it with a path starting with a `/`
  • Loading branch information
Loïc Mangeonjean committed Dec 11, 2024
1 parent 8c8b084 commit 7e44d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export function registerExtension(
export function registerExtension(
manifest: IExtensionManifest,
extHostKind?: ExtensionHostKind,
{ path = '/', system = false, readmePath, changelogPath }: RegisterExtensionParams = {}
{ path = '/extension', system = false, readmePath, changelogPath }: RegisterExtensionParams = {}
): RegisterExtensionResult {
const id = getExtensionId(manifest.publisher, manifest.name)
const location = URI.from({ scheme: CustomSchemas.extensionFile, authority: id, path })
Expand Down

0 comments on commit 7e44d32

Please sign in to comment.