Skip to content

Commit afe635c

Browse files
committed
refactor(lint): change binary output name
1 parent 8eb523a commit afe635c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/features/linter-provider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ export class FortranLintingProvider {
271271
this.logger.debug(`[lint] glob paths:`, this.pathCache.get(opt).globs);
272272
this.logger.debug(`[lint] resolved paths:`, this.pathCache.get(opt).paths);
273273

274-
const extensionIndex = textDocument.fileName.lastIndexOf('.');
275-
const fileNameWithoutExtension = textDocument.fileName.substring(0, extensionIndex);
274+
// const extensionIndex = textDocument.fileName.lastIndexOf('.');
275+
// const fileNameWithoutExtension = textDocument.fileName.substring(0, extensionIndex);
276276
const fortranSource: string[] = this.settings.fyppEnabled
277277
? ['-xf95', isFreeForm(textDocument) ? '-ffree-form' : '-ffixed-form', '-']
278278
: [textDocument.fileName];
@@ -281,7 +281,7 @@ export class FortranLintingProvider {
281281
...args,
282282
...this.getIncludeParams(includePaths), // include paths
283283
'-o',
284-
`${fileNameWithoutExtension}.mod`,
284+
`${textDocument.fileName}.o`,
285285
...fortranSource,
286286
];
287287

0 commit comments

Comments
 (0)