fix: send real flow version to LSP

This commit is contained in:
CJ van den Berg 2025-10-08 12:50:31 +02:00
parent 3bb43c79c3
commit 5d760f1d84
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -1673,6 +1673,8 @@ fn send_lsp_init_request(self: *Self, lsp: *const LSP, project_path: []const u8,
.project = self,
};
const version = if (root.version.len > 0 and root.version[0] == 'v') root.version[1..] else root.version;
try lsp.send_request(self.allocator, "initialize", .{
.processId = if (builtin.os.tag == .linux) std.os.linux.getpid() else null,
.rootPath = project_path,
@ -1687,7 +1689,7 @@ fn send_lsp_init_request(self: *Self, lsp: *const LSP, project_path: []const u8,
.locale = "en-us",
.clientInfo = .{
.name = root.application_name,
.version = "0.0.1",
.version = version,
},
.capabilities = .{
.workspace = .{