lsp-test.git
5 years agoFix tests, add changelog haskell-lsp-0.6
Luke Lau [Mon, 6 Aug 2018 19:42:55 +0000 (20:42 +0100)]
Fix tests, add changelog

5 years agoUpdate haskell-lsp to 0.6
Luke Lau [Mon, 6 Aug 2018 14:22:48 +0000 (15:22 +0100)]
Update haskell-lsp to 0.6

5 years agoUpdate README.md 0.1.0.0
Luke Lau [Sun, 5 Aug 2018 12:32:08 +0000 (13:32 +0100)]
Update README.md

5 years agoUpdate description field
Luke Lau [Sun, 5 Aug 2018 00:19:04 +0000 (01:19 +0100)]
Update description field

5 years agoRemove capabilites since haskell-lsp now provides it
Luke Lau [Sat, 4 Aug 2018 22:23:23 +0000 (23:23 +0100)]
Remove capabilites since haskell-lsp now provides it

5 years agoUpdate hie cloning
Luke Lau [Wed, 1 Aug 2018 13:46:29 +0000 (14:46 +0100)]
Update hie cloning

5 years agoOnly cache .stack-work in HIE
Luke Lau [Wed, 1 Aug 2018 13:32:16 +0000 (14:32 +0100)]
Only cache .stack-work in HIE

5 years agoMove example to separate cabal file
Luke Lau [Wed, 1 Aug 2018 13:29:30 +0000 (14:29 +0100)]
Move example to separate cabal file

Prevents example being installed with cabal install

5 years agoComplete documentation and update .cabal
Luke Lau [Wed, 1 Aug 2018 13:10:38 +0000 (14:10 +0100)]
Complete documentation and update .cabal

5 years agoHide some internals
Luke Lau [Wed, 1 Aug 2018 12:01:15 +0000 (13:01 +0100)]
Hide some internals

5 years agoRename sendRequest to request, sendRequest' to sendRequest
Luke Lau [Wed, 1 Aug 2018 11:55:55 +0000 (12:55 +0100)]
Rename sendRequest to request, sendRequest' to sendRequest

5 years agos/haskell-lsp-test/lsp-test
Luke Lau [Wed, 1 Aug 2018 11:24:25 +0000 (12:24 +0100)]
s/haskell-lsp-test/lsp-test

5 years agohaskell-lsp-test -> lsp-test
Luke Lau [Wed, 1 Aug 2018 11:14:12 +0000 (12:14 +0100)]
haskell-lsp-test -> lsp-test

5 years agoTry stack again?
Luke Lau [Tue, 31 Jul 2018 17:29:22 +0000 (18:29 +0100)]
Try stack again?

5 years agoEnable/disable dynamic registration in caps past 3.0
Luke Lau [Tue, 31 Jul 2018 16:43:49 +0000 (17:43 +0100)]
Enable/disable dynamic registration in caps past 3.0

5 years agoBring in my pathetic attempts to fix travis
Luke Lau [Tue, 31 Jul 2018 15:26:08 +0000 (16:26 +0100)]
Bring in my pathetic attempts to fix travis

Squashed commit of the following:

commit 38a29ee38abd42afffc380f4911c9ebf99108ffb
Author: Luke Lau <luke_lau@icloud.com>
Date:   Tue Jul 31 13:11:34 2018 +0100

    Remove o2

commit 476b1c64cdeccfc63fe9d06a999d90b50de3a5df
Author: Luke Lau <luke_lau@icloud.com>
Date:   Tue Jul 31 12:37:49 2018 +0100

    Use old test with streaming

commit d1d3ee853d05e1c042119312d0e9d60206ed1bc6
Author: Luke Lau <luke_lau@icloud.com>
Date:   Tue Jul 31 11:48:40 2018 +0100

    Update session.log

commit 19f8f8c406d50454b79fdc3dd669d4090a06ae1d
Merge: bca6e9f 82a682c
Author: Luke Lau <luke_lau@icloud.com>
Date:   Tue Jul 31 11:36:27 2018 +0100

    Merge branch 'master' into travis-investigation

commit bca6e9f14d7f0b49361787ec0601fd2e6ad8854a
Author: Luke Lau <luke_lau@icloud.com>
Date:   Mon Jul 30 23:53:05 2018 +0100

    cd back to build dir

