Table alias autocompletion in lang-sql

Hello.

How can I enable autocompletion for Table alias

import { sql, schemaCompletion} from '@codemirror/lang-sql';

sql({
    schema: {
        table_sample: [
            {
                label: 'Column 1',
                type: 'keyword'
            },
            {
                label: 'Column 2',
                type: 'keyword'
            }
        ]
    }
})

image

As you can see, autocompletion doesn’t work for both table and column names.

That’s not something the library supports, so there’s no way to ‘enable’ it.

But the old version of Codemirror has that functionality. Will this feature be added in the upcoming versions?

I don’t currently have plans for that, but a pull request would be welcome.