Skip to content

SQL Editor #1418

Answered by kkoreilly
halsten-dev asked this question in Q&A
Jan 5, 2025 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Hello, thank you for asking about this. It does look like SQL is missing from fileinfo.Known, which is an oversight on our part. We will therefore add support for that soon. I filed #1419 for this.

In the meantime, you can use SetFileExt as a workaround. Here is an example:

texteditor.NewEditor(b).Buffer.SetFileExt("sql").SetString(`SELECT * FROM users`)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by halsten-dev
Comment options

You must be logged in to vote
1 reply
@kkoreilly
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants