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

release lsp types 1.6.0.1 #536

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 30 additions & 17 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,60 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: ['9.2.4', '9.0.2', '8.10.7', '8.8.4', '8.6.5']
os: [ubuntu-latest, macOS-latest, windows-latest]
ghc: ['9.8', '9.6', '9.4', '9.2', '9.0.2', '8.10.7', '8.8.4', '8.6.5']
os: [ubuntu-latest]
ospath: [true, false]
exclude:
# newer 'entropy' doesn't work with old 'unix', and it doesn't have a correct version bound.
- ospath: true
ghc: 8.6.5
ghc: '8.6.5'
# "cabal build" always timeout
- ospath: true
ghc: 8.8.4
ghc: '8.8.4'
os: windows-latest
include:
- os: macOS-latest
ghc: '9.8'
ospath: true
- os: macOS-latest
ghc: '9.8'
ospath: false
- os: windows-latest
ghc: '9.8'
ospath: true
- os: windows-latest
ghc: '9.8'
ospath: false

steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
- uses: actions/checkout@v4

- uses: haskell-actions/setup@v2
id: setup
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.6'
cabal-update: true

- name: Cabal cache
uses: actions/cache@v1
uses: actions/cache@v3
env:
cache-name: cache-cabal
cache-name: cabal
with:
path: ~/.cabal
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-ghc-${{ steps.setup.outputs.ghc-version}}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-${{ env.cache-name }}-ghc-${{ steps.setup.outputs.ghc-version}}-

- name: Stack cache
uses: actions/cache@v1
uses: actions/cache@v3
env:
cache-name: cache-stack
cache-name: stack
with:
path: ~/.stack
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/stack.yaml') }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-ghc-${{ steps.setup.outputs.ghc-version}}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/stack.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-${{ env.cache-name }}-ghc-${{ steps.setup.outputs.ghc-version}}-

- name: Cabal update
run: cabal update
- name: Cabal configure
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ packages:
package lsp
flags: +demo

index-state: 2022-08-25T22:25:05Z

tests: True
benchmarks: True
test-show-details: direct
Expand Down
44 changes: 24 additions & 20 deletions lsp-types/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
# Revision history for lsp-types

## 1.6.0.0
## 1.6.0.1 -- 2023-12-02

* Add `LANGUAGE DuplicateRecordFields` to facilitate building with GHC 9.8

## 1.6.0.0 -- 2022-09-13

* Add `isSubRangeOf` and `positionInRange` helper functions
* Add `ServerCancelled`, `RequestFailed` and `ErrorCodeCustom` server error types
* Fix "workspace/semanticTokens/refresh" to be a server method instead of a client method
* Use a packed representation for `NormalizedFilePath`
* Add converions from `OsPath` to `NormalizedFilePath` in `Language.LSP.Types.Uri.OsPath` when using new enough `filepath`
## 1.5.0.0

## 1.5.0.0 -- 2022-06-20

* VFS module moved from `lsp-types` to `lsp`, as it relates to the actual implementation of a LSP server.

## 1.4.0.1
## 1.4.0.1 -- 2022-01-20

* Fix result type of selection range requests.

## 1.4.0.0
## 1.4.0.0 -- 2021-12-28

