dense-analysis / dense-analysis/ale

add support for LSP workspace/executeCommand message for initial use with Scala Metals

Open
#3,300 4 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Vim Script
Stars
14k
Forks
1.5k
Avg merge
17h 49m
Merged PRs (30d)
1

Description

I'm using [Metals](https://scalameta.org/metals/) via https://github.com/dense-analysis/ale/blob/master/ale_linters/scala/metals.vim (thanks, @zoonfafer!)

Metals [needs users to import the build](https://scalameta.org/metals/docs/editors/vim.html#importing-a-build) upon first use within a workspace (i.e., a Scala project). Once you do that, the Metals server exposes all the goodies necessary for a rich user experience.

To tell the Metals server to import the build, you `POST` to its `/execute-command` endpoint with `command=build-import`:

```sh
curl -XPOST http://localhost:5031/execute-command?command=build-import
```

The first time one does this in a project, it takes a while. Subsequent invocations take much less time.

Is there some standard pattern for this sort of thing in ALE's plugin ecosystem?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.