release: v2.26.0 - Final Production Readiness
This commit is contained in:
@@ -157,23 +157,6 @@ export class SidebarChatProvider implements vscode.WebviewViewProvider, BridgeIn
|
||||
case 'proactiveTrigger':
|
||||
await this._handleProactiveSuggestion(data.context);
|
||||
break;
|
||||
case 'filesDropped':
|
||||
// ⭐ Roadmap Step 3: 핵심 데이터 변환 및 에디터 주입
|
||||
if (data.paths && data.paths.length > 0) {
|
||||
const editor = vscode.window.activeTextEditor;
|
||||
if (editor) {
|
||||
// 1. URI 변환 (크로스 플랫폼 호환성 보장)
|
||||
const uris = data.paths.map((p: string) => vscode.Uri.file(p));
|
||||
const formattedText = uris.map(u => u.fsPath).join('\n');
|
||||
|
||||
// 2. 에디터 API를 통한 주입
|
||||
await editor.edit(editBuilder => {
|
||||
editBuilder.insert(editor.selection.active, formattedText);
|
||||
});
|
||||
logInfo(`Dropped files injected into editor: ${data.paths.length} files`);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'exportResponse':
|
||||
const workspacePath = vscode.workspace.workspaceFolders?.[0].uri.fsPath || '';
|
||||
const defaultPath = path.join(workspacePath, 'g1_response.md');
|
||||
@@ -1808,12 +1791,6 @@ export class SidebarChatProvider implements vscode.WebviewViewProvider, BridgeIn
|
||||
if (files && files.length > 0) {
|
||||
fileInput.files = files; // Input의 files 속성 업데이트
|
||||
console.log(\`✅ [DnD] Input 상태 동기화 성공: \${files[0].name} 외 \${files.length - 1}개\`);
|
||||
|
||||
// ⭐ Roadmap Step 2: 브릿지 전송 (경로 데이터를 확장 프로그램으로 전달)
|
||||
const paths = Array.from(files).map(f => (f as any).path).filter(p => !!p);
|
||||
if (paths.length > 0) {
|
||||
vscode.postMessage({ type: 'filesDropped', paths: paths });
|
||||
}
|
||||
}
|
||||
|
||||
processFiles(files);
|
||||
|
||||
Reference in New Issue
Block a user