{"id":13764128,"url":"https://github.com/theia-ide/go-language-server","last_synced_at":"2025-05-10T17:31:43.441Z","repository":{"id":57496998,"uuid":"111550561","full_name":"theia-ide/go-language-server","owner":"theia-ide","description":"A Go language server.","archived":true,"fork":true,"pushed_at":"2019-03-25T14:30:07.000Z","size":35230,"stargazers_count":32,"open_issues_count":3,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-18T07:42:15.309Z","etag":null,"topics":["go","language-server","language-server-protocol","lsp"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"microsoft/vscode-go","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theia-ide.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-21T13:10:33.000Z","updated_at":"2023-11-21T12:28:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/theia-ide/go-language-server","commit_stats":null,"previous_names":[],"tags_count":62,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theia-ide%2Fgo-language-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theia-ide%2Fgo-language-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theia-ide%2Fgo-language-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theia-ide%2Fgo-language-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theia-ide","download_url":"https://codeload.github.com/theia-ide/go-language-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253453353,"owners_count":21911082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","language-server","language-server-protocol","lsp"],"created_at":"2024-08-03T15:01:15.049Z","updated_at":"2025-05-10T17:31:40.532Z","avatar_url":"https://github.com/theia-ide.png","language":"TypeScript","funding_links":[],"categories":["Editor Plugins","编辑器插件","Libraries for creating HTTP middlewares"],"sub_categories":["Routers","路由器","代码分析"],"readme":"# A Go Language Server based on the Go Extension for Visual Studio Code\n\nWraps the VSCode Go extension from Microsoft into a language server, such that\nits functionality can be reused with other LSP-aware clients.\n\nIn the first iteration we will mock VSCode APIs or simulate their behavior\nbacked by an LSP. We will maintain this as a fork of the original repository\nsuch that we can easily pick up incoming improvements of that by just rebasing.\nOnce we got more confidence, we'd probably refactor the VSCode specific parts\naway.\n\n[Original README.md](README_old.MD).\n\n## Mismatches and Challenges\n\n- There is no such thing as the `activeTextEditor` in LSP. For services that\n  have a `TextDocumentItem`, we set it before calling the service impl, but for\n  other services, e.g. `executeCommand` we cannot make sure that they are\n  performed on the correct document.\n- We have to use/mock/adapt a lot of global variables\n\n## Prerequisites\n\nMake sure the `go` command is available from your path and that the GOPATH\nenvironment variable points to where your go packages are installed.  Some go\npackages are necessary:\n\n```shell\ngo get -u -v github.com/nsf/gocode\ngo get -u -v github.com/uudashr/gopkgs/cmd/gopkgs\ngo get -u -v github.com/ramya-rao-a/go-outline\ngo get -u -v github.com/acroca/go-symbols\ngo get -u -v golang.org/x/tools/cmd/guru\ngo get -u -v golang.org/x/tools/cmd/gorename\ngo get -u -v github.com/fatih/gomodifytags\ngo get -u -v github.com/haya14busa/goplay/cmd/goplay\ngo get -u -v github.com/josharian/impl\ngo get -u -v github.com/tylerb/gotype-live\ngo get -u -v github.com/rogpeppe/godef\ngo get -u -v golang.org/x/tools/cmd/godoc\ngo get -u -v github.com/zmb3/gogetdoc\ngo get -u -v golang.org/x/tools/cmd/goimports\ngo get -u -v sourcegraph.com/sqs/goreturns\ngo get -u -v github.com/golang/lint/golint\ngo get -u -v github.com/cweill/gotests/...\ngo get -u -v github.com/alecthomas/gometalinter\ngo get -u -v honnef.co/go/tools/...\ngo get -u -v github.com/sourcegraph/go-langserver\ngo get -u -v github.com/derekparker/delve/cmd/dlv\ngo get -u -v github.com/davidrjenni/reftools/cmd/fillstruc\n```\n\nNote: this list comes from\n[here](https://github.com/theia-ide/go-language-server/blob/master/src/goInstallTools.ts#L20-L42).\n\n## Build and usage\n\n1. Run `npm install` to install the package dependencies.\n2. Run `npm run compile` to compile the Typescript to Javascript.\n3. Run the server with `node ./out/src-vscode-mock/cli.js --stdio`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheia-ide%2Fgo-language-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheia-ide%2Fgo-language-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheia-ide%2Fgo-language-server/lists"}