Skip to content

Upgrade JS dependencies#374

Open
ekacnet wants to merge 1 commit intodcermak:mainfrom
ekacnet:upgrade_js
Open

Upgrade JS dependencies#374
ekacnet wants to merge 1 commit intodcermak:mainfrom
ekacnet:upgrade_js

Conversation

@ekacnet
Copy link

@ekacnet ekacnet commented Jan 14, 2024

Fix a bunch of depedencies pointed out by dependabot

@ekacnet
Copy link
Author

ekacnet commented Feb 16, 2024

@dcermak can this one be merged ?

Comment on lines +146 to +170
const restartLanguageServer = function (): Promise<void> {
return new Promise((resolve) => {
if (disposableClient) {
client.stop().then(() => {
disposableClient.dispose();
startLSPServer();
resolve();
});
} else {
startLSPServer();
resolve();
}
});
}

context.subscriptions.push(client.start());
var disposableRestart = commands.registerCommand('salt-lsp.restart', () => {
restartLanguageServer().then(() => {
window.showInformationMessage('Salt-lsp server restarted.');
});
});
context.subscriptions.push(disposableRestart);
await startLSPServer()
}

export function deactivate(): Thenable<void> {
return client ? client.stop() : Promise.resolve();
}
export function deactivate(): Thenable<void> { return client ? client.stop() : Promise.resolve(); }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please undo all the formatting changes in this file except for the actual change (which appears to me as this marked part)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants