Skip to content

Commit

Permalink
Got diagnostics working with Sublime Text LSP by upgrading `2.8/json.…
Browse files Browse the repository at this point in the history
…adept` to not include `.0` when unnecessary on number values
  • Loading branch information
IsaacShelton committed Feb 13, 2024
1 parent 7ac3f62 commit d241bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update.adept
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import basics
import "datatypes.adept"

func update(uri String) {

log("Running update...\n")

document *Document = adeptls\documents.getPointer(uri)
Expand Down Expand Up @@ -41,7 +42,6 @@ func update(uri String) {
document.diagnostics.clear()

each JSON in validation.value {
log("Creating diagnostic %S\n", toString(it))
*document.diagnostics.add() = Diagnostic(it, document)
}

Expand Down

0 comments on commit d241bbe

Please sign in to comment.