diff --git a/package.json b/package.json index 724a35d..6f8e054 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,11 @@ "name": "Zettel View", "icon": "media/dep.svg", "contextualTitle": "Zettelkasten View" + }, + { + "id": "incomingZettelView", + "name": "Incoming Zettels", + "contextualTitle": "Incoming Zettel View" } ] }, @@ -37,6 +42,11 @@ "command": "zettelView.refreshEntry", "when": "view == zettelView", "group": "navigation" + }, + { + "command": "incomingLinksView.refreshEntry", + "when": "view == incomingLinksView", + "group": "navigation" } ], "explorer/context": [ @@ -66,6 +76,14 @@ { "command": "zettelView.renameEntry", "title": "Rename and replace links" + }, + { + "command": "incomingLinksView.refreshEntry", + "title": "Refresh Incoming Links", + "icon": { + "light": "resources/light/refresh.svg", + "dark": "resources/dark/refresh.svg" + } } ], "configuration": { diff --git a/src/utils/MyLogger.ts b/src/utils/MyLogger.ts index cc32f14..d2ce725 100644 --- a/src/utils/MyLogger.ts +++ b/src/utils/MyLogger.ts @@ -5,7 +5,7 @@ import * as vscode from 'vscode'; // Until I add someone else's logger to the list of dependencies, // you'll have to put up with self-contained code. -export class myLogger { +export class MyLogger { static readonly myExtension = "Zettel View"; static readonly logOutputChannel = vscode.window.createOutputChannel(this.myExtension); static logMsg(msg : string): void { diff --git a/src/utils/updateIncomingLinksMap.ts b/src/utils/updateIncomingLinksMap.ts index a0d3efd..057894f 100644 --- a/src/utils/updateIncomingLinksMap.ts +++ b/src/utils/updateIncomingLinksMap.ts @@ -9,9 +9,8 @@ export async function updateIncomingLinksMap( for (const sourceID of incomingLinksForOldID) { incomingLinksMap.addLink(newID, sourceID); - } - - for (const sourceID of incomingLinksForOldID) { incomingLinksMap.removeLink(oldID, sourceID); } } + +