Skip to content

Commit

Permalink
Tentative fix of startup 'hiccups'
Browse files Browse the repository at this point in the history
  • Loading branch information
suzizecat committed Dec 18, 2024
1 parent c488b78 commit 9238834
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9238834

Please sign in to comment.