Skip to content

Commit 05da5bc

Browse files
Use jsonc language tag for JSON examples containing comments
Three code blocks are tagged ```json but contain comments, which JSON does not permit, so the examples cannot be parsed or copied as-is: - copilot/reference/hooks-reference.md uses a /* hook entries */ placeholder - copilot/how-tos/copilot-sdk/troubleshooting/mcp-debugging.md uses a leading // comment - copilot/reference/copilot-usage-metrics/lines-of-code-metrics.md uses three trailing // comments Retag these fences as ```jsonc, matching the convention already used elsewhere in the content directory for JSON with comments (for example the dev container examples in codespaces/). The renderer registers 'jsonc' as an alias of 'json' in src/content-render/unified/processor.ts, so highlighting on docs.github.com is unchanged while the fences also render correctly on github.com. The comments are left in place; only the language tags change.
1 parent 27965d1 commit 05da5bc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎content/copilot/how-tos/copilot-sdk/troubleshooting/mcp-debugging.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ This provides a web UI to:
392392

393393
Check your server supports the protocol version the SDK uses:
394394

395-
```json
395+
```jsonc
396396
// In initialize response, check protocolVersion
397397
{"result":{"protocolVersion":"2024-11-05",...}}
398398
```

‎content/copilot/reference/copilot-usage-metrics/lines-of-code-metrics.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Unlike completions or chat, {% data variables.copilot.copilot_agent_short %} doe
6767

6868
Example output for agent-related LoC activity:
6969

70-
```json
70+
```jsonc
7171
"totals_by_language_feature": [
7272
{
7373
"language": "unknown",

‎content/copilot/reference/hooks-reference.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ Use `disableAllHooks` when you want to keep your hook configuration on disk but
841841

842842
Set `disableAllHooks` to `true` at the top level to skip every hook in the file without deleting it.
843843

844-
```json
844+
```jsonc
845845
{
846846
"version": 1,
847847
"disableAllHooks": false,

0 commit comments

Comments
 (0)