Skip to content

Commit 6e4f0ef

Browse files
add openTextDocument command to Uri handler (#96 and #107)
1 parent 73cad51 commit 6e4f0ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/uriHandler.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ class DataUriHandler implements UriHandler {
6767
case ViewCommands.openDataFile:
6868
commands.executeCommand(ViewCommands.openDataFile);
6969
break;
70+
case ViewCommands.openTextDocument:
71+
if (dataUrl && dataUrl?.length > 0) {
72+
const textDocumentUri: Uri = Uri.parse(dataUrl);
73+
commands.executeCommand(ViewCommands.openTextDocument, textDocumentUri);
74+
}
75+
break;
7076
case ViewCommands.viewTable:
7177
if (dataUrl && dataUrl?.length > 0) {
7278
const dataFileUri: Uri = Uri.parse(dataUrl);

0 commit comments

Comments
 (0)