diff --git a/package-lock.json b/package-lock.json index 0de5a92b..58e0532c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6182,9 +6182,9 @@ "dev": true }, "vscode-kubernetes-tools-api": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vscode-kubernetes-tools-api/-/vscode-kubernetes-tools-api-1.1.0.tgz", - "integrity": "sha512-b51Rc7HLK4yrOADgW8Ok4YWM+utUGuXUA1Zf/a2ub2cUDH4/W+ndrViAKo1+YUOVbYoq+TbNMWevCUQVvhqvxQ==" + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/vscode-kubernetes-tools-api/-/vscode-kubernetes-tools-api-1.3.0.tgz", + "integrity": "sha512-5+4OdwrRinoTsE8i6s8pPY+BbGh5U7DNAA/3pn5wlOhvQpivaBMdi89bRKfdAffPjt/bvHodje4BFm5GSNjFxQ==" }, "vscode-test": { "version": "1.4.1", diff --git a/package.json b/package.json index 818bc670..9d75727e 100644 --- a/package.json +++ b/package.json @@ -1021,6 +1021,6 @@ "targz": "^1.0.1", "unzip-stream": "^0.3.0", "validator": "^11.0.0", - "vscode-kubernetes-tools-api": "1.1.0" + "vscode-kubernetes-tools-api": "1.3.0" } } diff --git a/src/extension.ts b/src/extension.ts index 2bffdc4c..06582828 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -147,6 +147,14 @@ export async function activate(context: vscode.ExtensionContext): Promise ).at(undefined); k8sExplorer.registerNodeContributor(nodeContributor); } + + const configurationApi = await k8s.extension.configuration.v1_1; + if (configurationApi.available) { + const confApi = configurationApi.api; + confApi.onDidChangeContext(() => { + pipelineExplorer.refresh(); + }); + } vscode.workspace.onDidSaveTextDocument(async (document: vscode.TextDocument) => { await updateTektonResource(document); });