diff --git a/CHANGELOG.md b/CHANGELOG.md index 6545bf6..f3f1e39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.4.2 (July 6, 2022) +- Fix a bug if an undefined symbol crashes the validator + ## 0.4.1 (July 5, 2022) - Fix a bug when using custom keywords for semantic highlighting diff --git a/package.json b/package.json index 2041496..ae5d746 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "macro-executor", "displayName": "Macro Executor Language", "description": "Fanuc Macro-Executor Programming Language", - "version": "0.4.1", + "version": "0.4.2", "author": "iSorp", "publisher": "iSorp", "license": "MIT", @@ -103,6 +103,11 @@ "command": "macro.action.addsequeces", "title": "%macro.action.addsequeces%", "category": "Macro" + }, + { + "command": "macro.validate.workspace", + "title": "%macro.validate.workspace%", + "category": "Macro" } ], "menus": { diff --git a/server/src/macroLanguageService/parser/macroNodes.ts b/server/src/macroLanguageService/parser/macroNodes.ts index 9147b4a..114a78d 100644 --- a/server/src/macroLanguageService/parser/macroNodes.ts +++ b/server/src/macroLanguageService/parser/macroNodes.ts @@ -573,7 +573,8 @@ export class DefReference extends Reference { } public getNonSymbolText(): string { - return this.definition?.value?.getText(); + return this.definition?.value?.getText() ?? '' + ; } }