Skip to content

refactor: move lsp implmentation into internal#246

Merged
hardfist merged 2 commits intomainfrom
yj/refactor-lsp
Aug 13, 2025
Merged

refactor: move lsp implmentation into internal#246
hardfist merged 2 commits intomainfrom
yj/refactor-lsp

Conversation

@hardfist
Copy link
Copy Markdown
Contributor

move the lsp implementation into internal/lsp and align with tsgo structure

Copilot AI review requested due to automatic review settings August 13, 2025 07:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the LSP implementation by moving it from the main command package into a dedicated internal package structure. The changes align the codebase with the TypeScript-Go project structure and improve code organization.

  • Moves LSP server implementation from cmd/rslint/lsp.go to internal/lsp/server.go
  • Creates a new internal/lsp package with proper encapsulation
  • Updates package references and imports to use the new structure

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/lsp/service.go Empty file removed during the refactoring
internal/lsp/server_test.go Package declaration corrected from main to lsp
internal/lsp/server.go Complete LSP server implementation moved from cmd package
internal/ls/api.go New empty package file created
cmd/rslint/lsp.go Simplified to use the new internal/lsp package

Comment thread internal/ls/api.go
@hardfist hardfist merged commit baa4bce into main Aug 13, 2025
7 checks passed
@hardfist hardfist deleted the yj/refactor-lsp branch August 13, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants