You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
connect your IDE to running refact-lsp to feed in some files.
Response from http://localhost:8001/v1/at-command-preview now contains a new field: highlight
That has a structure:
{
kind: string // could be "cmd" or "arg"
ok: boolean // true if cmd or arg is parsed correctly and can be executed
pos1: int // position in query, start
pos2: int // position in query, end
reason: String // empty if ok, otherwise gives you a reason why it isn't valid
}
For example for query:
...
my_text to execute @workspace and @definition BigFish
...
if command (cmd + args) is not valid, not necessarily that both cmd + args will have ok: false. In some cases when cmd itself isn't valid, args are assumed to be valid.
What I think should be done:
objects given to you in highlight should be highlighted in a textbox. cmd and args should have different colors. Invalid cmds and args have to be underlined with some red color. On mouse hover, there should be a popup with reason, if cmd or args are ok, no popup on hover should be present.
The highlight should be ONLY in a textbox, not it messages in a chat (FYI, valid commands are clipped from text; invalid commands are not)
The text was updated successfully, but these errors were encountered:
Please, checkout the branch from this PR smallcloudai/refact-lsp#170. And run refact-lsp
connect your IDE to running refact-lsp to feed in some files.
Response from
http://localhost:8001/v1/at-command-preview
now contains a new field:highlight
That has a structure:
For example for query:
it shall give you a preview response like:
Please, note:
What I think should be done:
The highlight should be ONLY in a textbox, not it messages in a chat (FYI, valid commands are clipped from text; invalid commands are not)
The text was updated successfully, but these errors were encountered: