alefragnani / vscode-project-manager

Project Manager Extension for Visual Studio Code
GNU General Public License v3.0
1.87k stars 222 forks source link

[FEATURE] - Show current active folder #699

Closed jackiotyu closed 11 months ago

jackiotyu commented 11 months ago

utils code: https://github.com/jackiotyu/git-worktree-manager/blob/99df4236323ee87385c809856caaf42a2e65e383/src/folderRoot.ts#L1-L33 https://github.com/jackiotyu/git-worktree-manager/blob/99df4236323ee87385c809856caaf42a2e65e383/src/utils.ts#L1-L13

example: image

Through the vscode workspace api, it can find the current folder uri easily. Maybe help to clearly show current working directory. 😀

alefragnani commented 11 months ago

Hi @jackiotyu ,

Could you provide more details about what is your request? What do you mean about current active folder / current working directory in Project Manager extension?

Thank you

jackiotyu commented 11 months ago

image

Good day!, I mean that you can let the extension find the folder or workspace used by the current window, and if you can highlight it, you can clearly see the current working directory, which is convenient for switching and prevents misoperation at some times.

Just a suggestion😀

alefragnani commented 11 months ago

Hi @jackiotyu ,

Identifying the current folder and comparing with the project path is not an issue, as it is already made for the Status Bar item. The real issue in highlighting the project in the Side Bar, is the highlighting itself 😀 .

I have played with in the past, but it wasn't that stable, so I leave it in the backlog to try again later. BTW, it's already being tracked in #299.

It's been a long time, so maybe it is working better now. I'll try to revisit this for upcoming releases.

Thank you

jackiotyu commented 11 months ago

Ok, thanks for taking the time to look at this