aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorBernardo <[email protected]>2019-01-05 11:12:39 +0000
committerBernardo <[email protected]>2019-01-05 11:12:39 +0000
commit4dfc5a6341406bcf3c179e367e3e7bf1fb591e0a (patch)
treedf08b6a152e7fe59840ef390e5a2409ac5553dab /editors
parent481713a0e17e1557288e88a6b1a173b111792998 (diff)
fix open of created or renamed file
Diffstat (limited to 'editors')
-rw-r--r--editors/code/src/commands/apply_source_change.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/code/src/commands/apply_source_change.ts b/editors/code/src/commands/apply_source_change.ts
index 10dbf72c0..d96ace979 100644
--- a/editors/code/src/commands/apply_source_change.ts
+++ b/editors/code/src/commands/apply_source_change.ts
@@ -26,7 +26,8 @@ export async function handle(change: SourceChange) {
26 const toReveal = change.cursorPosition; 26 const toReveal = change.cursorPosition;
27 await vscode.workspace.applyEdit(wsEdit); 27 await vscode.workspace.applyEdit(wsEdit);
28 if (toOpen) { 28 if (toOpen) {
29 const doc = await vscode.workspace.openTextDocument(toOpen); 29 const toOpenUri = vscode.Uri.parse(toOpen);
30 const doc = await vscode.workspace.openTextDocument(toOpenUri);
30 await vscode.window.showTextDocument(doc); 31 await vscode.window.showTextDocument(doc);
31 } else if (toReveal) { 32 } else if (toReveal) {
32 const uri = Server.client.protocol2CodeConverter.asUri( 33 const uri = Server.client.protocol2CodeConverter.asUri(