Skip to content

Commit

Permalink
update tree view icons
Browse files Browse the repository at this point in the history
  • Loading branch information
thewahome committed Jan 14, 2025
1 parent 99d9038 commit 0b84a50
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions vscode/microsoft-kiota/src/handlers/uriHandler.ts
Original file line number Diff line number Diff line change
@@ -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) { }
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 0b84a50

Please sign in to comment.