commit b613d081a9df93cfc4b76e50f6d8258499929963
Author: Luke Lau <luke_lau@icloud.com>
Date:   Mon Jul 30 23:24:30 2018 +0100

    Shift comment one line to make it not look like a motivational quote

commit 32d088525bbf4bb2ea3615bb1940c59335b4cb7e
Author: Luke Lau <luke_lau@icloud.com>
Date:   Mon Jul 30 23:17:02 2018 +0100

    Try caching haskell-ide-engine

commit 752ff47e002d4f6062c9fcd3e8f1e6395a6531b6
Author: Luke Lau <luke_lau@icloud.com>
Date:   Mon Jul 30 22:58:06 2018 +0100

    Investigate travis stuff

5 years agoAdd LSPVersion and capsForVersion
Luke Lau [Tue, 31 Jul 2018 15:24:58 +0000 (16:24 +0100)]
Add LSPVersion and capsForVersion

5 years agoUpdate README.md
Luke Lau [Tue, 31 Jul 2018 12:21:39 +0000 (13:21 +0100)]
Update README.md

5 years agoAdd diff to replay error output
Luke Lau [Tue, 31 Jul 2018 10:35:07 +0000 (11:35 +0100)]
Add diff to replay error output

5 years agoAdd logColor config option
Luke Lau [Mon, 30 Jul 2018 23:01:05 +0000 (00:01 +0100)]
Add logColor config option

5 years agoAdd new-configure to travis
Luke Lau [Sun, 29 Jul 2018 18:03:07 +0000 (19:03 +0100)]
Add new-configure to travis

5 years agoUse new-test with optimisations
Luke Lau [Sat, 28 Jul 2018 17:09:52 +0000 (18:09 +0100)]
Use new-test with optimisations

5 years agoBump stack resolver
Luke Lau [Sat, 28 Jul 2018 14:22:17 +0000 (15:22 +0100)]
Bump stack resolver

5 years agoMove hie installation to before_install
Luke Lau [Sat, 28 Jul 2018 14:01:27 +0000 (15:01 +0100)]
Move hie installation to before_install

5 years agoKeep stack for installing hie
Luke Lau [Fri, 27 Jul 2018 20:39:18 +0000 (21:39 +0100)]
Keep stack for installing hie

5 years agoTry out cabal on travis
Luke Lau [Fri, 27 Jul 2018 20:35:09 +0000 (21:35 +0100)]
Try out cabal on travis

5 years agoUpdate hie on travis
Luke Lau [Thu, 26 Jul 2018 21:27:40 +0000 (22:27 +0100)]
Update hie on travis

5 years agoPretty print message trace
Luke Lau [Thu, 26 Jul 2018 21:13:42 +0000 (22:13 +0100)]
Pretty print message trace

Make colours a bit less eye-bleeding
Also implement logMessages config

5 years agoMake ClientCapabilities a mandatory parameter
Luke Lau [Thu, 26 Jul 2018 20:58:47 +0000 (21:58 +0100)]
Make ClientCapabilities a mandatory parameter

Closes #13

5 years agoAdd closeDoc
Luke Lau [Mon, 23 Jul 2018 21:52:55 +0000 (22:52 +0100)]
Add closeDoc

5 years agoAdd formatDoc and formatRange
Luke Lau [Tue, 17 Jul 2018 13:30:02 +0000 (14:30 +0100)]
Add formatDoc and formatRange

5 years agoAdd getHighlights
Luke Lau [Tue, 17 Jul 2018 12:35:54 +0000 (13:35 +0100)]
Add getHighlights

5 years agoAdd getHover
Luke Lau [Mon, 16 Jul 2018 23:20:21 +0000 (00:20 +0100)]
Add getHover

5 years agoAdd getDefinitions
Luke Lau [Sat, 14 Jul 2018 11:12:52 +0000 (12:12 +0100)]
Add getDefinitions

5 years agoAdd rename
Luke Lau [Thu, 12 Jul 2018 14:30:10 +0000 (15:30 +0100)]
Add rename

