Skip to content

Commit 9801a72

Browse files
block populate qsql for no qe
1 parent 41d588e commit 9801a72

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/commands/dataSourceCommand.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ export async function populateScratchpad(
8282
dataSourceForm: DataSourceFiles,
8383
connLabel: string,
8484
): Promise<void> {
85+
if (dataSourceForm.dataSource.selectedType === DataSourceTypes.QSQL) {
86+
window.showErrorMessage(
87+
"The query enviroment(s) are disabled for this connection",
88+
);
89+
kdbOutputLog(
90+
`[DATASOURCE] The query enviroment(s) are disabled for this connection`,
91+
"ERROR",
92+
true,
93+
);
94+
return;
95+
}
8596
const scratchpadVariable: InputBoxOptions = {
8697
prompt: scratchpadVariableInput.prompt,
8798
placeHolder: scratchpadVariableInput.placeholder,

0 commit comments

Comments
 (0)