Better handling of text/uri-list in built-in extensions (#153163)

- When splitting `text/uri-list`, we should split on `\n` to handle against spec versions of `text/uri-list`
- However when constructing a `text/uri-list`, we should use `\r\n` to align with the spec
This commit is contained in:
Matt Bierner
2022-06-24 15:24:16 -07:00
committed by GitHub
parent fff8f8ace5
commit 64305a732e
4 changed files with 4 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ export async function tryGetUriListSnippet(document: vscode.TextDocument, dataTr
}
const uris: vscode.Uri[] = [];
for (const resource of urlList.split('\r\n')) {
for (const resource of urlList.split('\n')) {
try {
uris.push(vscode.Uri.parse(resource));
} catch {