github / github/copilot-sdk

add option to disable line numbers in `view` tool output

Open
#73 7 comments 0 reactions 1 assignee Claimed by @SteveSandersonMS View on GitHub
enhancement sdk/dotnet sdk/go sdk/nodejs sdk/python
Dominant language
Java
Stars
10.5k
Forks
1.5k
Avg merge
1d 11h
Merged PRs (30d)
127

Description

I imagine the only avenue for this is CLI argv at process spawn (via `new CopilotClient` construct)

The tool should report the starting line number and the content, allowing clients to display/wrap as needed.
As it is, the output is (sometimes) visually correct but makes for invalid text-selection for code copy/paste.

Also, current line-numbering doesn't account for max-width of numbers

```
9. // example
10. // example
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.