mirror of
https://github.com/hexedtech/codemp-vscode.git
synced 2024-11-21 23:14:49 +01:00
feat: add destructor for plugin
finally! proper disconnection
This commit is contained in:
parent
8755954b98
commit
c03ea41f16
2 changed files with 6 additions and 5 deletions
|
@ -396,8 +396,3 @@ export async function jump(selected: vscode.TreeItem | undefined){
|
|||
editor.revealRange(cursor_range, vscode.TextEditorRevealType.InCenter);
|
||||
}
|
||||
|
||||
// This method is called when your extension is deactivated
|
||||
export function deactivate() {
|
||||
//Maybe i should disconnect from every workspace and buffer ??? // TODO
|
||||
// TODO
|
||||
}
|
|
@ -45,6 +45,12 @@ export function activate(context: vscode.ExtensionContext) {
|
|||
}
|
||||
}
|
||||
|
||||
export async function deactivate() {
|
||||
if (commands.client && commands.workspace) {
|
||||
await commands.client.leave_workspace(commands.workspace.id());
|
||||
}
|
||||
}
|
||||
|
||||
async function log_poller_task(logger: codemp.JsLogger) {
|
||||
while (true) {
|
||||
let message = await logger.message();
|
||||
|
|
Loading…
Reference in a new issue