sqlite-viewer-vscode
sqlite-viewer-vscode copied to clipboard
add *.db to custom editor sqlite-viewer.view filename pattern
my files are usually stored as .db, it would be great if the sqlite-viewer would support opening the .db files without first renaming them to .sqlite
I would also like this as a default.
However, you can configure this yourself in VSCode settings until it gets added as a default:
"workbench.editorAssociations": {
"*.db": "sqlite-viewer.view"
},
@qwtel would love this as default.
can you release a new version after merging https://github.com/qwtel/sqlite-viewer-vscode/pull/8?
I was reluctant to make this the default, since .db is such a generic name that it could be referring to any database format.
In practice it seems to be mostly sqlite, so I've now made this default in v0.4.0+.
I was reluctant to make this the default, since
.dbis such a generic name that it could be referring to any database format. In practice it seems to be mostly sqlite, so I've now made this default in v0.4.0+.
@qwtel true .db is used for other thing, but there is the option to check the Magic Header String (see 1.3.1).
Here is an example of another extension that does this: https://github.com/optuna/optuna-dashboard/blob/7f92e0654fffeb5f6ba0cdb26d1125deee1a5bd6/optuna_dashboard/_storage_url.py#L62-L69
But anyway, thanks for including this!