urbit/pkg/base-dev/sur/language-server.hoon

115 lines
2.0 KiB
Plaintext
Raw Normal View History

|%
::
+$ versioned-doc-id
2020-01-13 08:27:42 +03:00
[uri=@t version=(unit @)]
::
2020-01-13 08:27:42 +03:00
++ request
|%
+$ all
$%
text-document--hover
text-document--completion
2020-01-13 08:27:42 +03:00
unknown
==
+$ text-document--hover
[%text-document--hover id=cord position versioned-doc-id]
+$ text-document--completion
[%text-document--completion id=cord position versioned-doc-id]
2020-01-13 08:27:42 +03:00
+$ unknown
[%unknown json]
--
++ response
|%
+$ all
$%
2020-01-13 08:27:42 +03:00
text-document--hover
text-document--completion
==
2020-01-13 08:27:42 +03:00
+$ text-document--hover
[%text-document--hover id=cord contents=(unit @t)]
+$ text-document--completion
[%text-document--completion id=cord completion=(list completion-item)]
--
::
+$ completion-item
$:
label=cord
kind=@ud
detail=cord
doc=cord
insert-text=cord
insert-text-format=@ud
==
::
+$ diagnostic
[=range severity=@ud message=@t]
::
+$ position
[row=@ud col=@ud]
::
+$ text-document-item
2020-01-13 08:27:42 +03:00
[uri=@t version=(unit @) text=@t]
::
2020-01-13 08:27:42 +03:00
++ notification
|%
::
2020-01-13 08:27:42 +03:00
+$ in
$%
text-document--did-change
text-document--did-open
text-document--did-save
text-document--did-close
exit
unknown
==
::
2020-01-13 08:27:42 +03:00
+$ out
$%
text-document--publish-diagnostics
==
::
2020-01-13 08:27:42 +03:00
+$ all
$%
out
in
==
::
+$ text-document--did-change
[%text-document--did-change versioned-doc-id changes=(list change)]
::
+$ text-document--did-open
[%text-document--did-open text-document-item]
::
+$ text-document--did-save
[%text-document--did-save versioned-doc-id]
::
+$ text-document--did-close
[%text-document--did-close versioned-doc-id]
::
+$ exit
[%exit ~]
::
+$ unknown
2020-01-13 08:27:42 +03:00
[%unknown =json]
::
2020-01-13 08:27:42 +03:00
+$ text-document--publish-diagnostics
[%text-document--publish-diagnostics uri=@t diagnostics=(list diagnostic)]
::
--
::
+$ change
$: range=(unit range)
range-length=(unit @ud)
text=@t
==
::
+$ range
$: start=position
end=position
==
::
--