Skip to content

Commit f18e74c

Browse files
committed
Merge branch 'code-tree' into dev
2 parents bd5a2ab + f49d7de commit f18e74c

28 files changed

+2792
-25
lines changed

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Language synax, IntelliSense, code snippits & more for writing G-Code for CNC ma
1515

1616
This extension adds language syntax for CNC G-Code, code snippets, and colorization.
1717

18+
There is also a tree-view of the G-Code, which parses the commands and gives you an overview of the program.
19+
1820
### Current Supported Extensions
1921

2022
- .m
@@ -51,20 +53,29 @@ This extension adds language syntax for CNC G-Code, code snippets, and colorizat
5153

5254
## Installation
5355

54-
Install from Extensions Marketplace
56+
Install from Extensions Marketplace or manually install the `vsix` file.
5557

5658
## Usage
5759

5860
Install & activate extension. Extension activates when you open a file marked for the `gcode` language.
5961

62+
Tree view is enabled by default and can be access from the G icon on the activity bar.
63+
64+
## Configuration
65+
66+
- Colorization ( Not Currently Active )
67+
- Machine Type ( Not Currently Active )
68+
- Tree Auto-Refresh
69+
- Tree auto-refreshes as changes are made to the gcode. Disabled by default.
70+
6071
## Known Issues
6172

6273
Please visit our [GitHub Issues](https://github.com/appliedengdesign/vscode-gcode-syntax/issues) page for any open issues.
6374

6475
## TODO
6576

6677
- Add more snippets
67-
- Add tree view feature for machining blocks
78+
- Add additional tree items.
6879
- G-Code Debugging
6980
- Backplotting?
7081

@@ -80,6 +91,12 @@ If you work like to help contribute to the code or this project, please fork awa
8091

8192
For more information on contributing, please refer to the [CONTRIBUTING](https://github.com/appliedengdesign/vscode-gcode-syntax/blob/master/CONTRIBUTING.md) doc.
8293

94+
## About Applied Eng & Design
95+
96+
We are a full service engineering and design firm, specializing in CAD/CAM, CNC milling, rapid prototyping, training and more. We also like to dabble in Arudino / RaspberryPi projects, electronics, drones and robotics projects! Subscribe to our YouTube channel for videos on our projects, screencast tutorials, and more!
97+
98+
Follow us on [Twitter](https://twitter.com/appliedengdes) & [Instagram](https://instagram.com/appliedengdes), and like our [Facebook Page](https://facebook.com/appliedengdesign)!
99+
83100
## License
84101

85102
This extension is licensed under the [MIT License](https://opensource.org/licenses/MIT).

images/screenshot.png

33.9 KB
Loading

package.json

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"bugs": {
3131
"url": "https://github.com/appliedengdesign/vscode-gcode-syntax/issues"
3232
},
33-
"main": "./out/extension",
33+
"main": "./out/extension.js",
3434
"activationEvents": [
3535
"onLanguage:gcode"
3636
],
@@ -107,27 +107,70 @@
107107
"type": "object",
108108
"title": "G-Code",
109109
"properties": {
110-
"gcode.colorization.enabled": {
110+
"gcode.colorization": {
111111
"type": "boolean",
112112
"default": false,
113113
"description": "Enable G-Code specific colorization options",
114114
"scope": "window"
115115
},
116116
"gcode.machineType": {
117117
"type": "string",
118-
"default": "mill",
118+
"default": "Mill",
119119
"enum": [
120-
"mill",
121-
"lathe"
120+
"Mill",
121+
"Lathe"
122122
],
123123
"enumDescriptions": [
124124
"Loads specific snippets for CNC Mill G-Code",
125125
"Loads specific snippets for CNC Lathe G-Code"
126126
],
127127
"scope": "window"
128+
},
129+
"gcode.treeAutoRefresh": {
130+
"type": "boolean",
131+
"default": false,
132+
"description": "Enable G-Code Tree Auto Refresh",
133+
"scope": "window"
134+
}
135+
}
136+
},
137+
"viewsContainers": {
138+
"activitybar": [
139+
{
140+
"id": "gcode",
141+
"title": "G-Code",
142+
"icon": "images/vscode-gcode-syntax-icon.svg"
143+
}
144+
]
145+
},
146+
"views": {
147+
"gcode": [
148+
{
149+
"id": "gcodeTree",
150+
"name": "G-Code Tree",
151+
"when": "gcodeTreeEnabled"
152+
}
153+
]
154+
},
155+
"menus": {
156+
"view/title": [
157+
{
158+
"command": "gcodeTree.refreshEntry",
159+
"when": "view == gcodeTree",
160+
"group": "navigation"
161+
}
162+
]
163+
},
164+
"commands": [
165+
{
166+
"command": "gcodeTree.refreshEntry",
167+
"title": "Refresh",
168+
"icon": {
169+
"light": "resources/icons/light/refresh.svg",
170+
"dark": "resources/icons/dark/refresh.svg"
128171
}
129172
}
130-
}
173+
]
131174
},
132175
"scripts": {
133176
"vscode:prepublish": "npm run compile",
Lines changed: 15 additions & 0 deletions
Loading
Lines changed: 16 additions & 0 deletions
Loading

resources/icons/dark/coolanton.svg

Lines changed: 33 additions & 0 deletions
Loading

resources/icons/dark/cutting.svg

Lines changed: 15 additions & 0 deletions
Loading

resources/icons/dark/cwcutting.svg

Lines changed: 15 additions & 0 deletions
Loading

resources/icons/dark/gcode.svg

Lines changed: 1019 additions & 0 deletions
Loading

resources/icons/dark/rapid.svg

Lines changed: 20 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)