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

Discuss features, issues, about Editors for AHK
crocodile
Posts: 116
Joined: 28 Dec 2020, 13:41

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

25 Jan 2023, 12:15

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()
}
User avatar
thqby
Posts: 565
Joined: 16 Apr 2021, 11:18
Contact:

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

27 Jan 2023, 02:02

This is wrong.
The examples and socket libraries have been updated.
crocodile
Posts: 116
Joined: 28 Dec 2020, 13:41

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

27 Jan 2023, 22:20

@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.

Return to “Editors”

Who is online

Users browsing this forum: No registered users and 3 guests