Template for a good false-positive report, formatted with Markdown:
- versions used
using sonarcloud.io - minimal code sample to reproduce (with analysis parameter, and potential instructions to compile).
see https://sonarcloud.io/project/issues?id=vscode-camelk&issues=AW_20fPg15CiwQ6EBWS1&open=AW_20fPg15CiwQ6EBWS1
see https://github.com/camel-tooling/vscode-camelk/blob/41c8d52b6195979d903d07b4e35504d1e12ad4fc/src/extension.ts#L315
camelKIntegrationsTreeView = vscode.window.createTreeView('camelk.integrations', {
treeDataProvider: camelKIntegrationsProvider
});
camelKIntegrationsTreeView.onDidChangeVisibility(async () => {
if (camelKIntegrationsTreeView.visible === true) {
if (runningKubectl === undefined || runningKubectl.killed) {
eventEmitter.emit(restartKubectlWatchEvent);
}
await camelKIntegrationsProvider.refresh().catch(err => console.log(err));
} else {
runningKubectl?.kill(); <--- error here, runningKubectl is of type ChildProcess from child_process
}
});
}```