From 0b84a50ffb5e51fb8ba8a6ad7f94715b0b1c0fb5 Mon Sep 17 00:00:00 2001 From: thewahome Date: Tue, 14 Jan 2025 18:23:43 +0300 Subject: [PATCH 1/2] update tree view icons --- vscode/microsoft-kiota/src/handlers/uriHandler.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vscode/microsoft-kiota/src/handlers/uriHandler.ts b/vscode/microsoft-kiota/src/handlers/uriHandler.ts index 4df552659f..1b24fe87c3 100644 --- a/vscode/microsoft-kiota/src/handlers/uriHandler.ts +++ b/vscode/microsoft-kiota/src/handlers/uriHandler.ts @@ -1,10 +1,12 @@ -import * as vscode from 'vscode'; import TelemetryReporter from '@vscode/extension-telemetry'; +import * as vscode from 'vscode'; +import { treeViewId } from '../constants'; import { OpenApiTreeProvider } from "../providers/openApiTreeProvider"; +import { updateTreeViewIcons } from '../util'; import { validateDeepLinkQueryParams } from '../utilities/deep-linking'; import { openTreeViewWithProgress } from '../utilities/progress'; -import { setDeepLinkParams, getDeepLinkParams } from './deepLinkParamsHandler'; +import { getDeepLinkParams, setDeepLinkParams } from './deepLinkParamsHandler'; export class UriHandler { constructor(private context: vscode.ExtensionContext, private openApiTreeProvider: OpenApiTreeProvider) { } @@ -26,7 +28,10 @@ export class UriHandler { let deepLinkParams = getDeepLinkParams(); if (deepLinkParams.descriptionurl) { - await openTreeViewWithProgress(() => this.openApiTreeProvider.setDescriptionUrl(deepLinkParams.descriptionurl!)); + await openTreeViewWithProgress(async () => { + await this.openApiTreeProvider.setDescriptionUrl(deepLinkParams.descriptionurl!); + await updateTreeViewIcons(treeViewId, true, false); + }); return; } } From 6437ddb6eb3a8b0ec8259f084f1263fa95f96b87 Mon Sep 17 00:00:00 2001 From: thewahome Date: Tue, 14 Jan 2025 19:05:06 +0300 Subject: [PATCH 2/2] add changelog entry --- vscode/microsoft-kiota/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vscode/microsoft-kiota/CHANGELOG.md b/vscode/microsoft-kiota/CHANGELOG.md index e1a6bf8573..86bd23079f 100644 --- a/vscode/microsoft-kiota/CHANGELOG.md +++ b/vscode/microsoft-kiota/CHANGELOG.md @@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file. ### Changed +- Fixed a bug in the VS Code extension deeplink with the API Center extension [#6004](https://github.com/microsoft/kiota/issues/6004) + ## [1.22.100000001] - 2025-01-10 ### Added