File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 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';
77
88import { Logger } from '../services/logging' ;
99import {
10- FORMATTERS ,
1110 EXTENSION_ID ,
12- promptForMissingTool ,
11+ FORMATTERS ,
1312 getWholeFileRange ,
14- spawnAsPromise ,
1513 pathRelToAbs ,
14+ promptForMissingTool ,
15+ resolveVariables ,
16+ spawnAsPromise ,
1617} from '../util/tools' ;
1718
1819export class FortranFormattingProvider implements vscode . DocumentFormattingEditProvider {
@@ -120,7 +121,8 @@ export class FortranFormattingProvider implements vscode.DocumentFormattingEditP
120121 */
121122 private getFormatterArgs ( ) : string [ ] {
122123 const args : string [ ] = this . workspace . get ( `formatting.${ this . formatter } Args` , [ ] ) ;
123- return args ;
124+ // Resolve internal variables
125+ return args . map ( arg => resolveVariables ( arg ) ) ;
124126 }
125127
126128 /**
You can’t perform that action at this time.
0 commit comments