File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 88import { StatusBarAlignment } from 'vscode' ;
99import { GCodeUnits } from '../constants' ;
1010import { LineNumbererOptions , LineNumberFrequency } from '../lineNumberer' ;
11+ import { MachineType , MachineTypes } from '@appliedengdesign/gcode-reference' ;
1112
1213export enum TraceLevel {
1314 Silent = 'silent' ,
@@ -19,7 +20,7 @@ export enum TraceLevel {
1920
2021export interface GCodeConfiguration {
2122 general : {
22- machineType : 'Mill' | 'Lathe' | '3D Printer' ;
23+ machineType : MachineType ;
2324
2425 hovers : {
2526 enabled : boolean ;
@@ -58,7 +59,7 @@ export interface GCodeConfiguration {
5859
5960export const defaults : GCodeConfiguration = {
6061 general : {
61- machineType : ' Mill' ,
62+ machineType : MachineTypes . Mill ,
6263 hovers : {
6364 enabled : true ,
6465 } ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { defaults } from './configuration/defaults';
1515
1616export class MachineTypeController implements Disposable {
1717 private readonly _dispoables : Disposable [ ] = [ ] ;
18- private _machineType : MachineType | undefined ;
18+ private _machineType : MachineType = defaults . general . machineType ;
1919 private _statusbar : StatusBarControl ;
2020 private readonly mtypeStatusBar : StatusBar = 'machineTypeBar' ;
2121 private _gReference : GReference ;
You can’t perform that action at this time.
0 commit comments