"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
const ProjectInfoItem_1 = require("./ProjectInfoItem");
const IInfoItemData_1 = require("./IInfoItemData");
const StorageUtilities_1 = require("../storage/StorageUtilities");
class UnknownFileGenerator {
    constructor() {
        this.id = "UNKFILE";
        this.title = "Unknown files";
    }
    getTopicData(topicId) {
        return {
            title: topicId.toString(),
        };
    }
    summarize(info, infoSet) { }
    async generate(project, file, contentIndex) {
        const items = [];
        if (!StorageUtilities_1.default.isUsableFile(file.storageRelativePath)) {
            const ext = StorageUtilities_1.default.getTypeFromName(file.name);
            items.push(new ProjectInfoItem_1.default(IInfoItemData_1.InfoItemType.testCompleteFail, this.id, 2, `Unknown type ${ext} file ${file.storageRelativePath} found`, project.getItemByExtendedOrProjectPath(file.extendedPath), file.extendedPath));
        }
        return items;
    }
}
exports.default = UnknownFileGenerator;

//# sourceMappingURL=../maps/info/UnknownFileGenerator.js.map
