This commit is contained in:
Noah Santschi-Cooney 2021-01-29 23:26:24 +00:00
parent 12e5412008
commit 85730a2c52
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ export function restartExtension(e: Extension): Command {
export function virtualMergedDocument(e: Extension): Command {
const getVirtualDocument = async (path: string): Promise<string | null> => {
let content: string = ""
let content: string = ''
try {
content = await e.lspClient.sendRequest<string>(lsp.ExecuteCommandRequest.type.method, {
command: 'virtualMerge',

View file

@ -36,7 +36,7 @@ export class Extension {
this.context.subscriptions.push(vscode.commands.registerCommand('mcshader.'+name, cmd))
}
public deactivate = async () => {
deactivate = async () => {
await this.lspClient.stop()
while(this.context.subscriptions.length > 0) {
this.context.subscriptions.pop()?.dispose()