Skip to content

Commit 4b2795b

Browse files
committed
Add docs about initialization options
1 parent e580a55 commit 4b2795b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ There is an extensive suite of behavioral [tests](server/src/test/kotlin/org/jav
8888

8989
The Kotlin language server supports some non-standard requests through LSP. See [KotlinProtocolExtensions](server/src/main/kotlin/org/javacs/kt/KotlinProtocolExtensions.kt) for a description of the interface. The general syntax for these methods is `kotlin/someCustomMethod`.
9090

91+
## Initialization Options
92+
93+
The Kotlin language server supports some custom initialization options via the `initializationOptions` property in the `initialize` request parameters. See `InitializationOptions` in [Configuration](server/src/main/kotlin/org/javacs/kt/Configuration.kt) for a list of supported properties.
94+
9195
## Features
9296

9397
### Autocomplete

server/src/main/kotlin/org/javacs/kt/Configuration.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ fun getStoragePath(params: InitializeParams): Path? {
5858
return null
5959
}
6060

61-
data class InitializationOptions(val storagePath: Path?)
61+
data class InitializationOptions(
62+
// A path to a directory used by the language server to store data. Used for caching purposes.
63+
val storagePath: Path?
64+
)
6265

6366
class GsonPathConverter : JsonDeserializer<Path?> {
6467

0 commit comments

Comments
 (0)