-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresis enhancement
Milestone
Description
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:
Dart-Code/src/extension/utils.ts
Lines 130 to 134 in 2ca8e87
| 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
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresis enhancement