Skip to content

Commit eaddf84

Browse files
committed
Bump version to 1.1.1 and add boolean evaluation utility functions
Update status bar text and remove redundant value checks in workspace definitions; add test DSC operations Refactor operator functions for improved validation and readability
1 parent 6a4aabf commit eaddf84

File tree

6 files changed

+667
-255
lines changed

6 files changed

+667
-255
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "edk2code",
33
"displayName": "Edk2code",
44
"description": "EDK2 code support",
5-
"version": "1.1.1-preview",
5+
"version": "1.1.1",
66
"icon": "assets/icon.png",
77
"publisher": "intel-corporation",
88
"homepage": "https://github.com/intel/Edk2Code/wiki",

src/index/definitions.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,15 @@ export class WorkspaceDefinitions {
5757
return undefined;
5858
}
5959

60+
isBoolean(value:string){
61+
value = value.toLowerCase();
62+
return value === "true" || value === "false";
63+
}
64+
6065
setDefinition(key:string, value:string, location:vscode.Location|undefined){
66+
67+
68+
6169
gDebugLog.trace(`setDefinition: ${key} = ${value}`);
6270
this.defines.set(key, {name: key, value:value, location:location});
6371
}
@@ -91,8 +99,6 @@ export class WorkspaceDefinitions {
9199
replacement = "TRUE";
92100
}else if(value.value.toLowerCase() === "false"){
93101
replacement = "FALSE";
94-
}else if(isNaN(parseInt(value.value))){
95-
replacement = `"${value.value}"`;
96102
}else{
97103
replacement = value.value;
98104
}

0 commit comments

Comments
 (0)