mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Simplified version of Markdown trailing spaces filter: disable all lines, no Psi processing
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ public abstract class PsiBasedStripTrailingSpacesFilter implements StripTrailing
|
||||
protected abstract void process(@NotNull PsiFile psiFile);
|
||||
|
||||
@Nullable
|
||||
private static Language getDocumentLanguage(@NotNull Document document) {
|
||||
public static Language getDocumentLanguage(@NotNull Document document) {
|
||||
FileDocumentManager manager = FileDocumentManager.getInstance();
|
||||
VirtualFile file = manager.getFile(document);
|
||||
if (file != null && file.isValid()) {
|
||||
|
||||
Reference in New Issue
Block a user