SQLite: "Go to Definition" opens an empty dbcode-definitionOpen editor
Bug Description
When using Go to Definition on a SQLite table name, DBCode opens an empty editor named dbcode-definitionOpen instead of showing the table definition.
When closing this editor, VS Code also asks whether I want to save the changes even though I did not modify anything.
Repro steps
- Connect to a SQLite database.
- Open a SQL editor.
- Write a query such as
SELECT * FROM books;
- Right-click the table name (
books).
- Click Go to Definition.
- An empty
dbcode-definitionOpen editor is opened.
- Close the editor and a save confirmation dialog appears.
Expected Behavior
DBCode should navigate to or display the SQLite table definition/schema.
Actual Behavior
An empty dbcode-definitionOpen editor is opened and marked as modified.
When closing it, VS Code asks whether to save the changes.
Environment
- DBCode version:
- VS Code (or fork) version:
- OS: Windows
- Database: SQLite
- Connection: Direct
Error Meesages (if applicable)
Screenshots
Screenshots attached showing:
- Selecting Go to Definition
- The empty
dbcode-definitionOpen editor and save confirmation dialog
Logs
SQLite: "Go to Definition" opens an empty
dbcode-definitionOpeneditorBug Description
When using Go to Definition on a SQLite table name, DBCode opens an empty editor named
dbcode-definitionOpeninstead of showing the table definition.When closing this editor, VS Code also asks whether I want to save the changes even though I did not modify anything.
Repro steps
SELECT * FROM books;books).dbcode-definitionOpeneditor is opened.Expected Behavior
DBCode should navigate to or display the SQLite table definition/schema.
Actual Behavior
An empty
dbcode-definitionOpeneditor is opened and marked as modified.When closing it, VS Code asks whether to save the changes.
Environment
Error Meesages (if applicable)
Screenshots
Screenshots attached showing:
dbcode-definitionOpeneditor and save confirmation dialogLogs