Skip to content

Better handling of *.testproj directories as databases #768

@aeisenberg

Description

@aeisenberg

*.testproj databases are usually ephemeral. They are re-created by the test runner each time tests are run. This causes a problem when importing into vscode. When a database is changed on disk, the query server lock is not released. So, when the database is recreated, queries cannot be run since the original lock is invalid.

There are a few workarounds that users can do:

  1. Before importing a testproj database, make sure to copy it, so it won't be deleted by the test runner.
  2. Before rerunning tests, remove the database from the UI.

Neither of these solutions are ideal and the extension should handle this automatically. An ideal solution is that immediately before a test is run, check to see if the resulting database is already imported. If so, remove it and then run the tests and re-add when complete.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions