[GH-ISSUE #11] LSP Support #5

Open
opened 2026-05-22 22:05:07 +01:00 by JakeStanger · 2 comments
Owner

Originally created by @JakeStanger on GitHub (Sep 7, 2022).
Original GitHub issue: https://github.com/corn-config/corn/issues/11

There should be an LSP uh, thing, to provide full support to VSCode, Vim and all the rest.

Originally created by @JakeStanger on GitHub (Sep 7, 2022). Original GitHub issue: https://github.com/corn-config/corn/issues/11 There should be an LSP uh, thing, to provide full support to VSCode, Vim and all the rest.
Author
Owner

@yavko commented on GitHub (Apr 15, 2024):

Schema validation could be added to this, cuz most serialization formats seem to

<!-- gh-comment-id:2055655367 --> @yavko commented on GitHub (Apr 15, 2024): Schema validation could be added to this, cuz most serialization formats seem to
Author
Owner

@JakeStanger commented on GitHub (Apr 15, 2024):

Yes I've had schema validation in mind for a long time, but it's never gotten further than a vague thought. I'm not sure what the syntax should be yet - perhaps a "special" input would work, called $$schema? This would keep it consistent with JSON, and avoid collisions with any real input names.

let {
  $$schema = "https://json-schema.org/draft/2019-09/schema"
} in {
  // blah
}
<!-- gh-comment-id:2056404029 --> @JakeStanger commented on GitHub (Apr 15, 2024): Yes I've had schema validation in mind for a long time, but it's never gotten further than a vague thought. I'm not sure what the syntax should be yet - perhaps a "special" input would work, called `$$schema`? This would keep it consistent with JSON, and avoid collisions with any real input names. ```corn let { $$schema = "https://json-schema.org/draft/2019-09/schema" } in { // blah } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
corn-config/corn#5
No description provided.