mborik / z80-macroasm-vscode

Support for Z80 macro-assemblers in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=mborik.z80-macroasm
MIT License
55 stars 11 forks source link

Work with other file types #15

Closed nockieboy closed 3 years ago

nockieboy commented 3 years ago

I have tried every permutation possible (or so it seems) to get this package to recognise the assembler file extensions I'm using - .Z80. For some reason, it refuses to code-highlight or otherwise work with my Z80 assembly files with the .Z80 extension. I've saved the exact same file as a .ASM file and it works fine with that. I've edited the settings and added .Z80 into the 'Files: include' array (*/.{z80,asm,inc,s}) and have edited the JSON directly, but to no avail.

Any suggestions?

mborik commented 3 years ago

You probably should just set a proper association in your global or workspace settings.json. All relevant options was described that wiki page but you should look for "files.associations" section. Let me know if it's working.

nockieboy commented 3 years ago

Ah - thanks for the link to settings.json. Was able to get the settings working after seeing that example. I wasn't setting 'files.associations', just 'files.include', which was causing my issue.

Thanks for the quick reply! :)

nockieboy commented 3 years ago

Issue resolved.