[go: nahoru, domu]

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: support terminal to open folder and file #487

Merged
merged 2 commits into from
Mar 2, 2022

Conversation

yantze
Copy link
Member
@yantze yantze commented Feb 21, 2022

Types

  • 🎉 New Features

Background or solution

close #486

同步 VSCode 1.63.2 版本的正则 vs/workbench/contrib/terminal/browser/links/terminalValidatedLocalLinkProvider.t

  1. 鼠标移到对应的路径,有明确提示行为"Open file in editor",在新窗口打开文件夹
  2. 如果是项目内的文件,有明确的提示"Focus folder in explorer",并支持在当前工作区打开或者聚焦到对应的目录
  3. 如果是项目外的文件,在 Electron 环境通过新窗口打开

screenshort_20220218-203142

Changelog

support terminal to open folder and file

@codecov-commenter
Copy link

Codecov Report

Merging #487 (2d8ac5f) into main (b4fa15d) will decrease coverage by 0.00%.
The diff coverage is 48.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #487      +/-   ##
==========================================
- Coverage   59.01%   59.01%   -0.01%     
==========================================
  Files        1200     1200              
  Lines       73916    73947      +31     
  Branches    15293    15303      +10     
==========================================
+ Hits        43623    43639      +16     
- Misses      27611    27623      +12     
- Partials     2682     2685       +3     
Impacted Files Coverage Δ
packages/i18n/src/common/en-US.lang.ts 100.00% <ø> (ø)
packages/i18n/src/common/zh-CN.lang.ts 100.00% <ø> (ø)
...src/browser/links/validated-local-link-provider.ts 72.27% <44.11%> (-14.03%) ⬇️
packages/terminal-next/src/browser/links/link.ts 22.58% <100.00%> (+2.58%) ⬆️
...ages/file-service/src/node/file-service-watcher.ts 72.88% <0.00%> (+1.69%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b4fa15d...2d8ac5f. Read the comment docs.

Copy link
Member
@erha19 erha19 left a comment

Choose a reason for hiding this comment

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

LGTM

@erha19
Copy link
Member
erha19 commented Mar 1, 2022

@yantze 看一下,补充一下对应测试用例

@yantze
Copy link
Member Author
yantze commented Mar 1, 2022

@yantze 看一下,补充一下对应测试用例

新增的正则 winExcludedPathCharactersClause lineAndColumnClause 在 terminalValidatedLocalLinkProvider.test.ts 是有对这些路径进行测试校验的。

@erha19 erha19 merged commit 8bf3055 into main Mar 2, 2022
@erha19 erha19 deleted the feat/open-folder-with-new-window branch March 2, 2022 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] 支持在命令行打开其它路径的文件和文件夹
3 participants