diff options
Diffstat (limited to 'static/quick-fixes-handler.ts')
-rw-r--r-- | static/quick-fixes-handler.ts | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/static/quick-fixes-handler.ts b/static/quick-fixes-handler.ts index 0b515994f..a1a740c99 100644 --- a/static/quick-fixes-handler.ts +++ b/static/quick-fixes-handler.ts @@ -65,29 +65,28 @@ function provide( if (item) { return { - actions: item.fixes.filter( - f => - f.diagnostics?.some(d => - context.markers.some(m => { - const diagnostic = _.pick( - d, - 'message', - 'startLineNumber', - 'startColumn', - 'endLineNumber', - 'endColumn', - ); - const marker = _.pick( - m, - 'message', - 'startLineNumber', - 'startColumn', - 'endLineNumber', - 'endColumn', - ); - return _.isEqual(marker, diagnostic); - }), - ), + actions: item.fixes.filter(f => + f.diagnostics?.some(d => + context.markers.some(m => { + const diagnostic = _.pick( + d, + 'message', + 'startLineNumber', + 'startColumn', + 'endLineNumber', + 'endColumn', + ); + const marker = _.pick( + m, + 'message', + 'startLineNumber', + 'startColumn', + 'endLineNumber', + 'endColumn', + ); + return _.isEqual(marker, diagnostic); + }), + ), ), dispose: function () {}, }; |