Skip to content

SQLite: "Go to Definition" opens an empty dbcode-definitionOpen editor #1208

Description

@InSeok9068

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

  1. Connect to a SQLite database.
  2. Open a SQL editor.
  3. Write a query such as SELECT * FROM books;
  4. Right-click the table name (books).
  5. Click Go to Definition.
  6. An empty dbcode-definitionOpen editor is opened.
  7. 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)

No error message.

Screenshots

Screenshots attached showing:

  1. Selecting Go to Definition
Image
  1. The empty dbcode-definitionOpen editor and save confirmation dialog
Image

Logs

No relevant logs found.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions