Fix minor bugs with queries panel + language selector (#3070)

This commit is contained in:
Shati Patel
2023-11-14 13:29:41 +00:00
committed by GitHub
parent 144033967d
commit a271f7b36e
2 changed files with 3 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ export class DatabaseManager extends DisposableObject {
this.languageContext.onLanguageContextChanged(async () => {
if (
this.currentDatabaseItem !== undefined &&
!this.languageContext.isSelectedLanguage(
!this.languageContext.shouldInclude(
tryGetQueryLanguage(this.currentDatabaseItem.language),
)
) {

View File

@@ -1,4 +1,4 @@
import { mkdir, writeFile } from "fs-extra";
import { ensureDir, writeFile } from "fs-extra";
import { dump } from "js-yaml";
import { dirname, join } from "path";
import { Uri } from "vscode";
@@ -76,7 +76,7 @@ export class QlPackGenerator {
}
private async createWorkspaceFolder() {
await mkdir(this.folderUri.fsPath);
await ensureDir(this.folderUri.fsPath);
}
private async createQlPackYaml() {