Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense does not trigger when using multi-line SQL statements. #1375

Open
1 of 5 tasks
mitgobla opened this issue Sep 5, 2024 · 0 comments
Open
1 of 5 tasks
Labels

Comments

@mitgobla
Copy link

mitgobla commented Sep 5, 2024

Describe the bug
When writing multi-line based SQL statements, Intellisense does not provide hints to column and table names. Instead, it assumes you are starting a new statement.

To Reproduce
Steps to reproduce the behavior:

  1. Begin writing a statement, and make it multi-line. See screenshot for example.
  2. Press Ctrl+Space (or the keybind you use to trigger Intellisense)
  3. It will not provide column or other hints, only new statement hints.

Expected behavior
It should provide hints for the current statement regardless of line breaks. Preferably, it should assume we are on a statement until a ; delimiter to note end of statement, instead of providing hints for a new statement. This would make writing multi-line statements easier and therefore more readable.

Screenshots
Attempting a multi-line statement intellisense:
image

Attempting a single-line statement intellisense:
image

Desktop (please complete the following information):

  • SQLTools Version: v0.28.3
  • VS Code Version: 1.92.2
  • OS: Windows
  • Driver:
    • PostgreSQL/Redshift
    • MySQL/MariaDB
    • MSSQL/Azure
    • SQLite
    • Other? Which...
  • Database version: PostgreSQL 16.4, compiled by Visual C++ build 1940, 64-bit
@mitgobla mitgobla added the triage label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant