Skip to content

Make analyzable file types customizable #1944

@simolus3

Description

@simolus3

A plugin in the analysis server could support analysis results for file types that are neither Dart or HTML. For these files, DartCode wouldn't send analysis requests to the analysis server because the file ending is not matched by isAnalyzable:

const analyzableLanguages = ["dart", "html"];
const analyzableFilenames = [".analysis_options", "analysis_options.yaml", "pubspec.yaml"];
return analyzableLanguages.indexOf(document.languageId) >= 0
|| analyzableFilenames.indexOf(path.basename(fsPath(document.uri))) >= 0;

Is there a reason not all files in the current workspace are marked analyzable? If there is, it would be amazing if we could make the analyzable file endings customizable. Then, plugins that support custom file endings could instruct users to mark the respective file ending as analyzable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions