Skip to content

Commit 1600dd2

Browse files
committed
fix inlayhints
1 parent 14e7657 commit 1600dd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web_playground/src/language_server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const startLanguageServer = async () => {
142142
params = json.decode(params)
143143
print("calling on server", k, params)
144144
local ok, res = xpcall(function()
145-
return v(params)
145+
return json.encode(v(params))
146146
end, debug.traceback)
147147
if not ok then
148148
error(res, 2)
@@ -208,6 +208,7 @@ export const startLanguageServer = async () => {
208208
const callFunction = (method: string, params: any) => {
209209
console.log("lsp.methods['", method, "'](", params, ")")
210210
let [response] = lsp.methods[method](JSON.stringify(params))
211+
response = JSON.parse(response)
211212
console.log("\tgot", response)
212213
return response
213214
}

0 commit comments

Comments
 (0)