File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import FortranHoverProvider from "./features/hover-provider";
66import { FortranCompletionProvider } from "./features/completion-provider" ;
77import { FortranDocumentSymbolProvider } from "./features/document-symbol-provider" ;
88
9- const FORTRAN_FREE_FORM_ID = "fortran_free-form" ;
9+ const FORTRAN_FREE_FORM_ID = { language : "fortran_free-form" , scheme : "file" } ;
1010
1111export function activate ( context : vscode . ExtensionContext ) {
1212 let hoverProvider = new FortranHoverProvider ( ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default class FortranLintingProvider {
1515 private doModernFortranLint ( textDocument : vscode . TextDocument ) {
1616 const errorRegex : RegExp = / ^ ( [ a - z A - Z ] : \\ ) * ( [ ^ : ] * ) : ( [ 0 - 9 ] + ) : ( [ 0 - 9 ] + ) : \s + ( .* ) \s + .* ?\s + ( E r r o r | W a r n i n g | F a t a l E r r o r ) : \s ( .* ) $ / gm;
1717
18- if ( textDocument . languageId !== LANGUAGE_ID ) {
18+ if ( textDocument . languageId !== LANGUAGE_ID || textDocument . uri . scheme !== "file" ) {
1919 return ;
2020 }
2121 let decoded = "" ;
You can’t perform that action at this time.
0 commit comments