Skip to content

Commit 8caae6d

Browse files
Copilotalexr00
andauthored
Add markdown hover support to notification tree items (#7322)
* Initial plan * Initial analysis and build setup Co-authored-by: alexr00 <[email protected]> * Add resolveTreeItem method to NotificationsManager for markdown hover support * Naming --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: alexr00 <[email protected]>
1 parent 3a4d901 commit 8caae6d

File tree

4 files changed

+388
-334
lines changed

4 files changed

+388
-334
lines changed

src/@types/vscode.proposed.chatParticipantAdditions.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,13 @@ declare module 'vscode' {
258258
readonly tools: Map<string, boolean>;
259259
}
260260

261+
export namespace lm {
262+
/**
263+
* Fired when the set of tools on a chat request changes.
264+
*/
265+
export const onDidChangeChatRequestTools: Event<ChatRequest>;
266+
}
267+
261268
// TODO@API fit this into the stream
262269
export interface ChatUsedContext {
263270
documents: ChatDocumentContext[];

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ async function init(
227227
context.subscriptions.push(issuesFeatures);
228228
await issuesFeatures.initialize();
229229

230-
const notificationsFeatures = new NotificationsFeatureRegister(credentialStore, reposManager, telemetry);
230+
const notificationsFeatures = new NotificationsFeatureRegister(credentialStore, reposManager, telemetry, context);
231231
context.subscriptions.push(notificationsFeatures);
232232

233233
context.subscriptions.push(new GitLensIntegration());

src/notifications/notificationsFeatureRegistar.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ export class NotificationsFeatureRegister extends Disposable {
2222
constructor(
2323
readonly credentialStore: CredentialStore,
2424
private readonly _repositoriesManager: RepositoriesManager,
25-
private readonly _telemetry: ITelemetry
25+
private readonly _telemetry: ITelemetry,
26+
private readonly _context: vscode.ExtensionContext
2627
) {
2728
super();
2829
const notificationsProvider = new NotificationsProvider(credentialStore, this._repositoriesManager);
2930
this._register(notificationsProvider);
3031

31-
const notificationsManager = new NotificationsManager(notificationsProvider, credentialStore);
32+
const notificationsManager = new NotificationsManager(notificationsProvider, credentialStore, this._repositoriesManager, this._context);
3233
this._register(notificationsManager);
3334

3435
// Decorations

0 commit comments

Comments
 (0)