Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(telemetry): add code actions and rename candidates event track #3560

Merged
merged 11 commits into from
Apr 19, 2024

Conversation

bytemain
Copy link
Member

@bytemain bytemain commented Apr 18, 2024

Types

  • 🎉 New Features

Background or solution

优化代码,补充埋点信息

Changelog

Copy link

railway-app bot commented Apr 18, 2024

This PR is being deployed to Railway 🚅

core: ◻️ REMOVED

@opensumi opensumi bot added the 🎨 feature feature required label Apr 18, 2024
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

Attention: Patch coverage is 28.88889% with 32 lines in your changes are missing coverage. Please review.

Project coverage is 56.09%. Comparing base (6a7261a) to head (675144d).

Files Patch % Lines
packages/monaco/src/browser/telemetry.service.ts 15.38% 21 Missing and 1 partial ⚠️
packages/extension/src/hosted/ext.process-base.ts 0.00% 5 Missing ⚠️
...widget/inline-chat/inline-chat.feature.registry.ts 0.00% 3 Missing ⚠️
.../browser/widget/inline-chat/inline-chat.service.ts 0.00% 1 Missing ⚠️
packages/extension/src/hosted/ext.host.ts 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3560   +/-   ##
=======================================
  Coverage   56.08%   56.09%           
=======================================
  Files        1488     1489    +1     
  Lines       90994    91026   +32     
  Branches    18656    18654    -2     
=======================================
+ Hits        51038    51064   +26     
- Misses      33141    33152   +11     
+ Partials     6815     6810    -5     
Flag Coverage Δ
jsdom 51.47% <28.88%> (+0.01%) ⬆️
node 15.65% <8.88%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bytemain
Copy link
Member Author

CleanShot 2024-04-19 at 11 41 48@2x
用户接受 rename 候选项:

{
    "metadata": {
        "host": "browser"
    },
    "msg": "rename",
    "extra": {
        "message": "done",
        "type": "rename",
        "modelRequestStartTime": 1713498075934,
        "msgType": "rename",
        "isStart": false,
        "relationId": "luQOmfLV7SHLe8zrKvocn",
        "success": true,
        "modelRequestEndTime": 1713498076938,
        "kind": "accepted",
        "languageId": "javascript",
        "nRenameSuggestionProviders": 1,
        "source": "renameSuggestion",
        "nRenameSuggestions": 3,
        "wantsPreview": false
    }
}

@bytemain
Copy link
Member Author

用户开始重命名

{
    "metadata": {
        "host": "browser"
    },
    "msg": "rename",
    "extra": {
        "message": "start",
        "type": "rename",
        "modelRequestStartTime": 1713498075934,
        "msgType": "rename",
        "isStart": true,
        "relationId": "luQOmfLV7SHLe8zrKvocn"
    }
}

@bytemain
Copy link
Member Author

bytemain commented Apr 19, 2024

用户取消重命名候选项推荐(出现候选项之后):

{
    "metadata": {
        "host": "browser"
    },
    "msg": "rename",
    "extra": {
        "message": "done",
        "type": "rename",
        "modelRequestStartTime": 1713498255936,
        "msgType": "rename",
        "isStart": false,
        "relationId": "oi3qexHgkpSm4hSYzWa-8",
        "success": true,
        "modelRequestEndTime": 1713498256940,
        "kind": "cancelled",
        "languageId": "javascript",
        "nRenameSuggestionProviders": 1
    }
}

@bytemain
Copy link
Member Author

用户在还没有出现候选项时,就关闭了 rename 框:

{
    "metadata": {
        "host": "browser"
    },
    "msg": "rename",
    "extra": {
        "message": "cancel",
        "type": "rename",
        "modelRequestStartTime": 1713498334661,
        "msgType": "rename",
        "isStart": false,
        "relationId": "v-faPJEI8eMsklKA48CSv",
        "success": false,
        "isCancel": true,
        "modelRequestEndTime": 1713498334876
    }
}

@bytemain bytemain merged commit d59bb5f into main Apr 19, 2024
12 checks passed
@bytemain bytemain deleted the feat/add-new-ai-event-track branch April 19, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 feature feature required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants