appliedengdesign / vscode-gcode-syntax

G Code Language Extension for Visual Studio Code. Turn VSCode into a fully capable G-Code editor, including language support & more.
MIT License
86 stars 25 forks source link

Support for .g files. #24

Closed Festivejelly closed 3 years ago

Festivejelly commented 3 years ago

Support for .g files

Additional context The plug doesnt seem to support .g files. Firmware such as reprapfirmware use .g files for the configs of the duet boards. Would be handy to have it recognise this as gcode.

shapesorter commented 3 years ago

@mikecentola Is there a place to add these in settings? or is it hardcoded in. I have alternate files that I would like to recognize as well. (.nc)

mikecentola commented 3 years ago

@Festivejelly It's added to the 0.6 that I'll be releasing tonight or tomorrow.

@shapesorter It's hardcoded into the package.json file:

"extensions": [
                    ".001",
                    ".apt",
                    ".aptcl",
                    ".cls",
                    ".cnc",
                    ".din",
                    ".dnc",
                    ".ecs",
                    ".eia",
                    ".fan",
                    ".fgc",
                    ".fnc",
                    ".g",
                    ".g00",
                    ".gc",
                    ".gcd",
                    ".gcode",
                    ".gp",
                    ".hnc",
                    ".knc",
                    ".lib",
                    ".m",
                    ".min",
                    ".mpf",
                    ".mpr",
                    ".msb",
                    ".nc",
                    ".ncc",
                    ".ncd",
                    ".ncf",
                    ".ncg",
                    ".nci",
                    ".ncp",
                    ".ngc",
                    ".out",
                    ".pim",
                    ".pit",
                    ".plt",
                    ".ply",
                    ".prg",
                    ".pu1",
                    ".rol",
                    ".sbp",
                    ".spf",
                    ".ssb",
                    ".sub",
                    ".tap",
                    ".xpi"
                ],
mikecentola commented 3 years ago

Added in v0.6.0

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was close. Please open a new issue for related topics.