Quickfix for health-check-type: none
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user