Skip to content

Commit

Permalink
fix doc sett
Browse files Browse the repository at this point in the history
Signed-off-by: wthrajat <rajatkhanduri290102@gmail.com>
  • Loading branch information
wthrajat committed Jul 1, 2024
1 parent a686110 commit 03fbb44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion language-server/src/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ export const initializeServer = async (client: Connection, initParams: Partial<I
};

export const openDocument = async (client: Connection, uri: string, text?: string) => {
const baseUri = `file:///${randomUUID()}/`;
// const baseUri_raw = pathToFileURL(`/${randomUUID()}/`);
const baseUri = pathToFileURL("/" + randomUUID() + "/").href;
const documentUri = resolveIri(uri, baseUri);


await client.sendNotification(DidOpenTextDocumentNotification.type, {
textDocument: {
uri: documentUri,
Expand Down

0 comments on commit 03fbb44

Please sign in to comment.