question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make analyzable file types customizable

See original GitHub issue

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: https://github.com/Dart-Code/Dart-Code/blob/2ca8e876bd6080f856cbe6dc412a5ba37ac1bfbc/src/extension/utils.ts#L130-L134

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Aug 26, 2019

I’ve added this new setting, which is an array of file extensions:

"dart.additionalAnalyzerFileExtensions": [
	"moor",
]

The current languages use the language ID, but I wasn’t sure if VS Code would assign them to unknown files, so this one uses the extensions (as returned by Node’s path.extname with the dot stripped off the front).

1reaction
DanTupcommented, Aug 26, 2019

Thanks for the info! For now, I think a user-supplied list probably makes the most sense - it’s the least risky if something is wrong because the user can easily turn it on/off without needing new releases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom file types (TMS) - Phrase
Custom file types based on XML, TXT, HTML or JSON that are defined by filename and extension can be automatically detected and imported....
Read more >
Data Acquisition for Beginners — The Kit 1.0 documentation
This introduction includes descriptions of common file types, methods for gathering data, and a how-to guide on converting your data into a format...
Read more >
Narrowing the focus with analysis scope
A directory in the list means that all analyzable files and directories recursively below it are included. An individual file in the list...
Read more >
Creating a Custom Known File Type for R-Studio
1. Open the files in the hexadecimal editor built into R-Studio. To do so, right-click the files and choose View/Edit in the shortcut...
Read more >
SUGI 28: Developing SAS(r) Ready Analyzable Data Systems
management, and analysis at the CDC. This Java. Web application can make it easier for investigators to collect data in analyzable SAS format....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found