Skip to content

Commit 741b252

Browse files
authored
Merge pull request #568 from fendor/release/2.0.0-alpha
Prepare Prerelease 2.0.0 alpha
2 parents 2008eba + 0ee6e33 commit 741b252

File tree

5 files changed

+116
-46
lines changed

5 files changed

+116
-46
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
on:
2+
release:
3+
types: [prereleased, released]
4+
5+
name: Deploy Extension
6+
jobs:
7+
build-vsix:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: 17
14+
- run: yarn install --immutable --immutable-cache --check-cache
15+
- name: Package Extension
16+
id: packageExtension
17+
uses: HaaLeo/publish-vscode-extension@v1
18+
with:
19+
pat: stub
20+
dryRun: true
21+
preRelease: ${{ github.event.action == 'prereleased' }}
22+
yarn: true
23+
24+
- name: Upload extension vsix to workflow artifacts
25+
uses: actions/upload-artifact@v3
26+
with:
27+
name: haskell-${{ github.event.release.tag_name }}.vsix
28+
path: ${{ steps.packageExtension.outputs.vsixPath }}
29+
outputs:
30+
vsixPath: ${{ steps.packageExtension.outputs.vsixPath }}
31+
32+
## If this is a release job, publish to VSCode,
33+
## otherwise publish a pre-release to VSCode
34+
deploy-vs:
35+
runs-on: ubuntu-latest
36+
needs: [build-vsix]
37+
steps:
38+
- name: Publish to Visual Studio Marketplace
39+
id: publishToVSMarketplace
40+
uses: HaaLeo/publish-vscode-extension@v1
41+
with:
42+
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
43+
registryUrl: https://marketplace.visualstudio.com
44+
extensionFile: ${{ needs.build-vsix.outputs.vsixPath }}
45+
yarn: true
46+
preRelease: ${{ github.event.action == 'prereleased' }}
47+
48+
## Publish to VSX iff this is a release
49+
deploy-vsx:
50+
runs-on: ubuntu-latest
51+
needs: [build-vsix]
52+
# Run this job only on release, VSX doesn't support pre-releases yet
53+
if: ${{ github.event.action == 'released' }}
54+
steps:
55+
- name: Publish to Open VSX Registry
56+
id: publishToOpenVSX
57+
continue-on-error: true
58+
uses: HaaLeo/publish-vscode-extension@v1
59+
with:
60+
pat: ${{ secrets.OPEN_VSX_TOKEN }}
61+
extensionFile: ${{ needs.build-vsix.outputs.vsixPath }}
62+
yarn: true

Changelog.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
# Changelog for vscode-haskell
22