5 years agoAdd waitForDiagnosticsSource
Luke Lau [Thu, 12 Jul 2018 13:07:25 +0000 (14:07 +0100)]
Add waitForDiagnosticsSource

5 years agoAdd getReferences
Luke Lau [Thu, 12 Jul 2018 12:53:23 +0000 (13:53 +0100)]
Add getReferences

5 years agoRemove leftover loggin
Luke Lau [Wed, 11 Jul 2018 12:53:20 +0000 (13:53 +0100)]
Remove leftover loggin

5 years agoFix opening new documents regression
Luke Lau [Wed, 11 Jul 2018 12:50:58 +0000 (13:50 +0100)]
Fix opening new documents regression

Add modifyM to help prevent this in future

5 years agoReexport modules via cabal
Luke Lau [Wed, 11 Jul 2018 00:51:31 +0000 (01:51 +0100)]
Reexport modules via cabal

Remove redundant dependencies
Supress some hlints
Prep cabal file

5 years agoUpgrade stack to lts-12.0
Luke Lau [Wed, 11 Jul 2018 00:01:43 +0000 (01:01 +0100)]
Upgrade stack to lts-12.0

Also remove redundant extra-deps

5 years agoAdd getCompletions helper function
Luke Lau [Tue, 10 Jul 2018 23:47:49 +0000 (00:47 +0100)]
Add getCompletions helper function

Rename exceptions to be less verbose

5 years agoRemove unecessary haskell-lsp-types dependency
Luke Lau [Tue, 10 Jul 2018 16:54:48 +0000 (17:54 +0100)]
Remove unecessary haskell-lsp-types dependency

5 years agoAdd applyEdit and getVersionedDoc helpers
Luke Lau [Tue, 10 Jul 2018 13:55:31 +0000 (14:55 +0100)]
Add applyEdit and getVersionedDoc helpers

5 years agoTidy up and remove redundant classes and tests
Luke Lau [Mon, 9 Jul 2018 00:16:52 +0000 (01:16 +0100)]
Tidy up and remove redundant classes and tests

5 years agoAdd withTimeout
Luke Lau [Sun, 8 Jul 2018 22:36:20 +0000 (23:36 +0100)]
Add withTimeout

Rework timeout mechanism to send messages down the conduit
Closes #10
Improve exception message reporting with Typeable type information
Replace request, response, notification with message
Simplify internals of Session

5 years agoRemove superfluous Session handler
Luke Lau [Sat, 7 Jul 2018 21:51:47 +0000 (22:51 +0100)]
Remove superfluous Session handler

5 years agoUpdate session.log to match latest hie on import-code-actions
Luke Lau [Fri, 6 Jul 2018 22:51:37 +0000 (23:51 +0100)]
Update session.log to match latest hie on import-code-actions

5 years agoAdd more helpers for code actions and commands
Luke Lau [Mon, 2 Jul 2018 23:52:06 +0000 (00:52 +0100)]
Add more helpers for code actions and commands

Generialize session classes

5 years agoAdd nicer API
Luke Lau [Mon, 2 Jul 2018 11:40:44 +0000 (12:40 +0100)]
Add nicer API

sendRequest now gets the result too
Add better helpers for document symbols and code actions

5 years agoFix duplicate messages
Luke Lau [Fri, 29 Jun 2018 01:00:00 +0000 (02:00 +0100)]
Fix duplicate messages

5 years agoLog session messages, don't know why it was ever a good idea to hide them 💩
Luke Lau [Fri, 29 Jun 2018 00:40:57 +0000 (01:40 +0100)]
Log session messages, don't know why it was ever a good idea to hide them ðŸ’©

5 years agoCorrect VFS behaviour
Luke Lau [Thu, 28 Jun 2018 23:59:57 +0000 (00:59 +0100)]
Correct VFS behaviour
Also update tests for next commit of hie in import-code-actions branch

5 years agoAdd config option to log stderr
Luke Lau [Thu, 28 Jun 2018 10:32:46 +0000 (11:32 +0100)]
Add config option to log stderr

5 years agoFix VFS when receiving plain document changes (not versioned)
Luke Lau [Thu, 28 Jun 2018 10:24:44 +0000 (11:24 +0100)]
Fix VFS when receiving plain document changes (not versioned)

