Skip to content

Commit c5327ab

Browse files
committed
Use fsPath for the pattern inside a document filter
1 parent 54d3cbd commit c5327ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-eslint",
33
"displayName": "ESLint",
44
"description": "Integrates ESLint JavaScript into VS Code.",
5-
"version": "2.1.10",
5+
"version": "2.1.11",
66
"author": "Microsoft Corporation",
77
"license": "MIT",
88
"repository": {
@@ -472,4 +472,4 @@
472472
"@types/mocha": "^7.0.2",
473473
"mocha": "^7.1.2"
474474
}
475-
}
475+
}

server/src/eslintServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,8 @@ function resolveSettings(document: TextDocument): Promise<TextDocumentSettings>
874874
const Uri = URI.parse(uri);
875875
const isFile = Uri.scheme === 'file';
876876
let pattern: string = isFile
877-
? Uri.path.replace(/\\/g, '/')
878-
: Uri.path;
877+
? Uri.fsPath.replace(/\\/g, '/')
878+
: Uri.fsPath;
879879
pattern = pattern.replace('[', '\\[');
880880
pattern = pattern.replace(']', '\\]');
881881
pattern = pattern.replace('{', '\\{');

0 commit comments

Comments
 (0)