diff --git a/CHANGELOG.md b/CHANGELOG.md index f0cafee..044b7a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,16 +2,17 @@ ## v0.1.0 +🥳 + - new: major parser refactor #67 -- new: highlighting of external calls (yellow gutter icon) +- new: 🎯 highlighting of external calls (yellow gutter icon) - this is best effort highlighting and we might miss some external calls depending on whether it is possible to resolve them. - do not completly rely on this feature :) - new: cockpit view that lists external calls in the currently selected contract (click into a contract in the editor for the view to update) -- fix: typeError "cannot read property length of undefined" - fix: misplaced decoration when document changes -- new: adjusted graphviz view titles - new: decorate identifiers that are storage references (treating them like state-vars) - update: code cleanup; refactored decoration logic and moved it to submodule +- new: resolve inherited names (hover: declaration link) ## v0.0.32 - v0.0.33 diff --git a/src/extension.js b/src/extension.js index 3e4aad6..a30764d 100644 --- a/src/extension.js +++ b/src/extension.js @@ -109,14 +109,19 @@ function analyzeSourceUnit(cancellationToken, document, editor) { return; } - g_workspace.add(document.fileName, { content: document.getText() }).then( - (sourceUnit) => { - console.log(`✓ inspect ${sourceUnit.filePath}`); - } - ).catch(e => { - console.log(document.fileName); - console.log(e); - }); + try { + g_workspace.add(document.fileName, { content: document.getText() }).then( + (sourceUnit) => { + console.log(`✓ inspect ${sourceUnit.filePath}`); + } + ).catch(e => { + console.error(document.fileName); + console.error(e); + }); + } catch (e){ + console.error(e); + } + g_workspace.withParserReady().then((finished) => {