Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 61c08f8

Browse files
committedJan 6, 2025·
Include ReScript version
1 parent 190243e commit 61c08f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎server/src/server.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,11 @@ function onMessage(msg: p.Message) {
12351235
};
12361236
initialized = true;
12371237

1238-
sendLogNotification(p.MessageType.Info, `LSP Server started!`)
1238+
let rescriptVersion = undefined;
1239+
if (initParams.workspaceFolders && initParams.workspaceFolders.length > 0) {
1240+
rescriptVersion = utils.findReScriptVersion(initParams.workspaceFolders[0].uri);
1241+
}
1242+
sendLogNotification(p.MessageType.Info, `LSP Server started! Rescript Version ${rescriptVersion}`);
12391243

12401244
// Periodically pull configuration from the client.
12411245
pullConfigurationPeriodically = setInterval(() => {

0 commit comments

Comments
 (0)
Please sign in to comment.