eugene yokota
2b557851ca
Merge pull request #5041 from jsoref/https
...
Https
2020-06-14 17:34:58 -04:00
Eugene Yokota
d599ae2c16
Deprecate unused methods
2020-06-12 16:34:37 -04:00
Eugene Yokota
033ff1d8a5
Make JSON parsing errors more consistent
2020-06-11 20:31:13 -04:00
adpi2
eac9328db7
Replace -jar with -classpath in BuildServerConnectionDetails
2020-06-08 15:36:41 +02:00
Adrien Piquerez
0789fd7be6
Use java command in BspConnectionDetails
2020-05-25 13:32:48 +02:00
Adrien Piquerez
b184be860f
Add headers
2020-05-25 10:43:54 +02:00
Adrien Piquerez
c11ee3269c
Add BspCompilationTaskProgress
2020-05-22 11:15:47 +02:00
Adrien Piquerez
a31747758c
Create BSP connection file at server startup
2020-05-18 09:35:14 +02:00
Adrien Piquerez
24f6a6f290
add BSP buildTarget/dependencySources
2020-05-16 09:52:21 +02:00
Adrien Piquerez
068fe2ad0a
add BuildServerCapabilities
2020-05-16 09:52:21 +02:00
Adrien Piquerez
3ae42ae9c6
fix scala jars and add capabilities in BuildTarget
2020-05-16 09:52:21 +02:00
Adrien Piquerez
a415cd0cfc
replace LSP compiler reporter by BSP one
2020-05-16 09:52:20 +02:00
Adrien Piquerez
f89cef1fd0
add bspCompile task
2020-05-16 09:52:20 +02:00
Adrien Piquerez
994e05ef12
Remove obsolete codec formats
2020-05-16 09:52:20 +02:00
Eugene Yokota
d2d0a9ca80
buildTarget/scalacOptions
2020-05-16 09:52:20 +02:00
Eugene Yokota
1ccff0ca6d
Add Scala Build Target
2020-05-16 09:52:20 +02:00
Eugene Yokota
cb93d20492
build server protocol
...
Initial draft for bsp support.
This shows two communication pattern around BSP.
First, if the request can be handled with the build knowledge is readily available in `NetworkChannel` we can reply immediately. `BuildServerImpl#onBspBuildTargets` is an example for that.
Second, if the request requires `State`, then we can forward the parameter into a custom command, and reply back from a command. `BuildServerProtocol.bspBuildTargetSources` is an example of that since it needs to invoke tasks to generate sources.
2020-05-16 09:52:20 +02:00
Adrien Piquerez
781584d137
id is mandatory in json rpc responses
2020-05-11 16:51:34 +02:00
Eugene Yokota
2396b449fe
Contraband 0.4.6
2020-04-24 17:44:15 -04:00
Eugene Yokota
25a79d0ac6
Add State extension
...
Fixes https://github.com/sbt/sbt/issues/3112
This unpacks Extracted as State's extension methods.
In addition this provides a way of responding via LSP.
2020-02-15 19:32:19 -05:00
Ethan Atkins
aecdc44909
Update contraband sources
...
In 8bfae66b9d I upgraded contraband but
not all of the sources were regenerated because I didn't run clean
before recompiling.
2019-12-12 11:34:53 -08:00
Ethan Atkins
094d730b06
Bump scalafmt
2019-11-30 14:57:20 -08:00
Eugene Yokota
54b3405f42
apply -Yno-lub
...
To demonstrate [-Yno-lub](http://eed3si9n.com/stricter-scala-with-ynolub ), this shows the code changes that removes lubing (Not all subprojects are done).
After I made the changes, I switched the Scala back to normal 2.12.10.
2019-10-13 23:46:23 -04:00
Josh Soref
c9d5cbe808
https://www.scala-sbt.org
2019-09-05 14:11:13 -04:00
Josh Soref
5579727148
https://www.jsonrpc.org
2019-09-05 14:11:09 -04:00
Eugene Yokota
1e157b991a
apply formatting
2019-04-20 03:23:54 -04:00
andrea
34e0fc159c
[sbt-server] LSP completions support
2018-10-11 13:34:40 +01:00
andrea
d7c55a3d82
Implementing cancellation requests for LSP server
2018-10-01 14:39:26 +01:00
Eugene Yokota
4b23036c63
contraband 0.4.1
2018-09-18 16:56:19 -04:00
Eugene Yokota
4ff4f6e45e
Update header
2018-09-14 04:53:36 -04:00
Eugene Yokota
18c6b04b47
Fix thin client to use LSP
...
Fixes https://github.com/sbt/sbt/issues/2798
2018-06-25 22:26:13 -04:00
Dale Wijnand
8f4b8abb7b
Run scalafmt & test:scalafmt
2018-04-24 16:12:10 +01:00
Eugene Yokota
c2837c7714
Merge branch 'wip/bumpsbt' into wip/merge-1.1.x
2018-03-27 10:16:10 -04:00
tiqwab
a5119a411c
Fix handling id in jsonrpc model
...
Fix #3861
2018-03-17 22:41:47 +09:00
Dale Wijnand
5f56fa9f14
Extract serializeResponse
2018-03-15 12:55:21 +00:00
Dale Wijnand
de690f4e41
Collapse 1-line scaladocs
2018-03-15 12:55:20 +00:00
Dale Wijnand
bde6365013
Add an optional exitCode to ExecStatusEvent so clients can use it
2018-03-14 11:56:51 +00:00
Dale Wijnand
7baf97d2a6
Introduce ErrorCodes.UnknownError
...
Defined in the application defined errors range.
2018-03-14 11:56:51 +00:00
Dale Wijnand
3530349e9a
Rename ErrorCodes' UnknownErrorCode to UnknownServerError
...
Allows for a non-server-specific unknown error code to be defined.
2018-03-14 11:56:50 +00:00
Dale Wijnand
8972287892
Cleanup ErrorCodes
2018-03-14 11:56:29 +00:00
Dale Wijnand
dd4de14593
Upgrade to contraband 0.4.0
2018-03-12 15:39:07 +00:00
Dale Wijnand
ed5a8c118b
Upgrade to contraband 0.3.3
2018-03-08 12:49:38 +00:00
Eugene Yokota
bd0e44c292
start an instance of sbt in the background
2018-02-07 17:49:22 -05:00
Eugene Yokota
1f9a8bf310
start an instance of sbt in the background
2018-01-30 23:46:12 -05:00
Dale Wijnand
113656aed1
Remove compile warnings
2018-01-16 11:17:01 +00:00
Dale Wijnand
6e09c660fe
Replace Throwable catching with DeserializationException catching
2017-12-20 11:50:02 +00:00
Eugene Yokota
40b86ae412
bump modules and plugins
2017-12-16 12:22:42 -05:00
Eugene Yokota
6a996378c7
return Either[String, JsonRpcMessage]
2017-11-29 01:00:46 -05:00
Alexey Alekhin
c689821383
Added deserialization for NotificationMessage and used it in handleBody
2017-11-29 00:46:18 -05:00
wpopielarski
73b0034cfc
textDocument/definition for LSP / VS Code
...
This is an implementation of `textDocument/definition` request.
Supports types only, and only in case when type is found in Zinc Analysis. When source(s) are found then editor opens potential source(s).
This simple implementation does not use semantic data.
During the processing of `textDocument/didSave`, we will start collecting the location of Analysis files via `lspCollectAnalyses`.
Later on, when the user asked for `textDocument/definition`, sbt server will invoke a Future call to lspDefinition, which direct reads the files to locate the definition of a class.
2017-11-28 13:27:07 -05:00