File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,10 @@ coverage
9
9
# Fortran files
10
10
* .o
11
11
* .mod
12
- * .smod
12
+ * .smod
13
+
14
+ # Python files
15
+ venv /
16
+ * .egg-info /
17
+ * .eggs /
18
+ * .pyc
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
9
9
10
10
### Added
11
11
12
+ - Added support for variable resolution in ` fortls `
13
+ ([ #664 ] ( https://github.com/fortran-lang/vscode-fortran-support/issues/664 ) )
12
14
- Added Run and Debug buttons for single Fortran files based on linter settings
13
15
([ #646 ] ( https://github.com/fortran-lang/vscode-fortran-support/issues/646 ) )
14
16
- Added linter support for [ LFortran] ( https://lfortran.org/ )
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
12
12
isFortran ,
13
13
getOuterMostWorkspaceFolder ,
14
14
pipInstall ,
15
+ resolveVariables ,
15
16
} from '../lib/tools' ;
16
17
import { Logger } from '../services/logging' ;
17
18
import { RestartLS } from '../features/commands' ;
@@ -82,7 +83,8 @@ export class FortlsClient {
82
83
if ( ! isFortran ( document ) ) return ;
83
84
84
85
const args : string [ ] = await this . fortlsArguments ( ) ;
85
- const executablePath = workspace . getConfiguration ( EXTENSION_ID ) . get < string > ( 'fortls.path' ) ;
86
+ const fortlsPath = workspace . getConfiguration ( EXTENSION_ID ) . get < string > ( 'fortls.path' ) ;
87
+ const executablePath = resolveVariables ( fortlsPath ) ;
86
88
87
89
// Detect language server version and verify selected options
88
90
this . version = this . getLSVersion ( executablePath , args ) ;
@@ -304,7 +306,7 @@ export class FortlsClient {
304
306
*/
305
307
private async fortlsDownload ( ) : Promise < boolean > {
306
308
const config = workspace . getConfiguration ( EXTENSION_ID ) ;
307
- const ls = config . get < string > ( 'fortls.path' ) ;
309
+ const ls = resolveVariables ( config . get < string > ( 'fortls.path' ) ) ;
308
310
309
311
// Check for version, if this fails fortls provided is invalid
310
312
const results = spawnSync ( ls , [ '--version' ] ) ;
You can’t perform that action at this time.
0 commit comments