3+
## 2.0.0-alpha
4+
5+
- Add prettier script
6+
([#566](https://github.com/haskell/vscode-haskell/pull/566)) by @fendor
7+
- Remove accidental run command
8+
([#565](https://github.com/haskell/vscode-haskell/pull/565)) by @fendor
9+
- Upgrade dependencies
10+
([#564](https://github.com/haskell/vscode-haskell/pull/564)) by @fendor
11+
- Add new configuration options for rename plugin
12+
([#563](https://github.com/haskell/vscode-haskell/pull/563)) by @OliverMadine
13+
- Introduce 'haskell.toolchain' setting
14+
([#562](https://github.com/haskell/vscode-haskell/pull/562)) by @hasufell
15+
- Improve
16+
([#558](https://github.com/haskell/vscode-haskell/pull/558)) by @hasufell
17+
- Remove stdout/sterr from user error message
18+
([#556](https://github.com/haskell/vscode-haskell/pull/556)) by @fendor
19+
- Fix npm security issue
20+
([#555](https://github.com/haskell/vscode-haskell/pull/555)) by @fendor
21+
- No colour output for GHCup
22+
([#554](https://github.com/haskell/vscode-haskell/pull/554)) by @fendor
23+
- Add eval plugin configuration
24+
([#549](https://github.com/haskell/vscode-haskell/pull/549)) by @xsebek
25+
- Manage all the Haskell things
26+
([#547](https://github.com/haskell/vscode-haskell/pull/547)) by @hasufell
27+
- Consider user installed HLSes (e.g. via ghcup compile)
28+
([#543](https://github.com/haskell/vscode-haskell/pull/543)) by @hasufell
29+
- Bump lodash-es from 4.17.15 to 4.17.21
30+
([#539](https://github.com/haskell/vscode-haskell/pull/539)) by @dependabot[bot]
31+
- Update README.MD GHC support
32+
([#537](https://github.com/haskell/vscode-haskell/pull/537)) by @cptwunderlich
33+
- fix: change deprecated Haskell Platform install link to GHCup
34+
([#536](https://github.com/haskell/vscode-haskell/pull/536)) by @HEIGE-PCloud
35+
- Update HLS installation method
36+
([#533](https://github.com/haskell/vscode-haskell/pull/533)) by @hasufell
37+
- Bump ajv from 6.12.0 to 6.12.6
38+
([#532](https://github.com/haskell/vscode-haskell/pull/532)) by @dependabot[bot]
39+
- Fixes related with paths
40+
([#518](https://github.com/haskell/vscode-haskell/pull/518)) by @jneira
41+
- Reorganize troubleshooting section
42+
([#516](https://github.com/haskell/vscode-haskell/pull/516)) by @jneira
43+
344
## 1.8.0
445

546
This release includes some interesting new features:

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
This extension adds language support for [Haskell](https://haskell.org), powered by the [Haskell Language Server](https://github.com/haskell/haskell-language-server).
66
As almost all features are provided by the server you might find interesting read its [documentation](https://haskell-language-server.readthedocs.io).
77

8+
## Setup
9+
10+
This Extension comes with "batteries"-included and can manage your Haskell Language Server installations for you,
11+
powered by [GHCup](https://www.haskell.org/ghcup/).
12+
Installation of [GHCup](https://www.haskell.org/ghcup/) can not happen automatically, so if you want your HLS installations to be
13+
managed by the Extension, you will have to follow the [installation instructions for GHCup](https://www.haskell.org/ghcup/).
14+
15+
**Note:** Make sure you have a working `ghcup` installation, before launching the Extension.
16+
817
## Features
918

1019
You can watch demos for some of these features [here](https://haskell-language-server.readthedocs.io/en/latest/features.html#demos).
@@ -78,7 +87,7 @@ first start. Check the `haskell.manageHLS` setting.
7887

7988
It will then download the newest version of haskell-language-server which has support for the required ghc.
8089
That means it could use an older version than the latest one, without the last features and bug fixes.
81-
For example, if a project needs ghc-8.10.4 the extension will download and use haskell-language-server-1.4.0, the lastest version which supported ghc-8.10.4. Even if the lastest global haskell language-server version is 1.5.1.
90+
For example, if a project needs ghc-8.10.4 the extension will download and use haskell-language-server-1.4.0, the latest version which supported ghc-8.10.4. Even if the latest global haskell language-server version is 1.5.1.
8291

8392
If you have disk space issues, check `ghcup gc --help`.
8493

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "haskell",
33
"displayName": "Haskell",
44
"description": "Haskell language support powered by the Haskell Language Server",
5-
"version": "1.8.0",
5+
"version": "2.0.0",
66
"license": "MIT",
77
"publisher": "haskell",
88
"engines": {
@@ -125,7 +125,7 @@
125125
"scope": "resource",
126126
"type": "string",
127127
"default": "",
128-
"description": "An optional URL to override where ghcup checks for HLS-GHC compatibilty list (usually at: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/hls-metadata-0.0.1.json)"
128+
"description": "An optional URL to override where ghcup checks for HLS-GHC compatibility list (usually at: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/hls-metadata-0.0.1.json)"
129129
},
130130
"haskell.metadataURL": {
131131
"scope": "resource",
@@ -199,7 +199,7 @@
199199
"scope": "resource",
200200
"type": "boolean",
201201
"default": true,
202-
"description": "Whether to typecheck the entire project on load. It could drive to bad perfomance in large projects."
202+
"description": "Whether to typecheck the entire project on load. It could drive to bad performance in large projects."
203203
},
204204
"haskell.maxCompletions": {
205205
"scope": "resource",

0 commit comments

Comments
 (0)