We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fa075e commit 91377deCopy full SHA for 91377de
lib/organize.js
@@ -1,3 +1,4 @@
1
+const { sep, posix } = require('path');
2
const { applyTextChanges } = require('./apply-text-changes');
3
const { getLanguageServiceHost, getVueLanguageServiceHost } = require('./service-host');
4
@@ -15,6 +16,10 @@ module.exports.organize = (
15
16
return code; // we do the preprocessing from the `vue` parent parser instead, so we skip the child parsers
17
}
18
19
+ if (sep !== posix.sep) {
20
+ filepath = filepath.split(sep).join(posix.sep);
21
+ }
22
+
23
/**
24
* @type {ts.LanguageService}
25
*/
0 commit comments