fix(extension): support vscode native notification UI and Always Allow buttons for DOM observer (#514)
This commit is contained in:
18
docs/devlog/entries/20260324-002.md
Normal file
18
docs/devlog/entries/20260324-002.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# DOM Observer VS Code 네이티브 알림 UI 캡처 블라인드 스팟 해결 (v0.5.9)
|
||||
|
||||
- **시간**: 2026-03-24 12:00~13:00
|
||||
- **Commit**: `TBD`
|
||||
- **Vikunja**: TBD
|
||||
|
||||
## 결정 사항
|
||||
- **문제**: "Always Allow" 및 "Allow Alt+↵" (단축키 포함) 권한 알람이 Discord로 전송되지 않는 문제가 발생했습니다. (v0.5.8)
|
||||
- **근본 원인 확인**:
|
||||
- Regex 실패: `Always Allow`는 `^Allow` 정규식을 통과하지 못합니다.
|
||||
- CSS Selector 실패: `observer-script.ts`의 스캔 엔진이 오직 `document.querySelectorAll('button')`에만 의존하여 렌더링 노드를 찾고 있었습니다. VS Code 네이티브 권한 프롬프트(토스트 알림 및 채팅 패널)는 `<a role="button" class="monaco-text-button">` 또는 `<vscode-button>`을 활용하므로 애초에 찾지도 못하고 스킵되었습니다.
|
||||
- **해결책**:
|
||||
1. `observer-script.ts` 내의 모든 DOM 쿼리를 `button, [role="button"], vscode-button, .monaco-text-button` 으로 확장.
|
||||
2. 허용 권한 토큰 관련 정규식을 `/^(?:Always )?Allow/i` 로 상향 패치.
|
||||
3. `v0.5.9` 로 빌드 및 VSIX 설치 완료 후 정상 동작 검증 완료.
|
||||
|
||||
## 미완료
|
||||
- 없음.
|
||||
Reference in New Issue
Block a user