Skip to content
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

Support LSP #305

Open
kkoreilly opened this issue Dec 26, 2023 · 7 comments
Open

Support LSP #305

kkoreilly opened this issue Dec 26, 2023 · 7 comments
Labels
code Cogent Code enhancement A new feature request

Comments

@kkoreilly
Copy link
Member

Supporting LSP (Language Server Protocol) is the main thing needed to make gide a viable replacement for mainstream editors like VS Code.

@kkoreilly kkoreilly added the enhancement A new feature request label Dec 26, 2023
@ddkwork
Copy link
Contributor

ddkwork commented Feb 14, 2024

i will read this:
https://github.com/golang/tools/tree/master/gopls

@ddkwork
Copy link
Contributor

ddkwork commented Feb 23, 2024

Supporting LSP (Language Server Protocol) is the main thing needed to make gide a viable replacement for mainstream editors like VS Code.

The current code editor layout is a bit unsuitable for my small screen, and each file requires dragging horizontal scrollbars to see through the code. I just figured out how to use go vet to batch check the outdated features before go1.22, the performance is okay, I'm going to simulate a goland or fleet layout to test it, when the code problem is detected, it will display the file and line number in the log tab, I don't know how to make the text editor click on the log text when opening the file and jump to the line number displayed in the log, then I'll ask you. For GoPlus, I'm still studying its usage, my idea is to use GoPlus to make the code editor work like Goland first, and then expand GoPlus's LSP interface to adapt to other languages, such as cmd bat rust json and other languages or scripts for LSP work, because the research on the versatility of the LSP interface suitable for Go should be as simple as all languages.

@ddkwork
Copy link
Contributor

ddkwork commented Feb 23, 2024

@kkoreilly
Copy link
Member Author

To make the layout better for your small screen, you should run Splits > Set View > Small (you can type ssvs in the search bar to get there). I do not think it makes sense to do a gopls specific implementation; it should be much easier and more general-purpose to do an LSP implementation that will work for all languages. If you want to look more into LSP and start working on developing code to interface with it in Go, that would be awesome. Otherwise, I will work on it at some point, but I will focus on finishing v1 of core and releasing it first.

@ddkwork
Copy link
Contributor

ddkwork commented Feb 23, 2024 via email

@ddkwork
Copy link
Contributor

ddkwork commented Feb 23, 2024 via email

@ddkwork
Copy link
Contributor

ddkwork commented Feb 23, 2024 via email

@kkoreilly kkoreilly added the code Cogent Code label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Cogent Code enhancement A new feature request
Projects
None yet
Development

No branches or pull requests

2 participants