Skip to content

Commit

Permalink
Include ReScript version
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Jan 6, 2025
1 parent 190243e commit 61c08f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,11 @@ function onMessage(msg: p.Message) {
};
initialized = true;

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

// Periodically pull configuration from the client.
pullConfigurationPeriodically = setInterval(() => {
Expand Down

0 comments on commit 61c08f8

Please sign in to comment.