Skip to content

Commit fa25f6d

Browse files
committed
Fix problem with path seperator on Windows
1 parent d7bf510 commit fa25f6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/eslintServer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,9 @@ function resolveSettings(document: TextDocument): Promise<TextDocumentSettings>
605605
}, filePath, settings);
606606
if (eslintConfig !== undefined) {
607607
if (eslintConfig.parser !== null && parserRegExps !== undefined) {
608+
const parser = process.platform === 'win32' ? eslintConfig.parser.replace(/\\/g, '/') : eslintConfig.parser;
608609
for (const regExp of parserRegExps) {
609-
if (regExp.test(eslintConfig.parser)) {
610+
if (regExp.test(parser)) {
610611
settings.validate = Validate.on;
611612
break;
612613
}

0 commit comments

Comments
 (0)