-
Notifications
You must be signed in to change notification settings - Fork 25
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
vsls-contrib.gitdoc broken by foam.foam-vscode; requires Enable/Disable/Enable command on every new session to function. #88
Comments
Cross-posted with foambubble/foam#1419. |
Hi! On my VSCode, it seems the bug still exist without the foam-vscode extension. |
It looks like To be precise: { // always works perfectly in isolation
"recommendations": [
"vsls-contrib.gitdoc",
]
} { // always malfunctions when paired with foam
"recommendations": [
"vsls-contrib.gitdoc",
"foam.foam-vscode",
]
} { // seems to always work correctly with this set
"recommendations": [
"vsls-contrib.gitdoc",
"yzhang.markdown-all-in-one",
"mushan.vscode-paste-image",
"bierner.markdown-mermaid",
"bpruitt-goddard.mermaid-markdown-syntax-highlighting",
"alefragnani.project-manager",
"goessner.mdmath",
"bierner.markdown-footnotes",
"Gruntfuggly.todo-tree",
]
} { // malfunctions occasionally with this set
"recommendations": [
"vsls-contrib.gitdoc",
"yzhang.markdown-all-in-one",
"mushan.vscode-paste-image",
"bierner.markdown-mermaid",
"bpruitt-goddard.mermaid-markdown-syntax-highlighting",
"alefragnani.project-manager",
"goessner.mdmath",
"bierner.markdown-footnotes",
"Gruntfuggly.todo-tree",
"tekumara.typos-vscode",
]
} I've added Something about this feels like it might be related to load timing? The issue with |
@jcalixte Could you share your extension host log output? That'll let us see what your full extension list is, to see if any of the extensions you do have have anything in common with others that seem to be causing this issue. (If not sure how to access this log: open the command palette with Ctrl+Shift+P, run |
Problem
Some time before August 2024, GitDoc started to behave strangely with regards to its enable/disable status. Each time I launch VSCode, the extension appears to start disabled (despite configurations that should enable it), and only becomes functional after running commands to enable, disable, and then re-enable it a second time.
I've isolated this issue to some kind of interaction with the
foam.foam-vscode
extension that I also wish to run in the same workspace. Disabling this extension resolves these symptoms;vsls-contrib.gitdoc
starts and runs normally whenfoam.foam-vscode
is disabled or absent.This exact set of symptoms occurs across both of the computers I regularly use for my notes repository where I make use of these extensions.
With
vsls-contrib.gitdoc
andfoam.foam-vscode
as the only two extensions enabled, and every other non-builtin extension disabled:Enable/Disable Stateful Behavior
For the sake of being fully explicit, there seem to be four different system states involved, which I'll label State A through State D:
State A is the proper enabled and running state. The book icon is visible in the bottom bar whenever I have a file open that it's configured to operate on, auto-commits are created automatically when files are changed, and the
GitDoc: Disable
andGitDoc: Commit
commands are visible in the command palette. If I close VSCode, then start VSCode, I expect it to re-open in State A; however, it instead launches in what I'm labeled State B.State B appears to be a disabled state. GitDoc is not running, no book icon is visible, no auto-commits are created, and only the
GitDoc: Enable
command is visible in the palette. RunningGitDoc: Enable
transitions the system to State C (not to State A).State C is a sort of pseudo-enabled state. The book icon is not visible on any configured file, and commits are not created automatically when files are changed, but he
GitDoc: Disable
andGitDoc: Commit
commands are visible in the palette andGitDoc: Enable
is not. RunningGitDoc: Commit
does successfully create a commit, but leaves the system in State C. RunningGitDoc: Disable
transitions the system to State D.State D is also a 'disabled' state, with the same visible symptoms as State B, except that running
GitDoc: Enable
transitions the system to the (desired) State A (not to State C).Environment
My workspace configures Foam and GitDoc via config keys in the
.vscode/settings.json
file located relative to the workspace root, the relevant lines of which are:The last two lines were added recently as another attempts to try to resolve it this issue; but the problem occurs regardless of whether those values are inherited from the defaults or specified explicitly in the workspace settings.
This workspace root is also the git repository root; with these settings captured as part of the version control for this repository.
The only two non-builtin extensions enabled are:
Software Version Info
VSCode About Info:
GitDoc Installation Info:
Foam Installation Info:
Extension Host Logs
Here's the Extension Host logs for each of these states.
Starting in State B, I get:
No additional log entries appear when running any of the commands that transition the symptoms to one of the other states.
The text was updated successfully, but these errors were encountered: