Environment
- DBCode: 1.38.5
- Database: MySQL
- VS Code Remote Development
- Database metadata has already been loaded/introspected
Problem
Autocomplete works correctly for tables in the current active database, but cross-database autocomplete does not.
For example, assuming database_a is the current active database:
Table autocomplete works normally.
Cross-database autocomplete initially also shows the table list:
SELECT *
FROM database_b.
After typing ., all tables from database_b are shown correctly.
However, as soon as I type the first character of the table name:
SELECT *
FROM database_b.t
the table suggestions disappear completely.
This only happens when referencing another database. Autocomplete for the current active database works normally.
Steps to reproduce
- Connect to a MySQL instance containing multiple databases.
- Set
database_a as the active database.
- Make sure metadata for
database_b has already been loaded.
- Type:
SELECT *
FROM database_b.
- The table list appears correctly.
- Type one character of a table name:
SELECT *
FROM database_b.t
- All table suggestions disappear.
For comparison:
when using the active database continues to autocomplete normally.
Expected behavior
Cross-database autocomplete should continue filtering the existing table list after typing a prefix.
For example:
shows:
task
task_log
tenant
user
...
Then:
should show something like:
instead of returning no suggestions.
Notes
DBCode 1.38.2 changelog mentions a fix for:
schema-qualified autocomplete dropping the table list after you start typing the table name
However, this issue is still reproducible for cross-database MySQL autocomplete in DBCode 1.38.5.
It may be specific to cross-database resolution rather than normal autocomplete.
Environment
Problem
Autocomplete works correctly for tables in the current active database, but cross-database autocomplete does not.
For example, assuming
database_ais the current active database:Table autocomplete works normally.
Cross-database autocomplete initially also shows the table list:
After typing
., all tables fromdatabase_bare shown correctly.However, as soon as I type the first character of the table name:
the table suggestions disappear completely.
This only happens when referencing another database. Autocomplete for the current active database works normally.
Steps to reproduce
database_aas the active database.database_bhas already been loaded.For comparison:
when using the active database continues to autocomplete normally.
Expected behavior
Cross-database autocomplete should continue filtering the existing table list after typing a prefix.
For example:
shows:
Then:
should show something like:
instead of returning no suggestions.
Notes
DBCode 1.38.2 changelog mentions a fix for:
However, this issue is still reproducible for cross-database MySQL autocomplete in DBCode 1.38.5.
It may be specific to cross-database resolution rather than normal autocomplete.