5 years agoFix tests
Luke Lau [Wed, 27 Jun 2018 23:46:48 +0000 (00:46 +0100)]
Fix tests

5 years agoAdd getDiagnostics
Luke Lau [Wed, 27 Jun 2018 23:27:30 +0000 (00:27 +0100)]
Add getDiagnostics

5 years agoUpdate hie
Luke Lau [Wed, 27 Jun 2018 01:28:56 +0000 (02:28 +0100)]
Update hie

5 years agoAdd documentEdit and friends helper functions
Luke Lau [Wed, 27 Jun 2018 01:28:34 +0000 (02:28 +0100)]
Add documentEdit and friends helper functions

5 years agoRemove dependency on process-1.6.3
Luke Lau [Fri, 22 Jun 2018 18:48:57 +0000 (19:48 +0100)]
Remove dependency on process-1.6.3

5 years agoIgnore .swp files
Luke Lau [Fri, 22 Jun 2018 18:45:01 +0000 (19:45 +0100)]
Ignore .swp files

5 years agoAdd ReplayOutOfOrder exception and change function signature
Luke Lau [Thu, 21 Jun 2018 12:53:19 +0000 (13:53 +0100)]
Add ReplayOutOfOrder exception and change function signature

5 years agoAdd unexpected message exception
Luke Lau [Thu, 21 Jun 2018 11:24:50 +0000 (12:24 +0100)]
Add unexpected message exception

5 years agoAdd SessionConfig
Luke Lau [Wed, 20 Jun 2018 22:39:10 +0000 (23:39 +0100)]
Add SessionConfig
Add timeouts
Closes #8

5 years agoClose VFS when needed
Luke Lau [Wed, 20 Jun 2018 17:00:06 +0000 (18:00 +0100)]
Close VFS when needed

5 years agoMerge branch 'master' of https://github.com/Bubba/haskell-lsp-test
Luke Lau [Wed, 20 Jun 2018 16:41:51 +0000 (17:41 +0100)]
Merge branch 'master' of https://github.com/Bubba/haskell-lsp-test

5 years agoHandle text document change events with VFS
Luke Lau [Wed, 20 Jun 2018 16:37:32 +0000 (17:37 +0100)]
Handle text document change events with VFS

5 years agoAdd option to configure capabilities
Luke Lau [Wed, 20 Jun 2018 15:27:02 +0000 (16:27 +0100)]
Add option to configure capabilities

5 years agoUpdate README.md
Luke Lau [Sat, 16 Jun 2018 14:50:38 +0000 (10:50 -0400)]
Update README.md

5 years agoAdd test for document change tracking
Luke Lau [Fri, 15 Jun 2018 05:08:49 +0000 (01:08 -0400)]
Add test for document change tracking

5 years agoUpdate command uniquing to match hie
Luke Lau [Fri, 15 Jun 2018 03:49:50 +0000 (23:49 -0400)]
Update command uniquing to match hie

5 years agoUpdate hie in travis
Luke Lau [Thu, 14 Jun 2018 23:12:51 +0000 (19:12 -0400)]
Update hie in travis

5 years agoAdd process version constraint
Luke Lau [Thu, 14 Jun 2018 14:43:30 +0000 (10:43 -0400)]
Add process version constraint

5 years agoSwap out UUIDs based on process ID
Luke Lau [Thu, 14 Jun 2018 14:36:34 +0000 (10:36 -0400)]
Swap out UUIDs based on process ID
Start processing ReqApplyWorkspaceEdit
Split out into more modules

5 years agoChange runSession return result from passed session instead of ()
Luke Lau [Wed, 13 Jun 2018 17:31:44 +0000 (13:31 -0400)]
Change runSession return result from passed session instead of ()

5 years agoAdd test for initialize response
Luke Lau [Wed, 13 Jun 2018 17:25:10 +0000 (13:25 -0400)]
Add test for initialize response

5 years agoAdd getInitializeResponse
Luke Lau [Tue, 12 Jun 2018 21:55:49 +0000 (17:55 -0400)]
Add getInitializeResponse

5 years agoAdd javascript langserver testing
Luke Lau [Mon, 11 Jun 2018 19:45:14 +0000 (15:45 -0400)]
Add javascript langserver testing

