starkware-libs / cairo

Cairo is the first Turing-complete language for creating provable programs for general computation.
Apache License 2.0
1.52k stars 473 forks source link

feat: Inlay Hints for cairo-ls #6112

Open Arcticae opened 1 month ago

Arcticae commented 1 month ago

Feature Request

Describe the Feature Request

Inlay hints are special markers that appear in the editor and provide you with additional information about your code, like the names of the parameters that a called method expects. Other types of hints inform you about annotations, method parameters, usages, and so on (depending on the language).

image

Inlay hints appear in the editor and provide you with additional information about your code to make it easier to read and navigate.

Describe Preferred Solution

Those should be implemented as a cairo-ls functionality for vscode-extension so that the hints appear in vscode

Additional Context

https://www.jetbrains.com/help/idea/inlay-hints.html

mkaput commented 1 month ago

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_inlayHint