Remove empty markdown cell in resource try-it view #1308
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Empty markdown cell rendered in HTTP notebook when invoking "Try it" from a resource, showing placeholder text "Empty markdown cell, double-click or press enter to edit."
Goals
Eliminate the empty markdown cell while preserving existing functionality for service-level try-it invocations.
Approach
The Handlebars template conditionally hides method/path headers in resource mode using
{{#unless isResourceMode}}, but only wrapped the content, leaving the markdown comment delimiters/* */to render as an empty cell.Changed: Moved the conditional to wrap the entire markdown block instead of just its content.
{{#each paths}} {{#each this}} -/* -{{#unless ../../isResourceMode}}#### {{uppercase @key}} {{@../key}}{{/unless}} +{{#unless ../../isResourceMode}}/* +#### {{uppercase @key}} {{@../key}} {{#if parameters}} ... parameter docs ... {{/if}} */ +{{/unless}} ###Before (resource mode):
After (resource mode):
Service mode behavior unchanged—method headers still render correctly.
UI Component Development
Manage Icons
User stories
Users invoking "Try it" from a resource no longer see an empty markdown cell disrupting the HTTP notebook layout.
Release note
Fixed empty markdown cell appearing in HTTP notebook when testing individual resources via "Try it" feature.
Documentation
N/A - UI fix with no new user-facing functionality.
Training
N/A
Certification
N/A - Bug fix with no certification impact.
Marketing
N/A
Automation tests
Security checks
Samples
N/A
Related PRs
None
Migrations (if applicable)
N/A
Test environment
Node.js with Handlebars 4.x - template compilation verified
Learning
Handlebars conditional block scope—conditionals that only hide content still render surrounding markup. Solution: wrap entire block structure in conditional.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.