Update annotation links on rename #89
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/resync-on-v-rename"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #43.
Renaming a
.vfile or folder now rewrites affected links in open C files, re-syncs only those documents, and refreshes annotation and inline diagnostics.Refresh annotations after files are renamedto WIP: Refresh annotations after files are renamed00ab47df21685745ea7eWIP: Refresh annotations after files are renamedto Update annotation links on rename@ -38,0 +149,4 @@}}return links;}I don't want all this (line 46-152) in this file but in another one
@ -215,0 +370,4 @@const affected = new Set<string>();for (const document of vscode.workspace.textDocuments) {if (document.languageId !== 'c') continue;const annotations = await checkAnnotations(we are parsing all annotations again? arent they up to date in the annotationsStore?
@ -215,0 +241,4 @@*/function storedAnnotations(uri: vscode.Uri,): readonly (FunctionAnnotation | LoopAnnotation)[] | undefined {the annotationStore should just use strings as keys instead of uri's this would safe us from doing all this, but lets just add it for now
fix annotationStore
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.