godotengine / godotengine/godot-vscode-plugin

Support for Godot Type-Safe lines

Open
#436 6 comments 13 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
2.1k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

### Godot version

3.5.stable

### VS Code version

1.73.0

### Godot Tools VS Code extension version

1.3.1

### System information

Windows 10

### Problem statement

![image](https://user-images.githubusercontent.com/60202421/200151023-1165ee16-f9f9-46d9-92cb-3b93e254657c.png)
Similar to how Godot built in script editor supports Safe-Type lines by showing darkened numbers on the side of the editor

Safe-Type from Docs:
https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/static_typing.html

### Proposed solution

At the minimum I think some kind of terminal tree output with filenames and line numbers of unsafe lines would be great and get the job done.
Maybe a function we could call using command palette like
> Godot-tool show unsafe lines

Dream Solution:
I don't know how the language Linter you used works to detech if line is unsafe but if it could detect it was unsafe and use a function like [text-marker extention](https://marketplace.visualstudio.com/items?itemName=ryu1kn.text-marker) to just highlight the line of code within vscode text editor that would work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.