From b0b939ce286e01df3694470ad2e43e09a8ec4c50 Mon Sep 17 00:00:00 2001 From: lukeleppan Date: Wed, 11 Nov 2020 11:32:20 +0200 Subject: [PATCH 1/2] first bit #2 --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 2516804..0ae79ac 100644 --- a/src/main.ts +++ b/src/main.ts @@ -38,7 +38,7 @@ export default class BetterWordCount extends Plugin { this.currentFile.extension === "md" && !this.recentlyTyped ) { - const contents = await this.app.vault.read(this.currentFile); + const contents = await this.app.vault.cachedRead(this.currentFile); this.updateWordCount(contents); } else if (!this.recentlyTyped) { this.updateWordCount(""); From 3da2beeb164e14ef0d19e4c31e8fb011c6f51d64 Mon Sep 17 00:00:00 2001 From: lukeleppan Date: Wed, 11 Nov 2020 11:35:10 +0200 Subject: [PATCH 2/2] bump --- manifest.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index e5ba380..80d35fd 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "better-word-count", "name": "Better Word Count", - "version": "0.3.0", + "version": "0.3.1", "description": "Counts the words of selected text in the editor.", "author": "Luke Leppan", "authorUrl": "https://lukeleppan.com", diff --git a/package.json b/package.json index 6ec8b03..c3f9c8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "better-word-count", - "version": "0.3.0", + "version": "0.3.1", "description": "Counts the words of selected text in the editor.", "main": "main.js", "scripts": {