Also improve error reporting

5 years agoAdd type synonym for test version of Session
Luke Lau [Mon, 11 Jun 2018 16:12:20 +0000 (12:12 -0400)]
Add type synonym for test version of Session

5 years agoChange server filepath to a command to run
Luke Lau [Mon, 11 Jun 2018 15:06:47 +0000 (11:06 -0400)]
Change server filepath to a command to run

5 years agoMerge branch 'master' of https://github.com/Bubba/haskell-lsp-test
Luke Lau [Mon, 11 Jun 2018 14:31:29 +0000 (10:31 -0400)]
Merge branch 'master' of https://github.com/Bubba/haskell-lsp-test

5 years agoAdd argument for server executable
Luke Lau [Mon, 11 Jun 2018 14:27:27 +0000 (10:27 -0400)]
Add argument for server executable

5 years agoSilence weird ghc warning
Luke Lau [Sun, 10 Jun 2018 03:58:55 +0000 (23:58 -0400)]
Silence weird ghc warning

5 years agoCompatibility with GHC 8.2.1
Luke Lau [Sun, 10 Jun 2018 03:34:44 +0000 (23:34 -0400)]
Compatibility with GHC 8.2.1

5 years agoKill forked threads
Luke Lau [Sat, 9 Jun 2018 22:15:23 +0000 (18:15 -0400)]
Kill forked threads

5 years agoAllow message types to be infered
Luke Lau [Sat, 9 Jun 2018 22:11:37 +0000 (18:11 -0400)]
Allow message types to be infered

5 years agoFix embarassing error with publishDiagnosticsNotification
Luke Lau [Sat, 9 Jun 2018 03:13:04 +0000 (23:13 -0400)]
Fix embarassing error with publishDiagnosticsNotification
Generalize message combinators

5 years agoAdd publishDiagnosticsNotification
Luke Lau [Fri, 8 Jun 2018 23:46:25 +0000 (19:46 -0400)]
Add publishDiagnosticsNotification

5 years agoUpdate submodules when checking out hie
Luke Lau [Fri, 8 Jun 2018 20:45:28 +0000 (16:45 -0400)]
Update submodules when checking out hie

5 years agoUpdate README.md
Luke Lau [Fri, 8 Jun 2018 20:43:02 +0000 (16:43 -0400)]
Update README.md

5 years agoAdd test for failing replay
Luke Lau [Fri, 8 Jun 2018 19:51:24 +0000 (15:51 -0400)]
Add test for failing replay
Fix error message

5 years agoAdd openDoc convenience function
Luke Lau [Fri, 8 Jun 2018 19:47:10 +0000 (15:47 -0400)]
Add openDoc convenience function

5 years agoBump up the number of jobs when building hie in travis
Luke Lau [Fri, 8 Jun 2018 19:43:48 +0000 (15:43 -0400)]
Bump up the number of jobs when building hie in travis

5 years agoSwitch to conduit based parser
Luke Lau [Fri, 8 Jun 2018 19:37:11 +0000 (15:37 -0400)]
Switch to conduit based parser

5 years agoIntegrate Parsec transformer into Session monad
Luke Lau [Thu, 7 Jun 2018 17:06:08 +0000 (13:06 -0400)]
Integrate Parsec transformer into Session monad

5 years agoTry out Chan Stream instance
Luke Lau [Thu, 7 Jun 2018 02:15:02 +0000 (22:15 -0400)]
Try out Chan Stream instance

5 years agoStart work on parser
Luke Lau [Wed, 6 Jun 2018 21:06:08 +0000 (17:06 -0400)]
Start work on parser
Move message case handlers to own module

5 years agoRename recorded to replay
Luke Lau [Wed, 6 Jun 2018 15:47:13 +0000 (11:47 -0400)]
Rename recorded to replay

5 years agoIgnore logging messages and remove some verbose logging
Luke Lau [Wed, 6 Jun 2018 15:42:01 +0000 (11:42 -0400)]
Ignore logging messages and remove some verbose logging

5 years agoUpdate recorded playback to build upon new session
Luke Lau [Wed, 6 Jun 2018 04:01:55 +0000 (00:01 -0400)]
Update recorded playback to build upon new session