* Aeson 2 compatibility (#360) (@michaelpj)
* Reduced dependency footprint (#383, #384) (@Bodigrim)
Expand All @@ -26,15 +30,15 @@
* Fix the Semigroup instance for MarkupContent (#361) (@michaelpj)
* Various improvements to spec conformance (@michaelpj)

## 1.3.0.1
## 1.3.0.1 -- 2021-08-06

* Rollback NFP interning (#344) (@pepeiborra)

## 1.3.0.0
## 1.3.0.0 -- 2021-07-31

* Intern NormalizedFilePaths (#340) (@pepeiborra)

## 1.2.0.1
## 1.2.0.1 -- unpublished

* Add compatibility with GHC 9.2 (#345) (@fendor)
* Fix missing lenses (@michaelpj)
Expand All @@ -44,7 +48,7 @@
* Do not crash on workspace/didChangeConfiguration (#321) (@strager)
* Improve error messages on JSON decode failures (#320) (@strager)

## 1.2.0.0
## 1.2.0.0 -- 2021-03-28

* Prevent crashing when optional fields are missing (@anka-213)
* Use StrictData (@wz1000)
Expand All @@ -61,7 +65,7 @@
* Support change annotations (#302) (@michaelpj)
* Add some more missing lenses (#307) (@michaelpj)

## 1.1.0.0
## 1.1.0.0 -- 2021-02-14

* Fix prepareRename reponse and prepareProvider (@kirelagin)
* Fix deriving instance of MonadUnliftIO (@banacorn)
Expand Down Expand Up @@ -94,7 +98,7 @@ type DocumentChange = TextDocumentEdit |? CreateFile |? RenameFile |? DeleteFile
* Use Text over String in more places (@wz1000)
* Add missing lenses (@wz1000, @bubba)

## 1.0.0.0
## 1.0.0.0 -- 2020-10-15

1.0.0.0 is a major rework with both internal and external facing changes, and
will require manual migration.
Expand Down Expand Up @@ -193,10 +197,10 @@ can use the result returned from `doInitialize` to pass along the
`LanguageContextEnv` needed to run an `LspT`, as well as anything else your
monad needs.
```haskell
type
type
ServerDefinition { ...
, doInitialize = \env _req -> pure $ Right env
, interpretHandler = \env -> Iso
, interpretHandler = \env -> Iso
(runLspT env) -- how to convert from IO ~> m
liftIO -- how to convert from m ~> IO
}
Expand All @@ -212,7 +216,7 @@ ServerDefinition { ...
5. Remove any storage/use of `LspFuncs` and instead call the corresponding
functions directly from your monad instead of `IO`

## 0.23.0.0
## 0.23.0.0 -- 2020-10-05

* Add runWith for transporots other than stdio (@paulyoung)
* Fix race condition in event captures (@bgamari)
Expand All @@ -223,12 +227,12 @@ ServerDefinition { ...
NormalizedFilePath (@cocreature)
* Fix ordering of TH splices (@fendor)

## 0.22.0.0
## 0.22.0.0 -- 2020-05-04

* ResponseMessage results are now an Either type (@greenhat)
* Support for GHC 8.10.1

## 0.21.0.0
## 0.21.0.0 -- 2020-03-21

* Stop getCompletionPrefix from crashing if beforePos is empty
* Add DidChangeWatchedFilesRegistrationOptions
Expand All @@ -238,7 +242,7 @@ ServerDefinition { ...
* Correctly fix the problem with '$/' notifications
* Add azure ci

## 0.20.0.0
## 0.20.0.0 -- 2020-02-04T

* Force utf8 encoding when writing vfs temp files
* Don't log errors for '$/' notifications (@jinwoo)
Expand Down Expand Up @@ -298,7 +302,7 @@ ServerDefinition { ...

* Add types for `window/progress` notifications.

## 0.8.3.0
## 0.8.3.0 -- unpublished

* Add `MarkupContent` to `HoverResponse`, and (some) json roundtrip tests.

Expand Down Expand Up @@ -351,11 +355,11 @@ ServerDefinition { ...
* CodeAction support as per v3.8 of the specification, by @Bubba
* Update VersionedTextDocumentIdentifier to match specification, by @Bubba.

## 0.3.0.0
## 0.3.0.0 -- unpublished

* Handle TextDocumentSync fallbacks with new TDS type.

## 0.2.3.0
## 0.2.3.0 -- unpublished

* GHC 8.4.3 support
* Introduce additional error codes as per the LSP spec. By @Bubba
Expand Down
6 changes: 4 additions & 2 deletions lsp-types/lsp-types.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.2
name: lsp-types
version: 1.6.0.0
version: 1.6.0.1
synopsis: Haskell library for the Microsoft Language Server Protocol, data types

description: An implementation of the types to allow language implementors to
Expand Down Expand Up @@ -102,7 +102,9 @@ library
build-depends: filepath
hs-source-dirs: src
default-language: Haskell2010
default-extensions: StrictData
default-extensions:
DuplicateRecordFields
StrictData

test-suite lsp-types-test
type: exitcode-stdio-1.0
Expand Down
10 changes: 5 additions & 5 deletions lsp/lsp.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ library
, lens >= 4.15.2
, mtl < 2.4
, prettyprinter
, sorted-list == 0.2.1.*
, sorted-list ^>= 0.2.1
, stm == 2.5.*
, temporary
, text
Expand All @@ -69,10 +69,10 @@ executable lsp-demo-reactor-server
default-language: Haskell2010
ghc-options: -Wall -Wno-unticked-promoted-constructors

build-depends: base
build-depends: base
, aeson
, co-log-core
, lens >= 4.15.2
, lens
, stm
, prettyprinter
, text
Expand All @@ -86,7 +86,7 @@ executable lsp-demo-simple-server
hs-source-dirs: example
default-language: Haskell2010
ghc-options: -Wall -Wno-unticked-promoted-constructors
build-depends: base
build-depends: base
-- the package library. Comment this out if you want repl changes to propagate
, lsp
, text
Expand All @@ -109,7 +109,7 @@ test-suite lsp-test
, containers
, lsp
, hspec
, sorted-list == 0.2.1.*
, sorted-list
, text
, text-rope
, unordered-containers
Expand Down
Loading