about summary refs log tree commit diff
path: root/docs/dev/lsp-extensions.md
AgeCommit message (Collapse)AuthorLines
2022-07-08Update remaining GitHub URLsJonas Schievink-4/+4
2022-05-22internal: Allow OnTypeFormatting to send SnippetTextEditFelicián Németh-3/+3
But continue to send TextEdit only.
2022-05-17Update lsp-extensions hashLukas Wirth-1/+1
2022-04-19Allows triggering commands after an assist editJonas Schievink-1/+1
2022-04-08Switch to LSP inlay hintsLaurențiu Nicola-31/+1
2022-03-31Add "view file text" command to debug sync issuesJonas Schievink-1/+12
2022-03-12minor: add missing definitions of lsp_ext::InlayHintLabelLukas Wirth-1/+1
2022-03-07Update LSP docsLaurențiu Nicola-6/+9
2022-02-12fix: documentation of SsrParamsFelicián Németh-0/+2
Fix #11429 by extending the documentation of SsrParms with the mandatory field 'selections'. Copy its description from lsp_ext.rs.
2022-02-07add missing snake case attribute, update hashMoritz Vetter-1/+1
2021-12-07Update lsp-extensions.mdJonas Schievink-1/+9
2021-11-12Fix type names in typescript sample codeWilfred Hughes-2/+2
2021-10-04Regen docsLukas Wirth-1/+1
2021-07-30internal: cleanup lsp-extensions docsAleksey Kladov-16/+18
2021-07-30feat: gate custom clint-side commands behind capabilitiesAleksey Kladov-1/+21
Some features of rust-analyzer requires support for custom commands on the client side. Specifically, hover & code lens need this. Stock LSP doesn't have a way for the server to know which client-side commands are available. For that reason, we historically were just sending the commands, not worrying whether the client supports then or not. That's not really great though, so in this PR we add infrastructure for the client to explicitly opt-into custom commands, via `extensions` field of the ClientCapabilities. To preserve backwards compatability, if the client doesn't set the field, we assume that it does support all custom commands. In the future, we'll start treating that case as if the client doesn't support commands. So, if you maintain a rust-analyzer client and implement `rust-analyzer/runSingle` and such, please also advertise this via a capability.
2021-07-30minor: drop impl-specific stuff from lsp docsAleksey Kladov-9/+9
The lc. prefix is a copy-paste from our typescript code, it doesn't make sense in the impl-agnostic docs.
2021-07-27refactor: Apply PR suggestionsAlexander Gonzalez-0/+2
2021-07-27test: Update lsp_ext.rs hashAlexander Gonzalez-1/+1
2021-07-27docs: Update the lsp-extensions.md with the Hover Range capabilityAlexander Gonzalez-4/+29
2021-07-27Merge #9709bors[bot]-0/+2
9709: fix: add capability for "open cargo.toml" lsp extension r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-07-27fix: add capability for "open cargo.toml" lsp extensionAleksey Kladov-0/+2
2021-07-26docs: Fix several typos and grammar mistakesAlexander Gonzalez-1/+1
2021-07-04internal: better factoring for to_proto::completionAleksey Kladov-1/+1
One source completion can produce up to two lsp completions. Additionally, `preselct` and `sort_text` are global properties of the whole set of completions, so the right granularity here is to convert many completions. As a side-benefit, we no loger allocate intermediate vec.
2021-07-02Add "View Crate Graph (Full)"Jonas Schievink-2/+10
2021-05-27internal: explain the motivation behind early configurationAleksey Kladov-6/+12
2021-05-22Update lsp-extensions.mdJonas Schievink-2/+18
2021-05-19feat: allow clients to feature detect symbol filteringAleksey Kladov-12/+16
2021-05-18Add new LSP extension for workspace symbol lookupalcroito-1/+31
The new extension allows filtering of workspace symbool lookup results by search scope or search kind. Filtering can be configured in 3 different ways: - The '#' or '*' markers can be added inline with the symbol lookup query. The '#' marker means symbols should be looked up in the current workspace and any dependencies. If not specified, only current workspace is considered. The '*' marker means all kinds of symbols should be looked up (types, functions, etc). If not specified, only type symbols are returned. - Each LSP request can take an optional search_scope or search_kind argument query parameter. - Finally there are 2 global config options that can be set for all requests served by the active RA instance. Add support for setting the global config options to the VSCode extension. The extension does not use the per-request way, but it's useful for other IDEs. The latest version of VSCode filters out the inline markers, so currently the only reasonable way to use the new functionality is via the global config.
2021-05-11Document viewCrateGraph requestJonas Schievink-1/+11
2021-04-19Remove confusion around serverStatusNotificationAleksey Kladov-3/+8
2021-04-19Fix spec bugAleksey Kladov-1/+1
2021-04-18Update lsp-extensions docsLukas Wirth-1/+2
2021-04-14Move cursor position when using item moversJonas Schievink-3/+3
2021-04-06Small grammar fixesKirill Bulatov-7/+7
2021-04-06More robust status notificationsAleksey Kladov-8/+22
2021-04-04docs: Fix moveItem method namesim-2/+1
2021-03-18Item up and down moversivan770-1/+27
2021-03-13Merge #7799bors[bot]-1/+17
7799: Related tests r=matklad a=vsrs ![tests](https://user-images.githubusercontent.com/62505555/109397453-a9013680-7947-11eb-8b11-ac03079f7645.gif) This adds an ability to look for tests for the item under the cursor: function, constant, data type, etc The LSP part is bound to change. But the feature itself already works and I'm looking for a feedback :) Co-authored-by: vsrs <vit@conrlab.com>
2021-03-11Fix LSP extensions documentationvsrs-7/+2
2021-03-09Clarify that all caps are experimentalAleksey Kladov-10/+10
2021-02-27Update lsp-extensions.mdvsrs-1/+22
2021-02-16document offsetsAleksey Kladov-1/+7
2021-02-13Remove CodeLensResolveData mention from lsp-extensions.mdivan770-11/+0
2021-02-13Moved CodeLens to ide crateivan770-1/+12
2021-02-12fix nightly warning `legacy_derive_helpers`Peter Wischer-1/+1
see https://github.com/rust-lang/rust/issues/79202
2021-02-03Fix spelling mistakes in docs/devLukas Wirth-1/+1
2021-01-29Update lsp-extension.md hashEdwin Cheng-1/+1
2021-01-29Update docEdwin Cheng-1/+1
2021-01-01Address review suggestion, fix tidy testsPhil Ellison-1/+12
2020-11-16Latest LSP 3.16 protocolkjeremy-2/+2
Pulls in https://github.com/gluon-lang/lsp-types/pull/186