hansec / vscode-fortran-ls

Fortran IntelliSense for Visual Studio Code
MIT License
37 stars 7 forks source link

Add support of the new "FortranFixedForm" #41

Open daloic opened 2 years ago

daloic commented 2 years ago

https://github.com/hansec/vscode-fortran-ls/blob/620a54c955c6c4b1c272f634faba906d56e30ce9/src/extension.ts#L168

If just before, you add the line:

                    { scheme: 'file', language: 'FortranFixedForm', pattern: `${folder.uri.fsPath}/**/*` },

And in the package.json, you activate on FortranFixedForm:

"activationEvents": [
        "onLanguage:fortran",
        "onLanguage:fortran-modern",
        "onLanguage:fortran_fixed-form",
        "onLanguage:FortranFreeForm",
        "onLanguage:FortranFixedForm"
    ],

the extension is working again for fixed form Fortran together with the modern Fortran extension. I am not sure why this stopped working (was FortranFixedForm introduced recently?). But at least, with this fix, I am happy again.

daloic commented 2 years ago

Forgot to mention that I tested against: