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";
6
6
import { FortranCompletionProvider } from "./features/completion-provider" ;
7
7
import { FortranDocumentSymbolProvider } from "./features/document-symbol-provider" ;
8
8
9
- const FORTRAN_FREE_FORM_ID = "fortran_free-form" ;
9
+ const FORTRAN_FREE_FORM_ID = { language : "fortran_free-form" , scheme : "file" } ;
10
10
11
11
export function activate ( context : vscode . ExtensionContext ) {
12
12
let hoverProvider = new FortranHoverProvider ( ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default class FortranLintingProvider {
15
15
private doModernFortranLint ( textDocument : vscode . TextDocument ) {
16
16
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;
17
17
18
- if ( textDocument . languageId !== LANGUAGE_ID ) {
18
+ if ( textDocument . languageId !== LANGUAGE_ID || textDocument . uri . scheme !== "file" ) {
19
19
return ;
20
20
}
21
21
let decoded = "" ;
You can’t perform that action at this time.
0 commit comments