Skip to content

Commit

Permalink
fix(newfile): open the new file in non preview mode
Browse files Browse the repository at this point in the history
The new file should be opened in non-preview mode instead of preview mode.
(Preview files will be replaced by any new file selected.)
  • Loading branch information
mbehr1 committed Dec 30, 2020
1 parent 4f95e0b commit 1126a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function activate(context: vscode.ExtensionContext) {
//const newFileUri = vscode.Uri.parse(`untitled:${uri.fsPath}`);
//await vscode.workspace.openTextDocument(newFileUri);
//await vscode.commands.executeCommand('vscode.openWith', newFileUri, 'fishbone.fba');
await vscode.commands.executeCommand('vscode.openWith', uri, 'fishbone.fba');
await vscode.commands.executeCommand('vscode.openWith', uri, 'fishbone.fba', { preview: false });
}
});
}));
Expand Down

0 comments on commit 1126a52

Please sign in to comment.