We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11d3535 commit 5e2b64dCopy full SHA for 5e2b64d
1 file changed
src/extension.ts
@@ -941,12 +941,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
941
.actionQuery("SELECT Job, ConfigName FROM Ens.Job_Enumerate() WHERE State = 'Alive'", [])
942
.then((data) => Object.fromEntries(data.result.content.map((x) => [x.Job, x.ConfigName])))
943
.catch((error) => {
944
- if (
945
- error &&
946
- error.errorText &&
947
- !error.errorText.includes("'ENS.JOB_ENUMERATE'(...)") &&
948
- error.errorText != ""
949
- ) {
+ if (error?.errorText && error.errorText != "" && !error.errorText.includes("ENS.JOB_ENUMERATE")) {
950
// Hide errors about Ens.Job_Enumerate procedure not existing because
951
// the current namespace may not be Interoperability-enabled
952
outputChannel.appendLine("\n" + error.errorText);
0 commit comments