Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Conversation

@philipp-spiess
Copy link
Contributor

Adds a flag to the event logs so we know how often multi-line suggestions are triggered.

Logging how often they are accepted is a bit tricker and requires some resturcturing. For now we do not know for an accepted event wether it was a multi line or a single line completion. Will fix it up later (but I plan to cut a release in a bit)

Test plan

Screenshot 2023-05-25 at 14 14 15

@cla-bot cla-bot bot added the cla-signed label May 25, 2023
@github-actions github-actions bot added the team/code-exploration Issues owned by the Code Exploration team label May 25, 2023
@sourcegraph-bot
Copy link
Contributor

sourcegraph-bot commented May 25, 2023

📖 Storybook live preview

await completionsProvider.fetchAndShowCompletions()
}),
vscode.commands.registerCommand('cody.completions.inline.accepted', () => {
vscode.commands.registerCommand('cody.completions.inline.accepted', asdf => {
Copy link
Contributor

Choose a reason for hiding this comment

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

accidental?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoopsis

Copy link
Contributor

@vdavid vdavid left a comment

Choose a reason for hiding this comment

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

Nice little improvement. Pointed out a possibly accidental change

@philipp-spiess philipp-spiess merged commit 146208d into main May 25, 2023
@philipp-spiess philipp-spiess deleted the ps/cody-multiline-logging branch May 25, 2023 15:16
ErikaRS pushed a commit that referenced this pull request Jun 22, 2023
)

Adds a flag to the event logs so we know how often multi-line
suggestions are triggered.

Logging how often they are accepted is a bit tricker and requires some
resturcturing. For now we do not know for an accepted event wether it
was a multi line or a single line completion. Will fix it up later (but
I plan to cut a release in a bit)

## Test plan

<img width="1092" alt="Screenshot 2023-05-25 at 14 14 15"
src="https://github.com/sourcegraph/sourcegraph/assets/458591/da3ed4c4-b0c2-4906-9680-b6324c483c04">


<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/code-exploration Issues owned by the Code Exploration team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants