hy/lsp gtd in command block - #84
Merged
Merged
Conversation
hon-gyu
commented
Jul 30, 2026
Owner
- lsp: go-to-definition on command-block lines
- lsp/config: a way to turn the server off
- bump oymarkit
A line in an oysterlsp block now answers the editor's navigation key with the note its command would open, resolved exactly as its lens resolves it. A calendar command whose note is missing has no definition: a jump may not create a file, so creation stays on the lens and the code action.
`"disable": true`, in oysterlsp.json or initializationOptions, makes the server adopt no vault: nothing is indexed and every request is answered the way it is before a root is known. It is for the directory of Markdown that is a vault only by accident, and living in the file means the directory carries that verdict rather than each contributor's editor settings. The switch is one decision rather than a flag threaded through the features — leaving the vault unbuilt is the whole of it. Two handlers did not honour that: the daily-note code actions need only a clock, and execute_command resolved a path without a root, so both now refuse the rootless case, which also fixes them before initialize. A disabled server says so once, at Info rather than Warning: it answers nothing, and silence is indistinguishable from a broken server. The warnings its other settings would have produced are suppressed instead. Capabilities are still advertised — requests are answered emptily, not refused — which the spec records as a possible refinement. close #83
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.