Quickfix for health-check-type: none

This commit is contained in:
Kris De Volder
2017-04-24 15:09:13 -07:00
parent a9891c6952
commit 7ce8ea1a0e
16 changed files with 259 additions and 86 deletions

View File

@@ -11,6 +11,7 @@
package org.springframework.ide.vscode.commons.util.text;
import org.eclipse.lsp4j.Range;
import org.springframework.ide.vscode.commons.util.BadLocationException;
public interface IDocument {
@@ -30,5 +31,6 @@ public interface IDocument {
String textBetween(int start, int end) throws BadLocationException;
LanguageId getLanguageId();
int getVersion();
Range toRange(IRegion asRegion) throws BadLocationException;
}

View File

@@ -11,7 +11,6 @@
package org.springframework.ide.vscode.commons.util.text;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -278,6 +277,7 @@ public class TextDocument implements IDocument {
return languageId;
}
@Override
public Range toRange(IRegion region) throws BadLocationException {
return toRange(region.getOffset(), region.getLength());
}