Skip to content

"Run Query" appears in context menu for non-SQL files #259

@Balearica

Description

@Balearica

I added this function to help with a handful of .sql files in my repo. However, now whenever I highlight anything the top option in the context menu is Run Query. For example, the following happens when I highlight and right-click a JavaScript function in a .js file.

Image

I am connected to a Postgres database, and everything works correctly when I'm actually in a SQL file. I reviewed the settings for this extension and didn't see anything applicable.

Would appreciate a fix if others have figured this out. Additionally, if this is the default behavior and not something I somehow caused myself, I think it should be changed. I don't see any reason why a Postgres extension should impact the context menu in .js files by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions