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

@ -93,6 +93,8 @@ export const inlayHints = new lc.RequestType<InlayHintsParams, InlayHint[], void
export interface SsrParams {
query: string;
parseOnly: boolean;
textDocument: lc.TextDocumentIdentifier;
position: lc.Position;
}
export const ssr = new lc.RequestType<SsrParams, lc.WorkspaceEdit, void>('experimental/ssr');