-
Notifications
You must be signed in to change notification settings - Fork 1
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
Store hasSeenReadme in project (workspace folder) data, instead of workspace data #15
Comments
I would need a couple more examples to understand this :) |
Example: You're working on a project let's say hacktoberfest.nl webapp. Frontend and backend are completely seperated, different stacks, different git repo's, different README's. In VSCode, you can open both projects in the same window. If you do so, you'll get a new 'Workspace' (VSCode will indicate at the top of the folder bar). You can save this new workspace, with two seperate projects, in a hacktoberfest.code-workspace file. The vscode-readme-auto-open is currently storing it's data on a workspace basis. But, if you open the hacktoberfest.nl frontend project individually, you'll get the README again, because the frontend project itself is also a 'workspace'.
Moreover, if a new project with readme is added to the hacktoberfest project, it will NOT open the readme, because the general hacktoberfest project has already 'hasSeenReadme' true. |
Thanks for the extra details! So how do you propose we fix this, practically, if the project structure is like this:
I'm curious for your perspective here! Let's try to tackle most of the edge cases. |
The proposal of this issue is to store the hasSeenReadMe in a way that it is completely dependant on the project, and not on the workspace.
|
Currently, the hasSeenReadme is tracked for the active workspace. The active workspace can contain multiple projects (workspace folders). It might occur that a README is created later on in a project. If the project is already in the workspace, it will never be opened automatically, because the hasSeenReadme is stored on the workspace and not on the project.
Another benefit: if a project is opened individually and not from within the workspace, we know that the readme has already been viewed, so no need to show it again.
The text was updated successfully, but these errors were encountered: