Skip to content

Commit

Permalink
Fix windows compatibility bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesrosiers committed Oct 18, 2024
1 parent c6bf69a commit 37fbd35
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions language-server/src/services/configuration.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { fileURLToPath } from "node:url";
import { DidChangeConfigurationNotification } from "vscode-languageserver";
import picomatch from "picomatch";

Expand Down Expand Up @@ -106,8 +105,7 @@ export class Configuration {
this.#matcher = picomatch(schemaFilePatterns);
}

const path = fileURLToPath(uri);
return this.#matcher(path);
return this.#matcher(uri);
}

/** @type (handler: NotificationHandler<DidChangeConfigurationParams>) => void */
Expand Down

0 comments on commit 37fbd35

Please sign in to comment.