lsp-types 1.6.0.0 → 1.6.0.1
raw patch · 2 files changed
+28/−22 lines, 2 filesdep ~basenew-uploaderPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base
API changes (from Hackage documentation)
- Data.IxMap: [getMap] :: IxMap (k :: a -> Type) (f :: a -> Type) -> Map (Base k) (Some f)
- Language.LSP.Types: [_character] :: Position -> UInt
- Language.LSP.Types: [_dynamicRegistration] :: DidChangeConfigurationClientCapabilities -> Maybe Bool
- Language.LSP.Types: [_end] :: Range -> Position
- Language.LSP.Types: [_id] :: StaticRegistrationOptions -> Maybe Text
- Language.LSP.Types: [_items] :: ConfigurationParams -> List ConfigurationItem
- Language.LSP.Types: [_language] :: DocumentFilter -> Maybe Text
- Language.LSP.Types: [_line] :: Position -> UInt
- Language.LSP.Types: [_originSelectionRange] :: LocationLink -> Maybe Range
- Language.LSP.Types: [_pattern] :: DocumentFilter -> Maybe Text
- Language.LSP.Types: [_range] :: Location -> Range
- Language.LSP.Types: [_scheme] :: DocumentFilter -> Maybe Text
- Language.LSP.Types: [_scopeUri] :: ConfigurationItem -> Maybe Text
- Language.LSP.Types: [_section] :: ConfigurationItem -> Maybe Text
- Language.LSP.Types: [_settings] :: DidChangeConfigurationParams -> Value
- Language.LSP.Types: [_start] :: Range -> Position
- Language.LSP.Types: [_targetRange] :: LocationLink -> Range
- Language.LSP.Types: [_targetSelectionRange] :: LocationLink -> Range
- Language.LSP.Types: [_targetUri] :: LocationLink -> Uri
- Language.LSP.Types: [_uri] :: Location -> Uri
- Language.LSP.Types: [getUri] :: Uri -> Text
+ Data.IxMap: [$sel:getMap:IxMap] :: IxMap (k :: a -> Type) (f :: a -> Type) -> Map (Base k) (Some f)
+ Language.LSP.Types: [$sel:_character:Position] :: Position -> UInt
+ Language.LSP.Types: [$sel:_dynamicRegistration:DidChangeConfigurationClientCapabilities] :: DidChangeConfigurationClientCapabilities -> Maybe Bool
+ Language.LSP.Types: [$sel:_end:Range] :: Range -> Position
+ Language.LSP.Types: [$sel:_id:StaticRegistrationOptions] :: StaticRegistrationOptions -> Maybe Text
+ Language.LSP.Types: [$sel:_items:ConfigurationParams] :: ConfigurationParams -> List ConfigurationItem
+ Language.LSP.Types: [$sel:_language:DocumentFilter] :: DocumentFilter -> Maybe Text
+ Language.LSP.Types: [$sel:_line:Position] :: Position -> UInt
+ Language.LSP.Types: [$sel:_originSelectionRange:LocationLink] :: LocationLink -> Maybe Range
+ Language.LSP.Types: [$sel:_pattern:DocumentFilter] :: DocumentFilter -> Maybe Text
+ Language.LSP.Types: [$sel:_range:Location] :: Location -> Range
+ Language.LSP.Types: [$sel:_scheme:DocumentFilter] :: DocumentFilter -> Maybe Text
+ Language.LSP.Types: [$sel:_scopeUri:ConfigurationItem] :: ConfigurationItem -> Maybe Text
+ Language.LSP.Types: [$sel:_section:ConfigurationItem] :: ConfigurationItem -> Maybe Text
+ Language.LSP.Types: [$sel:_settings:DidChangeConfigurationParams] :: DidChangeConfigurationParams -> Value
+ Language.LSP.Types: [$sel:_start:Range] :: Range -> Position
+ Language.LSP.Types: [$sel:_targetRange:LocationLink] :: LocationLink -> Range
+ Language.LSP.Types: [$sel:_targetSelectionRange:LocationLink] :: LocationLink -> Range
+ Language.LSP.Types: [$sel:_targetUri:LocationLink] :: LocationLink -> Uri
+ Language.LSP.Types: [$sel:_uri:Location] :: Location -> Uri
+ Language.LSP.Types: [$sel:getUri:Uri] :: Uri -> Text
- Language.LSP.Types: regHelper :: forall m_a6IB6 x_a6IB7. SMethod m_a6IB6 -> (Show (RegistrationOptions m_a6IB6) => ToJSON (RegistrationOptions m_a6IB6) => FromJSON (RegistrationOptions m_a6IB6) => x_a6IB7) -> x_a6IB7
+ Language.LSP.Types: regHelper :: forall m_a6IBi x_a6IBj. SMethod m_a6IBi -> (Show (RegistrationOptions m_a6IBi) => ToJSON (RegistrationOptions m_a6IBi) => FromJSON (RegistrationOptions m_a6IBi) => x_a6IBj) -> x_a6IBj
- Language.LSP.Types.Lens: _InL :: forall a_a7FUY b_iqS3 a_iqS2. Prism ((|?) a_a7FUY b_iqS3) ((|?) a_iqS2 b_iqS3) a_a7FUY a_iqS2
+ Language.LSP.Types.Lens: _InL :: forall a_a7FX5 b_iqTC a_iqTB. Prism ((|?) a_a7FX5 b_iqTC) ((|?) a_iqTB b_iqTC) a_a7FX5 a_iqTB
- Language.LSP.Types.Lens: _InR :: forall a_iqS2 b_a7FV3 b_iqS3. Prism ((|?) a_iqS2 b_a7FV3) ((|?) a_iqS2 b_iqS3) b_a7FV3 b_iqS3
+ Language.LSP.Types.Lens: _InR :: forall a_iqTB b_a7FXa b_iqTC. Prism ((|?) a_iqTB b_a7FXa) ((|?) a_iqTB b_iqTC) b_a7FXa b_iqTC
Files
- ChangeLog.md +24/−20
- lsp-types.cabal +4/−2
ChangeLog.md view
@@ -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)@@ -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)@@ -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)@@ -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)@@ -94,7 +98,7 @@ * 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.@@ -193,10 +197,10 @@ `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 }@@ -212,7 +216,7 @@ 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)@@ -223,12 +227,12 @@ 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@@ -238,7 +242,7 @@ * 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)@@ -298,7 +302,7 @@ * Add types for `window/progress` notifications. -## 0.8.3.0+## 0.8.3.0 -- unpublished * Add `MarkupContent` to `HoverResponse`, and (some) json roundtrip tests. @@ -351,11 +355,11 @@ * 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
lsp-types.cabal view
@@ -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@@ -102,7 +102,9 @@ 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