package org.logtalk.intellij;


import org.jetbrains.annotations.NotNull;

import com.intellij.openapi.fileTypes.FileTypeConsumer;
import com.intellij.openapi.fileTypes.FileTypeFactory;

public class LogtalkFileTypeFactory extends FileTypeFactory {

    @Override
    public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) {
        fileTypeConsumer.consume(LogtalkFileType.INSTANCE, "lgt");
        fileTypeConsumer.consume(LogtalkFileType.INSTANCE, "pl");
        //fileTypeConsumer.consume(PrologFileType.INSTANCE, "pl");
    }

}

package org.logtalk.intellij;


import org.jetbrains.annotations.NotNull;

import com.intellij.openapi.fileTypes.FileTypeConsumer;
import com.intellij.openapi.fileTypes.FileTypeFactory;

public class LogtalkFileTypeFactory extends FileTypeFactory {

    @Override
    public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) {
        fileTypeConsumer.consume(LogtalkFileType.INSTANCE, "logtalk");
        fileTypeConsumer.consume(LogtalkFileType.INSTANCE, "lgt");
        fileTypeConsumer.consume(LogtalkFileType.INSTANCE, "prolog");
        fileTypeConsumer.consume(LogtalkFileType.INSTANCE, "pl");
        //fileTypeConsumer.consume(PrologFileType.INSTANCE, "pl");
    }

}

Update IntelliJ IDEA support to also recognize `*.logtalk` and `*.prolog` file extensions
Update IntelliJ IDEA support to also recognize `*.logtalk` and `*.prolog` file extensions
