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.

Display icon based on files.associations

See original GitHub issue

I have a file without an extension and one that has a php extension but is defined as an html file, and as you can see they display like so:

screenshot from 2016-06-26 10-37-08

However, in my files.associations I have them defined like so:

screenshot from 2016-06-26 10-34-41

Is it possible to also display icons based on the files.associations, then fallback to the extension name?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
robertohuertasmcommented, Jun 26, 2016

It’s really a good idea. I don’t know if I’ll have access to that file but I’ll take a look at the documentation and see what can be accomplished. 😁

2reactions
TheColorRedcommented, Jun 26, 2016

@robertohuertasm In our extension, we get file associations like this:

var fileSettings = workspace.getConfiguration("files");
var associations: Object = fileSettings.get<Object>("associations", new Object());
for (var assoc in associations) {
    // Process item
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

FILE ASSOCIATION & ICON - Microsoft Q&A
The association works fine as long as I use View | Medium size or Small size in File Explorer; when I select Large...
Read more >
c# - How do I get the icon associated with a file type?
First get the FileAssociationInfo , and from that get the ProgramAssociationInfo . The pai object can give you the icon. FileAssociationInfo fai ...
Read more >
Clarify how to override icons for file associations #1363 - GitHub
The ideal solution I want to achieve is to have "js" files never show up with the React icon but to keep the...
Read more >
File Icon Theme | Visual Studio Code Extension API
Icons can be associated to folders, folder names, files, file extensions, file names and language IDs. Additionally each of these associations can be...
Read more >
How to Change File Associations in Windows 10 | Digital Trends
1. Right-click on a file of the type you wish to change the association for. 2. Select Open With from the resulting menu....
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