Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ export class ChatSessionsService extends Disposable implements IChatSessionsServ
return description || localize('chat.sessions.description.working', "Working...");
}

private extractFileNameFromLink(filePath: string): string {
public extractFileNameFromLink(filePath: string): string {
return filePath.replace(/\[(?<linkText>[^\]]*)\]\(file:\/\/\/(?<path>[^)]+)\)/g, (match: string, _p1: string, _p2: string, _offset: number, _string: string, groups?: { linkText?: string; path?: string }) => {
const fileName = groups?.path?.split('/').pop() || groups?.path || '';
return (groups?.linkText?.trim() || fileName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../../base/tes
import { ChatSessionsService } from '../../browser/chatSessions.contribution.js';
import { workbenchInstantiationService } from '../../../../test/browser/workbenchTestServices.js';

suite.skip('ChatSessionsService', () => {
suite('ChatSessionsService', () => {
const store = ensureNoDisposablesAreLeakedInTestSuite();

let chatSessionsService: ChatSessionsService;
Expand Down
Loading