SSR: Pass current file position through to SSR code.

In a subsequent commit, it will be used for resolving paths.
This commit is contained in:
David Lattimore
2020-07-22 15:00:28 +10:00
parent 02fc3d50ee
commit 3975952601
11 changed files with 88 additions and 32 deletions

View File

@@ -216,6 +216,11 @@ impl Request for Ssr {
pub struct SsrParams {
pub query: String,
pub parse_only: bool,
/// File position where SSR was invoked. Paths in `query` will be resolved relative to this
/// position.
#[serde(flatten)]
pub position: lsp_types::TextDocumentPositionParams,
}
pub enum StatusNotification {}