Skip to content

Commit

Permalink
Use same URI parsing on server and client (fixes #79)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderRonde committed Jun 9, 2024
1 parent 9521a11 commit 84203c8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions server/src/lib/phpstan/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ export class PHPStanCheck implements AsyncDisposable {
};
for (const filePath in parsed.fileSpecificErrors) {
normalized.fileSpecificErrors[
URI.from({
scheme: 'file',
path: pathMapper(filePath, true),
}).toString()
URI.file(pathMapper(filePath, true)).toString()
] = parsed.fileSpecificErrors[filePath];
}
return normalized;
Expand Down Expand Up @@ -143,10 +140,7 @@ export class PHPStanCheck implements AsyncDisposable {
};
for (const filePath in parsed.fileSpecificErrors) {
normalized.fileSpecificErrors[
URI.from({
scheme: 'file',
path: pathMapper(filePath, true),
}).toString()
URI.file(pathMapper(filePath, true)).toString()
] = parsed.fileSpecificErrors[filePath];
}
return normalized;
Expand Down

0 comments on commit 84203c8

Please sign in to comment.