Skip to content

Commit f89f047

Browse files
refine open data directory view request error message (#99)
1 parent 7564040 commit f89f047

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/commands/openDataFile.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ export async function registerOpenDataFileCommand(context: ExtensionContext) {
3535
// open table view for the data file
3636
commands.executeCommand(ViewCommands.viewTable, dataFileUri);
3737
}
38+
else if (fileExtension.length === 0) {
39+
window.showErrorMessage(
40+
`Tabular Data Viewer doesn't support data directory views yet.\
41+
Use View Table menu option from VSCode File Explorer to open tabular data file in Table View.
42+
Requested data directory: \`${dataFileUrl}\`.`);
43+
}
3844
else {
3945
window.showErrorMessage(
4046
`Tabular Data Viewer doesn't support ${fileExtension} data files.\

0 commit comments

Comments
 (0)