Compare commits

..

2 Commits
2.5.0 ... 2.5.1

Author SHA1 Message Date
Hugo Locurcio
d9ea6245d4 Bump to version 2.5.1 2025-03-15 20:58:11 +01:00
David Kincaid
e38db288b7 Add ability to suppress LSP error messages (#823) 2025-03-15 15:01:35 -04:00
6 changed files with 26 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ body:
Open the **Extensions** side panel and click on the **godot-tools** extension to see your current version.
Specify the Git commit hash if using a development or non-official build.
If you use a custom build, please test if your issue is reproducible in official builds too.
placeholder: "2.5.0"
placeholder: "2.5.1"
validations:
required: true

View File

@@ -40,7 +40,7 @@ body:
Open the **Extensions** side panel and click on the **godot-tools** extension to see your current version.
Specify the Git commit hash if using a development or non-official build.
If you use a custom build, please test if your issue is reproducible in official builds too.
placeholder: "2.5.0"
placeholder: "2.5.1"
validations:
required: true

View File

@@ -1,5 +1,9 @@
# Changelog
### 2.5.1
- [Fix "Request textDocument/documentSymbol failed" error when opening a GDScript file](https://github.com/godotengine/godot-vscode-plugin/pull/823)
### 2.5.0
- [**Add `print_rich()` support to debug console**](https://github.com/godotengine/godot-vscode-plugin/pull/792)

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "godot-tools",
"version": "2.5.0",
"version": "2.5.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "godot-tools",
"version": "2.5.0",
"version": "2.5.1",
"license": "MIT",
"dependencies": {
"@vscode/debugadapter": "^1.68.0",

View File

@@ -2,7 +2,7 @@
"name": "godot-tools",
"displayName": "godot-tools",
"icon": "icon.png",
"version": "2.5.0",
"version": "2.5.1",
"description": "Tools for game development with Godot Engine and GDScript",
"repository": {
"type": "git",

View File

@@ -3,6 +3,7 @@ import * as path from "node:path";
import * as vscode from "vscode";
import {
LanguageClient,
MessageSignature,
type LanguageClientOptions,
type NotificationMessage,
type RequestMessage,
@@ -139,6 +140,22 @@ export default class GDScriptLanguageClient extends LanguageClient {
}
}
handleFailedRequest<T>(
type: MessageSignature,
token: vscode.CancellationToken | undefined,
error: any,
defaultValue: T,
showNotification?: boolean,
): T {
if (type.method === "textDocument/documentSymbol") {
if (error.message.includes("selectionRange must be contained in fullRange")) {
log.warn(`Request failed for method "${type.method}", suppressing notification - see issue #820`);
return super.handleFailedRequest(type, token, error, defaultValue, false);
}
}
return super.handleFailedRequest(type, token, error, defaultValue, showNotification);
}
private request_filter(message: RequestMessage) {
if (this.rejected) {
if (message.method === "shutdown") {