use correct uri manipulation, #25539

This commit is contained in:
Johannes Rieken
2017-04-27 14:16:59 +02:00
parent 4679fef06e
commit 13b11919c6
3 changed files with 10 additions and 11 deletions

View File

@@ -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');