mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
use correct uri manipulation, #25539
This commit is contained in:
@@ -85,6 +85,13 @@ suite('workspace-namespace', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test('openTextDocument, untitled with host', function () {
|
||||
const uri = Uri.parse('untitled://localhost/c%24/Users/jrieken/code/samples/foobar.txt');
|
||||
return workspace.openTextDocument(uri).then(doc => {
|
||||
assert.equal(doc.uri.scheme, 'untitled');
|
||||
});
|
||||
});
|
||||
|
||||
test('openTextDocument, untitled without path', function () {
|
||||
return workspace.openTextDocument().then(doc => {
|
||||
assert.equal(doc.uri.scheme, 'untitled');
|
||||
|
||||
Reference in New Issue
Block a user