Skip to content

vscode-uri: URI.with always escape query part #238267

Closed
@neko-para

Description

Image

When using URI.with, the query part is always escaped. As the query entry doesn't accept object either, I have to concat uri manually.

Opt 1: Allow query to be object, thus it will be encoded inside.

uri.with({
    query: {
        abc: 'def'
    }
})

Opt 2: Add an extra option to control whether query should be escaped.

uri.with({
    query: 'abc=def',
    escapeQuery: false
})

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions