sqlite-viewer-vscode icon indicating copy to clipboard operation
sqlite-viewer-vscode copied to clipboard

add *.db to custom editor sqlite-viewer.view filename pattern

Open CoreBodyTemp opened this issue 2 years ago • 2 comments

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

CoreBodyTemp avatar Jul 24 '23 10:07 CoreBodyTemp

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"
	},

kentcdodds avatar Jul 31 '23 18:07 kentcdodds

@qwtel would love this as default.

can you release a new version after merging https://github.com/qwtel/sqlite-viewer-vscode/pull/8?

deadcoder0904 avatar Feb 11 '24 10:02 deadcoder0904

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+.

qwtel avatar May 01 '24 09:05 qwtel

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+.

@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!

turbotimon avatar May 01 '24 13:05 turbotimon