diff --git a/CHANGELOG.md b/CHANGELOG.md index e16afdb..2615d2a 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,10 +8,16 @@ - Add conditional snippets (`if`, `else`, `elif`) - Add waveform to editor link (click on waveform show signal in code) +## Fixed + + - Tentative fix of semi-random failure to automatically load config, refresh or index. + ## Changed - Properly extract test messages and report test failure errors + + # 0.2.0 - 2024-12-16 ## Added diff --git a/src/extension.ts b/src/extension.ts index 4ab390a..55714a4 100755 --- a/src/extension.ts +++ b/src/extension.ts @@ -161,7 +161,6 @@ export function activate(context: ExtensionContext) { // Display a message box to the user window.showInformationMessage('Hello from diplomat-host!'); })); - 559653 // Use the console to output diagnostic information (console.log) and errors (console.error) // This line of code will only be executed once when your extension is activated @@ -248,8 +247,11 @@ export function activate(context: ExtensionContext) { console.log('Starting Diplomat LSP'); //outputchan = window.createOutputChannel("[diplomat] Client"); diplomat.activateLspClient(context) - .then(() => { return diplomat.pushParameters(context) }) - .then(() => { return dataprovider.refresh()}); + .then(() => { + setTimeout(() => { + diplomat.pushParameters(context).then(() => dataprovider.refresh()) + },500) + }); // Elements may use this variable to toggle visibility on extension availability. void commands.executeCommand('setContext', 'diplomat-host:enabled', true);