|
5 | 5 |
|
6 | 6 | import { Codicon } from 'vs/base/common/codicons';
|
7 | 7 | import { DisposableStore, IDisposable } from 'vs/base/common/lifecycle';
|
8 |
| -import * as resources from 'vs/base/common/resources'; |
9 | 8 | import { localize, localize2 } from 'vs/nls';
|
10 | 9 | import { registerAction2 } from 'vs/platform/actions/common/actions';
|
11 | 10 | import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
|
12 | 11 | import { SyncDescriptor } from 'vs/platform/instantiation/common/descriptors';
|
13 | 12 | import { Registry } from 'vs/platform/registry/common/platform';
|
14 | 13 | import { ViewPaneContainer } from 'vs/workbench/browser/parts/views/viewPaneContainer';
|
15 |
| -import { Extensions as WorkbenchExtensions, IWorkbenchContribution, IWorkbenchContributionsRegistry } from 'vs/workbench/common/contributions'; |
| 14 | +import { IWorkbenchContribution, IWorkbenchContributionsRegistry, Extensions as WorkbenchExtensions } from 'vs/workbench/common/contributions'; |
16 | 15 | import { IViewContainersRegistry, IViewDescriptor, IViewsRegistry, ViewContainer, ViewContainerLocation, Extensions as ViewExtensions } from 'vs/workbench/common/views';
|
17 | 16 | import { getHistoryAction, getOpenChatEditorAction } from 'vs/workbench/contrib/chat/browser/actions/chatActions';
|
18 | 17 | import { getClearAction } from 'vs/workbench/contrib/chat/browser/actions/chatClearActions';
|
@@ -79,13 +78,7 @@ export class ChatExtensionPointHandler implements IWorkbenchContribution {
|
79 | 78 | const extensionDisposable = new DisposableStore();
|
80 | 79 | for (const providerDescriptor of extension.value) {
|
81 | 80 | this.registerChatProvider(providerDescriptor);
|
82 |
| - const extensionIcon = extension.description.icon ? |
83 |
| - resources.joinPath(extension.description.extensionLocation, extension.description.icon) : |
84 |
| - undefined; |
85 |
| - this._chatContributionService.registerChatProvider({ |
86 |
| - ...providerDescriptor, |
87 |
| - extensionIcon |
88 |
| - }); |
| 81 | + this._chatContributionService.registerChatProvider(providerDescriptor); |
89 | 82 | }
|
90 | 83 | this._registrationDisposables.set(extension.description.identifier.value, extensionDisposable);
|
91 | 84 | }
|
|
0 commit comments