@@ -28,11 +28,12 @@ import { getSupportedToolchains } from "../utils/toolchainUtil.mjs";
2828import Logger from "../logger.mjs" ;
2929import { rustProjectGetSelectedChip } from "../utils/rustUtil.mjs" ;
3030import { OPENOCD_VERSION } from "../utils/sharedConstants.mjs" ;
31- import { setupZephyr } from "../utils/setupZephyr.mjs" ;
3231
3332export class GetPythonPathCommand extends CommandWithResult < string > {
33+ public static readonly id = "getPythonPath" ;
34+
3435 constructor ( ) {
35- super ( "getPythonPath" ) ;
36+ super ( GetPythonPathCommand . id ) ;
3637 }
3738
3839 async execute ( ) : Promise < string > {
@@ -50,8 +51,10 @@ export class GetPythonPathCommand extends CommandWithResult<string> {
5051}
5152
5253export class GetEnvPathCommand extends CommandWithResult < string > {
54+ public static readonly id = "getEnvPath" ;
55+
5356 constructor ( ) {
54- super ( "getEnvPath" ) ;
57+ super ( GetEnvPathCommand . id ) ;
5558 }
5659
5760 async execute ( ) : Promise < string > {
@@ -69,8 +72,10 @@ export class GetEnvPathCommand extends CommandWithResult<string> {
6972}
7073
7174export class GetGDBPathCommand extends CommandWithResult < string > {
75+ public static readonly id = "getGDBPath" ;
76+
7277 constructor ( private readonly _extensionUri : Uri ) {
73- super ( "getGDBPath" ) ;
78+ super ( GetGDBPathCommand . id ) ;
7479 }
7580
7681 async execute ( ) : Promise < string > {
@@ -160,8 +165,10 @@ export class GetGDBPathCommand extends CommandWithResult<string> {
160165}
161166
162167export class GetCompilerPathCommand extends CommandWithResult < string > {
168+ public static readonly id = "getCompilerPath" ;
169+
163170 constructor ( ) {
164- super ( "getCompilerPath" ) ;
171+ super ( GetCompilerPathCommand . id ) ;
165172 }
166173
167174 async execute ( ) : Promise < string > {
@@ -199,8 +206,10 @@ export class GetCompilerPathCommand extends CommandWithResult<string> {
199206}
200207
201208export class GetCxxCompilerPathCommand extends CommandWithResult < string > {
209+ public static readonly id = "getCxxCompilerPath" ;
210+
202211 constructor ( ) {
203- super ( "getCxxCompilerPath" ) ;
212+ super ( GetCxxCompilerPathCommand . id ) ;
204213 }
205214
206215 async execute ( ) : Promise < string > {
@@ -310,8 +319,10 @@ export class GetChipCommand extends CommandWithResult<string> {
310319}
311320
312321export class GetChipUppercaseCommand extends CommandWithResult < string > {
322+ public static readonly id = "getChipUppercase" ;
323+
313324 constructor ( ) {
314- super ( "getChipUppercase" ) ;
325+ super ( GetChipUppercaseCommand . id ) ;
315326 }
316327
317328 async execute ( ) : Promise < string > {
@@ -323,8 +334,10 @@ export class GetChipUppercaseCommand extends CommandWithResult<string> {
323334}
324335
325336export class GetTargetCommand extends CommandWithResult < string > {
337+ public static readonly id = "getTarget" ;
338+
326339 constructor ( ) {
327- super ( "getTarget" ) ;
340+ super ( GetTargetCommand . id ) ;
328341 }
329342
330343 async execute ( ) : Promise < string > {
0 commit comments