Skip to content

Commit

Permalink
Merge pull request #1222 from lervag/serveridletimeout
Browse files Browse the repository at this point in the history
First attempt at documenting serverIdleTimeout
  • Loading branch information
eed3si9n authored Sep 15, 2024
2 parents f59a9f9 + 5342556 commit f35366d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/reference/02-DetailTopics/01-Using-sbt/07-sbt-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ in addition to accepting input from the terminal, server also to accepts input f
This allows multiple clients to connect to a _single session_ of sbt.
The primary use case we have in mind for the client is tooling integration such as editors and IDEs. See [IDE Integration][IDE] page.

### Configuration

There are several settings that can be used to configure the server.
The following lists some of these and their default values.
One may change the settings either per project or by setting values in `~/.sbt/1.0/global.sbt`.

```scala
// If set to a defined value, sbt server will exit if it goes at least the
// specified duration without receiving any commands.
Global / serverIdleTimeout := Some(new FiniteDuration(5, TimeUnit.MINUTES))
```

### Language Server Protocol 3.0

The wire protocol we use is [Language Server Protocol 3.0][lsp] (LSP), which in turn is based on [JSON-RPC][jsonrpc].
Expand Down Expand Up @@ -332,3 +344,4 @@ This will respond back with the result of the action.
[lsp_initialize]: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#initialize
[lsp_initialized]: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#initialized
[lsp_publishdiagnosticsparams]: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#publishdiagnostics-notification

0 comments on commit f35366d

Please sign in to comment.