Page 2 of 2

Re: Issues with AutoHotkey v2 LSP + Sublime Text 4, etc.

Posted: 25 Jan 2023, 12:15
by crocodile
I added RecvText()

Code: Select all

sendMessage(method, params?, isNotification := false) {
	static _id := 0
	if !isNotification
		id := ++_id & 0xffffffff
	str := JSON.stringify({
		jsonrpc: '2.0',
		id: id?,
		method: method,
		params: params?
	})
	str := 'Content-Length:' (StrPut(str, 'utf-8') - 1) '`r`n`r`n' str

	client.SendText(str)
	return client.RecvText()
}

Re: Issues with AutoHotkey v2 LSP + Sublime Text 4, etc.

Posted: 27 Jan 2023, 02:02
by thqby
This is wrong.
The examples and socket libraries have been updated.

Re: Issues with AutoHotkey v2 LSP + Sublime Text 4, etc.

Posted: 27 Jan 2023, 22:20
by crocodile
@thqby
Thanks, I immediately added formatting to all my editors and it's hard for me to describe how this has helped me tremendously. autoHotkey should really have it built in officially.