| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
When using vis_open_doc_pos, don't reopen the file if the path of the
opened file and the doc_pos match.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Currently if a method call result causing the editor to jump to a new
location is received from the language server we change the current
window ('vis.win').
However this behavior is strange if the user has already switch window
the message window was opened.
Remember the window where the jump was requested and execute it in
the original window.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
We can not only use the fact that we have a method call inflight with
the observed id. Because the language server may has called a method
on use with the same id.
Therefore we have to also check if the incoming message contains
a method field.
method + id -> method call
id -> method response
method -> notification
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
Send language server settings after initialization via a
workspace/didChangeConfiguration notification.
Implement a workspace/configuration handler using the values stored
in the language server settings.
Send the init_options as initializationOptions in the initialize
parameters.
|
| | |
|
| |
|
|
| |
Fixes !41.
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
vis uses vis:pipe to call vis-menu when completing filenames.
Simply copy what vis does. However, using vis:pipe does not work with
fzf. I do not understand why but the vis-menu special case seams to work.
|
| |/
|
|
|
| |
Fix the off-by-one manual range conversion by using the already available
helper function.
|
| |
|
|
|
|
|
| |
Apparently the version from the AUR behaves differently from
the version installed via luarocks.
Now the 100 chars column limit is actually applied.
|
| |
|
|
|
| |
This helps to move code out of the to big init.lua as well as
allows to use the vis-lspc version in different lua files.
|
| |
|
|
| |
Fixes: 9c0a9b4fdcb2f0912b8ec3b9f7127d660565f898
|
| |
|
|
|
|
|
|
|
|
|
|
| |
LSP defines the parameters of the initialized notifications as empty
object.
The dart language server expects that the initialize notification has an
empty params object.
Therefore, pass an empty parameter table to the initialized notification.
Tested with our fallback json implementation as well as dkjson.
Fixes !37.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The ServerCapability textDocumentSync is optional and may be of kind
TextDocumentSyncOptions | TextDocumentSyncKind;
If a server uses TextDocumentSyncKind which is a integer enum
our .save check fails.
Test if it is save to use textDocumentSync as table before checking the
save capability.
Fixes !35.
|
| | |
|
| | |
|
| |
|
|
|
| |
Correct the name of two parameters and ensure that the required
parameter 'rootUri' is always set to null.
|
| | |
|
| |
|
|
|
|
|
| |
Introduce a new configuration message_level to control the messages
displayed.
The option message_level ranges from 1 - 4 (Error - Log) and corresponds
to LSP's MessageType namespace.
|
| | |
|
| |
|
|
|
|
|
| |
Be nicer to the language servers by providing our capabilities so
maybe we get more deterministic results.
We do not support dynamicRegistration, markdown or workDoneProgress.
|
| |
|
|
|
|
| |
python-language-server sends a list of MarkedStrings containing
the signature as python code-block and the doc string as string.
https://github.com/palantir/python-language-server/issues/836
|
| | |
|
| | |
|
| |
|
|
|
| |
We try 'json', 'cjson' and 'dkjson' in that order before using our
bundled fallback implementation.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
I use to have logging enabled to be able to debug weird vis-lspc
behavior right away. But I got annoyed by vis-lspc cluttering all my
directories with vis-lspc.log files.
So vis-lspc will no write its log files to
$XDG_DATA_HOME/vis-lspc/<iso-date>-<cwd-basename>.log if
lspc.log_file is not set by the user.
This patch also introduces a helper to run a program and capture
its output.
|
| | |
|
| |
|
|
| |
Don't use a global variable.
|
| | |
|
| | |
|
| |
|
|
| |
We crashed because a forgotten concatenation operator
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Move LSP message parser code into parser.lua.
Fix parsing when message headers are split between to data junks.
Simplify parser code using one string buffer and consuming already
parsed message parts.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Currently only changes in the current window are applied.
TODO:
* apply changes in opened files by iteration all vis windows
* apply changes in all files using sed or something
|
| | |
|
| |
|
|
| |
This is more consistent with the other lspc functions.
|
| | |
|
| |
|
|
|
| |
Don't always reset the state even if we updated it explicitly with
the leftover from a complete message.
|