-
Notifications
You must be signed in to change notification settings - Fork 403
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: empty impl VSCode TerminalShellIntegration API #4210
Conversation
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
warning eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options. Walkthrough此拉取请求引入了一系列与终端 shell 集成功能相关的更改,包括添加新的枚举、接口和事件。这些更改旨在扩展终端的能力,使其能够更好地处理命令执行和集成事件。具体而言,新增的 Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Outside diff range and nitpick comments (1)
packages/extension/src/hosted/api/vscode/ext.host.window.api.impl.ts (1)
301-306
: 修正注释和属性名称中的拼写错误注释和属性名称中的 "Ingration" 应修改为 "Integration"。请确保注释和代码中的拼写一致,以提高代码的可读性和维护性。
建议应用以下修改:
- /** @stubbed Terminal Shell Ingration */ + /** @stubbed Terminal Shell Integration */ onDidChangeTerminalShellIntegration: Event.None, - /** @stubbed Terminal Shell Ingration */ + /** @stubbed Terminal Shell Integration */ onDidEndTerminalShellExecution: Event.None, - /** @stubbed Terminal Shell Ingration */ + /** @stubbed Terminal Shell Integration */ onDidStartTerminalShellExecution: Event.None,
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (5)
packages/extension/src/common/vscode/ext-types.ts
(1 hunks)packages/extension/src/hosted/api/vscode/ext.host.terminal.ts
(1 hunks)packages/extension/src/hosted/api/vscode/ext.host.window.api.impl.ts
(2 hunks)packages/types/vscode/typings/vscode.d.ts
(2 hunks)packages/types/vscode/typings/vscode.window.d.ts
(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- packages/extension/src/common/vscode/ext-types.ts
🔇 Additional comments (2)
packages/extension/src/hosted/api/vscode/ext.host.terminal.ts (1)
710-711
: 代码实现良好
为 Terminal
类添加了 shellIntegration
属性,其实现符合预期。
packages/types/vscode/typings/vscode.d.ts (1)
3119-3130
: 代码实现良好
在 Terminal
接口中新增的 shellIntegration
属性定义合理,文档描述清晰。
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4210 +/- ##
=======================================
Coverage 54.03% 54.04%
=======================================
Files 1616 1616
Lines 97996 98003 +7
Branches 20061 20062 +1
=======================================
+ Hits 52955 52966 +11
+ Misses 37420 37416 -4
Partials 7621 7621
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Types
Background or solution
Changelog
Summary by CodeRabbit
新功能
TerminalShellExecutionCommandLineConfidence
,提供低、中、高三个信心级别。Terminal
类中新增shellIntegration
属性,增强终端功能。文档