Skip to content

Commit

Permalink
Spaces and some blank lines removed
Browse files Browse the repository at this point in the history
  • Loading branch information
flengyel committed Jul 6, 2023
1 parent 98de52c commit c7fce58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions src/IncomingZettelViewTreeDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class IncomingZettelViewTreeDataProvider implements vscode.TreeDataProvid

const id = path.basename(this.currentMarkdownFile, '.md');
const incomingIDs = this.incomingIDMap.getIncomingIDsFor(id);
MyLogger.logMsg(`Incoming IDs for ${id}: ${JSON.stringify(incomingIDs)}`); // Add this log
// MyLogger.logMsg(`Incoming IDs for ${id}: ${JSON.stringify(incomingIDs)}`);

if (!incomingIDs || incomingIDs.size === 0) {
vscode.window.showInformationMessage(`No incoming IDs for the file ${this.currentMarkdownFile}`);
Expand Down Expand Up @@ -91,6 +91,5 @@ export class IncomingZettelViewTreeDataProvider implements vscode.TreeDataProvid

return items;
}


}
5 changes: 0 additions & 5 deletions src/utils/replaceIncomingIDs.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import * as path from 'path';
import * as fs from 'fs';
import * as util from 'util';

import { IDregex } from './IDregex';
export const id = new IDregex();

import { IncomingIDMap } from './IncomingIDMap';

import { MyLogger } from './MyLogger';

const readFile = util.promisify(fs.readFile);
const writeFile = util.promisify(fs.writeFile);

export async function replaceIncomingIDs(oldID: string, newID: string, workspaceRoot: string, incomingIDMap: IncomingIDMap) {
// Get a set of source files which have links to the oldID
Expand Down

0 comments on commit c7fce58

Please sign in to comment.