File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -495,6 +495,7 @@ export class FortranLintingProvider {
495
495
if ( ! modout ) return [ ] ;
496
496
497
497
modout = resolveVariables ( modout ) ;
498
+ if ( process . platform === 'win32' ) modout = modout . replace ( / \/ / g, '\\' ) ;
498
499
this . logger . debug ( `[lint] moduleOutput: ${ modFlag } ${ modout } ` ) ;
499
500
return [ modFlag , modout ] ;
500
501
}
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ export class GlobPaths {
34
34
private globResolution ( globPaths : string [ ] ) : string [ ] {
35
35
if ( globPaths . length === 0 ) return [ ] ;
36
36
// Resolve internal variables and expand glob patterns
37
- const globPathsVars = globPaths . map ( e => resolveVariables ( e ) ) ;
37
+ globPaths = globPaths . map ( e => resolveVariables ( e ) ) ;
38
38
// fast-glob cannot work with Windows paths
39
- globPaths = globPaths . map ( e => e . replace ( ' /\\/g' , '/' ) ) ;
39
+ globPaths = globPaths . map ( e => e . replace ( / \\ / g, '/' ) ) ;
40
40
// This needs to be after the resolvevariables since {} are used in globs
41
41
// try {
42
42
// const globIncPaths: string[] = fg.sync(globPathsVars, {
@@ -49,7 +49,7 @@ export class GlobPaths {
49
49
// } catch (eacces) {
50
50
try {
51
51
const globIncPaths : string [ ] = [ ] ;
52
- for ( const i of globPathsVars ) {
52
+ for ( const i of globPaths ) {
53
53
// use '/' to match only directories and not files
54
54
globIncPaths . push ( ...glob . sync ( i + '/' ) ) ;
55
55
}
You can’t perform that action at this time.
0 commit comments