mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-01-04 10:09:58 +03:00
Fix hover popup functionality for VSCode 1.42+
This commit is contained in:
@@ -128,6 +128,12 @@ class MessageHandler extends EventEmitter {
|
||||
}
|
||||
|
||||
on_message(message: any) {
|
||||
|
||||
// FIXME: Hot fix VSCode 1.42 hover position
|
||||
if (message && message.contents && message.result && message.result.range) {
|
||||
message.result.range = undefined;
|
||||
}
|
||||
|
||||
if (message && message.method && (message.method as string).startsWith(CUSTOM_MESSAGE)) {
|
||||
const method = (message.method as string).substring(CUSTOM_MESSAGE.length, message.method.length);
|
||||
if (this[method]) {
|
||||
|
||||
Reference in New Issue
Block a user