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

增加相对于工作空间的路径生成规则 #472

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bbbboom
Copy link

@bbbboom bbbboom commented May 15, 2022

举个例子:

当前工作空间:/code/extensions/obkoro1.korofileheader
当前文件路径:/code/extensions/obkoro1.korofileheader/src/logic/filePath.js
路径生成结果

"relative path":
/obkoro1.korofileheader/src/logic/filePath.js

"relative path without workspace":
/src/logic/filePath.js

## 举个例子:

**当前工作空间**:/code/extensions/obkoro1.korofileheader  
**当前文件路径**:/code/extensions/obkoro1.korofileheader/src/logic/filePath.js  
**路径生成结果**:

>"relative path":  
/obkoro1.korofileheader/src/logic/filePath.js  

>"relative path without workspace":  
/src/logic/filePath.js
@OBKoro1
Copy link
Owner

OBKoro1 commented Jun 4, 2022

@bbbboom hi 你好 请截图一下VSCode打开的目录结构,标注哪些是工作空间。提供正常生成的路径是什么。

@bbbboom
Copy link
Author

bbbboom commented Jun 5, 2022

这个是"不包括工作空间的相对路径(relative path without workspace)"的实际效果
image

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.

None yet

2 participants