mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-15 23:05:41 +00:00
Switch to LSP inlay hints
This commit is contained in:
parent
bc56920757
commit
d3d6267112
11 changed files with 76 additions and 223 deletions
|
@ -2,7 +2,6 @@
|
|||
* This file mirrors `crates/rust-analyzer/src/lsp_ext.rs` declarations.
|
||||
*/
|
||||
|
||||
import { InlayHint } from "vscode";
|
||||
import * as lc from "vscode-languageclient";
|
||||
|
||||
export interface AnalyzerStatusParams {
|
||||
|
@ -102,12 +101,6 @@ export interface TestInfo {
|
|||
|
||||
export const relatedTests = new lc.RequestType<lc.TextDocumentPositionParams, TestInfo[], void>("rust-analyzer/relatedTests");
|
||||
|
||||
export interface InlayHintsParams {
|
||||
textDocument: lc.TextDocumentIdentifier;
|
||||
range: lc.Range;
|
||||
}
|
||||
export const inlayHints = new lc.RequestType<InlayHintsParams, InlayHint[], void>("experimental/inlayHints");
|
||||
|
||||
export interface SsrParams {
|
||||
query: string;
|
||||
parseOnly: boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue