Skip to content

Commit

Permalink
Windows sucks
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesrosiers committed Oct 19, 2024
1 parent 212245e commit 72a74e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions language-server/src/test/test-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ export class TestClient<Configuration> {
}

async writeDocument(uri: string, text: string) {
const buildCompleted = this.buildCompleted();

const fullUri = resolveIri(uri, await this.workspaceFolder);
const exists = await access(fullUri).then(() => true).catch(() => false);

await writeFile(fileURLToPath(fullUri), text, "utf-8");

const buildCompleted = this.buildCompleted();

if (this.watchEnabled) {
await this.client.sendNotification(DidChangeWatchedFilesNotification.type, {
changes: [{
Expand Down

0 comments on commit 72a74e1

Please sign in to comment.