Skip to content

feat: Add codegen lsp #491

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ dependencies = [
"numpy>=2.2.2",
"mcp[cli]",
"neo4j",
"pygls>=2.0.0a2",
"lsprotocol==2024.0.0b1",
"attrs>=25.1.0",
]

license = { text = "Apache-2.0" }
Expand Down Expand Up @@ -117,7 +120,6 @@ types = [
"types-requests>=2.32.0.20241016",
"types-toml>=0.10.8.20240310",
]
lsp = ["pygls>=2.0.0a2", "lsprotocol==2024.0.0b1", "attrs>=25.1.0"]
[tool.uv]
cache-keys = [{ git = { commit = true, tags = true } }]
dev-dependencies = [
Expand Down
3 changes: 2 additions & 1 deletion src/codegen/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from codegen.cli.commands.list.main import list_command
from codegen.cli.commands.login.main import login_command
from codegen.cli.commands.logout.main import logout_command
from codegen.cli.commands.lsp.lsp import lsp_command
from codegen.cli.commands.notebook.main import notebook_command
from codegen.cli.commands.profile.main import profile_command
from codegen.cli.commands.reset.main import reset_command
Expand Down Expand Up @@ -43,7 +44,7 @@ def main():
main.add_command(reset_command)
main.add_command(update_command)
main.add_command(config_command)

main.add_command(lsp_command)

if __name__ == "__main__":
main()
11 changes: 11 additions & 0 deletions src/codegen/cli/commands/lsp/lsp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import logging

import click

from codegen.extensions.lsp.lsp import server


@click.command(name="lsp")
def lsp_command():
logging.basicConfig(level=logging.INFO)
server.start_io()
14 changes: 6 additions & 8 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading