Skip to content

Add sqls language server#49

Closed
NathanielH-snek wants to merge 6 commits into
zed-extensions:mainfrom
NathanielH-snek:main
Closed

Add sqls language server#49
NathanielH-snek wants to merge 6 commits into
zed-extensions:mainfrom
NathanielH-snek:main

Conversation

@NathanielH-snek

@NathanielH-snek NathanielH-snek commented Mar 29, 2026

Copy link
Copy Markdown

Needed a small change but seems to be working now. Had to wrap the passed settings with an outer sqls key. Tested with sqlite. One minor annoyance to note is that there's a notification claiming no db connections on launch.

valentinegb and others added 6 commits February 28, 2025 09:39
I think adding support for a language server is substantial enough to warrant
some credit
Oops, forgot to do that
Barely had to do much to hook this up so credit to valentinegb. Tested
with sqlite
@cla-bot

cla-bot Bot commented Mar 29, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @NathanielH-snek on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@NathanielH-snek

Copy link
Copy Markdown
Author

@cla-bot check'

@cla-bot cla-bot Bot added the cla-signed label Mar 29, 2026
@cla-bot

cla-bot Bot commented Mar 29, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@NathanielH-snek

Copy link
Copy Markdown
Author

@MrSubidubi Hey totally get you're busy, any chance I can get this reviewed or merged before I fully forget whatever this was doing?

@MrSubidubi MrSubidubi changed the title sqls lsp Add sqls language server Jun 9, 2026

@MrSubidubi MrSubidubi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the delay! Few notes, overall looks fine. Can you perhaps add a small recording showing of you interacting with the server?

Comment thread src/lib.rs
let version_path = format!("{ls_path}{}/", latest_release.version);
let mut command_path = format!("{version_path}sqls");

if current_platform().0 == Os::Windows {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this, this noops on Windows anyway

Comment thread src/lib.rs
set_language_server_installation_status, settings::LspSettings,
};

struct Sql {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
struct Sql {
struct SqlExtension {

Is how we usually name these - sorry for the nitpick 😅

Comment thread .gitignore

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove some of those that are not needed and make it a bit more barebones?

Comment thread extension.toml
schema_version = 1
version = "1.1.7"
authors = ["nervenes", "notpeter", "phileix", "tammyxiong"]
authors = ["nervenes", "notpeter", "phileix", "tammyxiong", "valentinegb"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
authors = ["nervenes", "notpeter", "phileix", "tammyxiong", "valentinegb"]
authors = ["nervenes", "notpeter", "phileix", "tammyxiong"]

They mentioned someone can take this over - we appreciate their work and already send them a little goodie for everything they did some time ago, but think let's leave them out here in their interest, please.

@MrSubidubi

Copy link
Copy Markdown
Contributor

Will close for now, sorry for my initial slow reply, but happy to revisit this if you decide to pick it up again - we might want to consider disabling the language server by default since it is a bit noisy with that popup and thus might be better to keep that out of peoples faces.

In any case, thanks for spending your time on this and happy to reopoen if you find some more for this. Thanks!

@MrSubidubi MrSubidubi closed this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants