Skip to content

feature / #68 skip running checks if file content has not changed#72

Merged
davidramnero merged 4 commits into
mainfrom
feature-/-#68-skip-running-checks-if-file-content-has-not-changed
Jun 22, 2026
Merged

feature / #68 skip running checks if file content has not changed#72
davidramnero merged 4 commits into
mainfrom
feature-/-#68-skip-running-checks-if-file-content-has-not-changed

Conversation

@davidramnero

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/extension.ts
return;
}

if ((Object.keys(documentHashMemory) as Array<string>).includes(document.fileName)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can there be some situation when results are not shown for a file and user wants to save to trigger analysis? is cppcheck always executed when a file is opened? even if user doesn't open the file but vscode opens the file automatically during startup or something?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yeah this is a good question, I am trying to think of a way to make it safe from ending up in a kind of stuck mode such as you describe, but I am not sure we can be completely safe from it happening.

Maybe this feature isn't worth the risk?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I am not sure how much of a problem it is to run checks a little more than necessary tbh

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if you only calculate the hash when the file is saved we should be safe.. if you feel this is done then I am happy.

danmar
danmar previously approved these changes Jun 22, 2026

@danmar danmar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I suggest we merge this

@davidramnero davidramnero merged commit f13c8bf into main Jun 22, 2026
7 checks passed
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.

2 participants