File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Changed
11
+
12
+ - Removes duplicate diagnostic messages from the linter
13
+ ([ #598 ] ( https://github.com/fortran-lang/vscode-fortran-support/issues/598 ) )
14
+
10
15
## [ 3.2.0]
11
16
12
17
### Added
Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ export class FortranLintingProvider {
101
101
compilerOutput += data ;
102
102
} ) ;
103
103
childProcess . stderr . on ( 'end' , ( ) => {
104
- const diagnostics = this . getLinterResults ( compilerOutput ) ;
104
+ let diagnostics = this . getLinterResults ( compilerOutput ) ;
105
+ diagnostics = [ ...new Map ( diagnostics . map ( v => [ JSON . stringify ( v ) , v ] ) ) . values ( ) ] ;
105
106
this . diagnosticCollection . set ( textDocument . uri , diagnostics ) ;
106
107
} ) ;
107
108
childProcess . on ( 'error' , err => {
You can’t perform that action at this time.
0 commit comments