Skip to content

Commit a3e59b9

Browse files
committed
Merge branch 'master' of https://github.com/elm-tooling/elm-language-client-vscode into diagnosticSetting
2 parents 034f4a4 + fec5f61 commit a3e59b9

File tree

11 files changed

+538
-199
lines changed

11 files changed

+538
-199
lines changed

.github/workflows/compile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
node-version: [12]
1313

1414
steps:
15-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v2
1616
with:
1717
submodules: true
1818
- name: Setup node ${{ matrix.node-version }}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy Extension
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
submodules: true
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: 12
17+
- run: npm ci
18+
- run: npm run compile
19+
- name: Publish to Open VSX Registry
20+
uses: HaaLeo/publish-vscode-extension@v0
21+
with:
22+
pat: ${{ secrets.OPEN_VSX_TOKEN }}
23+
- name: Publish to Visual Studio Marketplace
24+
uses: HaaLeo/publish-vscode-extension@v0
25+
with:
26+
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
27+
registryUrl: https://marketplace.visualstudio.com

CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
11
# Change Log
22

3+
## 1.5.3
4+
5+
- Updated the language server
6+
- Fix bug on file open
7+
- Fix some type inference bugs
8+
- Reset diagnostics for elmMake and elmAnalyze
9+
10+
## 1.5.2
11+
12+
- No changes
13+
14+
## 1.5.1
15+
16+
- No changes
17+
18+
## 1.5.0
19+
20+
- Updated the language server
21+
- Debounce sending diagnostics to the client
22+
- Support finding field references and renaming
23+
- Tree sitter parser improvements
24+
- Handle negate expressions in type inference
25+
26+
## 1.4.1
27+
28+
- Updated the language server
29+
- Fixed hovers for functions not showing up
30+
- Fixed hovers for let definitions not showing if they have no type annotation
31+
- Fixed a problem with node 10
32+
33+
## 1.4.0
34+
35+
- Elm-Analyse will be disabled by default from now on
36+
- Added elm-tooling.json schema for better integration
37+
- Updated dependencies
38+
39+
- Updated the language server
40+
- Make entrypoints configurable via elm-tooling.json
41+
- Default elmAnalyseTrigger to never
42+
- Added type inference
43+
- Added type inference diagnostics for missing top level type annotations
44+
- Added codeActions to infer annotations for functions
45+
- Added goto definition and references for ports
46+
- Create function declaration from usage
47+
- More goto definition improvements
48+
- Tree sitter now parses the files incrementally after the initial scan
49+
350
## 1.3.0
451

552
- Prefill newly create elm files

HOW_TO_RELEASE.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
- Update the changelog in `CHANGELOG.md`
2-
- Increase the version in `package.json`
3-
- Run `npm install`
4-
- Run `npm run compile`
2+
- Run `npm run version-patch`, `npm run version-minor` or `npm run version-major`
53
- Push the code to github and wait for the CI
6-
- Run `vsce publish`
7-
- Run `ovsx publish`
8-
- Tag the new version on github
4+
- Create a new release on github, the CI pipeline will then publish to Visual Studio Marketplace and the Open VSX Registry

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Elm Plugin for Visual Studio Code (VSCode)
22

3+
[![Version](https://vsmarketplacebadge.apphb.com/version/Elmtooling.elm-ls-vscode.svg)](https://marketplace.visualstudio.com/items?itemName=Elmtooling.elm-ls-vscode)
4+
[![Downloads](https://vsmarketplacebadge.apphb.com/downloads-short/Elmtooling.elm-ls-vscode.svg)](https://marketplace.visualstudio.com/items?itemName=Elmtooling.elm-ls-vscode)
5+
[![Rating](https://vsmarketplacebadge.apphb.com/rating-star/Elmtooling.elm-ls-vscode.svg)](https://marketplace.visualstudio.com/items?itemName=Elmtooling.elm-ls-vscode)
6+
37
Supports elm 0.19 and up
48

59
## Install
@@ -26,6 +30,7 @@ Supports elm 0.19 and up
2630
- Browse workspace by symbols (Control + Shift + R)
2731
- Codelenses show how many times you calling a function and if it's exposed or not
2832
- Code folding
33+
- Type inference
2934

3035
## Extension Settings
3136

@@ -37,6 +42,25 @@ This extension contributes the following settings:
3742
- `elmLS.elmTestPath`: The path to your elm-test executable.
3843
- `elmLS.elmAnalyseTrigger`: When do you want the extension to run elm-analyse? Might need a restart to take effect.
3944

45+
## Configuration
46+
47+
Create an [elm-tooling.json](https://github.com/lydell/elm-tooling.json) file next to your `elm.json` to configure your project.
48+
49+
Currently there’s just one thing that you can configure: entrypoints. We run `elm make` to get errors. Without this `elm make` is run on the current file only. To get errors for the entire project you can specify your entrypoint files – basically, those with `main =` in them. Then the language server will run `elm make` on those instead.
50+
51+
Example:
52+
53+
```json
54+
{
55+
"entrypoints": ["./src/Main.elm"]
56+
}
57+
```
58+
59+
The entrypoints are relative to the directory where your `elm.json` and `elm-tooling.json` is and must start with `./`.
60+
61+
Check out the [elm-tooling](https://github.com/lydell/elm-tooling.json/tree/main/cli#readme) CLI for creating and validating your `elm-tooling.json`!
62+
63+
4064
## FAQ
4165

4266
- Most features don't seem to work for me?
@@ -55,6 +79,10 @@ This extension contributes the following settings:
5579

5680
- Yes, you can, please check [here](https://github.com/elm-tooling/elm-language-server/blob/master/README.md#elm-analyse-configuration) for more details.
5781

82+
- I don't like the inserted lines for "X references" (CodeLenses)
83+
84+
- You can configure VSCode to not show them, just look for "Editor: Code Lens" in your settings.
85+
5886
## Contributing / Debugging
5987

6088
```shell

0 commit comments

Comments
 (0)