File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ import which from 'which';
7
7
8
8
import { Logger } from '../services/logging' ;
9
9
import {
10
- FORMATTERS ,
11
10
EXTENSION_ID ,
12
- promptForMissingTool ,
11
+ FORMATTERS ,
13
12
getWholeFileRange ,
14
- spawnAsPromise ,
15
13
pathRelToAbs ,
14
+ promptForMissingTool ,
15
+ resolveVariables ,
16
+ spawnAsPromise ,
16
17
} from '../util/tools' ;
17
18
18
19
export class FortranFormattingProvider implements vscode . DocumentFormattingEditProvider {
@@ -120,7 +121,8 @@ export class FortranFormattingProvider implements vscode.DocumentFormattingEditP
120
121
*/
121
122
private getFormatterArgs ( ) : string [ ] {
122
123
const args : string [ ] = this . workspace . get ( `formatting.${ this . formatter } Args` , [ ] ) ;
123
- return args ;
124
+ // Resolve internal variables
125
+ return args . map ( arg => resolveVariables ( arg ) ) ;
124
126
}
125
127
126
128
/**
You can’t perform that action at this time.
0 commit comments