mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-01-04 10:09:58 +03:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9ea6245d4 | ||
|
|
e38db288b7 |
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -40,7 +40,7 @@ body:
|
|||||||
Open the **Extensions** side panel and click on the **godot-tools** extension to see your current version.
|
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.
|
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.
|
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:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
|||||||
2
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
2
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
@@ -40,7 +40,7 @@ body:
|
|||||||
Open the **Extensions** side panel and click on the **godot-tools** extension to see your current version.
|
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.
|
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.
|
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:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# 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
|
### 2.5.0
|
||||||
|
|
||||||
- [**Add `print_rich()` support to debug console**](https://github.com/godotengine/godot-vscode-plugin/pull/792)
|
- [**Add `print_rich()` support to debug console**](https://github.com/godotengine/godot-vscode-plugin/pull/792)
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "godot-tools",
|
"name": "godot-tools",
|
||||||
"version": "2.5.0",
|
"version": "2.5.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "godot-tools",
|
"name": "godot-tools",
|
||||||
"version": "2.5.0",
|
"version": "2.5.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vscode/debugadapter": "^1.68.0",
|
"@vscode/debugadapter": "^1.68.0",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "godot-tools",
|
"name": "godot-tools",
|
||||||
"displayName": "godot-tools",
|
"displayName": "godot-tools",
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"version": "2.5.0",
|
"version": "2.5.1",
|
||||||
"description": "Tools for game development with Godot Engine and GDScript",
|
"description": "Tools for game development with Godot Engine and GDScript",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import * as path from "node:path";
|
|||||||
import * as vscode from "vscode";
|
import * as vscode from "vscode";
|
||||||
import {
|
import {
|
||||||
LanguageClient,
|
LanguageClient,
|
||||||
|
MessageSignature,
|
||||||
type LanguageClientOptions,
|
type LanguageClientOptions,
|
||||||
type NotificationMessage,
|
type NotificationMessage,
|
||||||
type RequestMessage,
|
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) {
|
private request_filter(message: RequestMessage) {
|
||||||
if (this.rejected) {
|
if (this.rejected) {
|
||||||
if (message.method === "shutdown") {
|
if (message.method === "shutdown") {
|
||||||
|
|||||||
Reference in New Issue
Block a user