Skip to content

[excel] (Range) Merge precedent and dependent samples#1090

Open
AlexJerabek wants to merge 2 commits into
mainfrom
AlexJ-Deps
Open

[excel] (Range) Merge precedent and dependent samples#1090
AlexJerabek wants to merge 2 commits into
mainfrom
AlexJ-Deps

Conversation

@AlexJerabek
Copy link
Copy Markdown
Collaborator

The three snippets about this topic were very similar. This PR merge them into a single snippet for better discoverability.

This PR also updates the tsconfig files to avoid some VSCode warnings.

@AlexJerabek AlexJerabek requested a review from davidchesnut May 7, 2026 22:49
Copy link
Copy Markdown
Member

@davidchesnut davidchesnut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion added. Also wondering if it should show an error when you select a cell without dependents or precedents? Or should it show something like "none" in the console.

Otherwise I like the combining!

Comment thread samples/excel/42-range/precedents-and-dependents.yaml
@AlexJerabek
Copy link
Copy Markdown
Collaborator Author

One suggestion added. Also wondering if it should show an error when you select a cell without dependents or precedents? Or should it show something like "none" in the console.

Otherwise I like the combining!

Thanks @davidchesnut! That's a good idea - I'll add it.

@AlexJerabek AlexJerabek requested a review from davidchesnut May 14, 2026 00:04
@AlexJerabek
Copy link
Copy Markdown
Collaborator Author

@davidchesnut, so it turns out the precedent/dependent APIs throw errors by design when they have no precedents or dependents. There's not really an empty check that wouldn't overcomplicate the sample.

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