Skip to content

refactor(vscode): simplify openFile null check with optional chaining - #13354

Merged
marius-kilocode merged 1 commit into
mainfrom
fix/document-open-file-optional-chain
Aug 24, 2026
Merged

refactor(vscode): simplify openFile null check with optional chaining#13354
marius-kilocode merged 1 commit into
mainfrom
fix/document-open-file-optional-chain

Conversation

@kilo-code-bot

@kilo-code-bot kilo-code-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

What

Merges the two-line openFile null check in handleDocumentOpen into a single line using optional chaining:

if (!openFile?.(file, line, column, sessionId)) return

Why

Small follow-up requested in review on #13350: #13350 (comment)


Built for marius-kilocode by Kilo

@marius-kilocode
marius-kilocode merged commit b2fa8d2 into main Aug 24, 2026
22 checks passed
@marius-kilocode
marius-kilocode deleted the fix/document-open-file-optional-chain branch August 24, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants