From 30ab1a9053857bfc780d2ccd9eced51f58c07671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6nig?= Date: Wed, 21 Aug 2019 11:08:22 +0200 Subject: [PATCH] Fix for detecting rubocop output delimiter This would be a quick fix for #519. (I tested this quickly modifying the extensions js file) Given more thought it might be better to get the **first** instance of `FORMATTED_OUTPUT_DELIMITER`and not the last one to detect the end of rubocop diagnostics? --- packages/language-server-ruby/src/formatters/RuboCop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/language-server-ruby/src/formatters/RuboCop.ts b/packages/language-server-ruby/src/formatters/RuboCop.ts index b3f26b1ee..4c165605a 100644 --- a/packages/language-server-ruby/src/formatters/RuboCop.ts +++ b/packages/language-server-ruby/src/formatters/RuboCop.ts @@ -3,7 +3,7 @@ import { TextEdit } from 'vscode-languageserver'; import BaseFormatter from './BaseFormatter'; export default class RuboCop extends BaseFormatter { - protected FORMATTED_OUTPUT_DELIMITER = '===================='; + protected FORMATTED_OUTPUT_DELIMITER = '====================\n'; get cmd(): string { const command = 'rubocop';