From 23eb4c6e7781dde0a17b25620f52742fb77f0342 Mon Sep 17 00:00:00 2001 From: Vadim Date: Sat, 9 Nov 2024 16:01:24 +0200 Subject: [PATCH 1/2] fixing `remove FILE_IGNORE_LIST` commit, that embeds maven wrapper --- src/extension/embeddings.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/extension/embeddings.ts b/src/extension/embeddings.ts index 82339516..a7b8176f 100644 --- a/src/extension/embeddings.ts +++ b/src/extension/embeddings.ts @@ -97,6 +97,12 @@ export class EmbeddingDatabase extends Base { const ig = ignore() + const gitIgnoreFilePath = path.join(rootPath, ".gitignore") + + if (fs.existsSync(gitIgnoreFilePath)) { + ig.add(fs.readFileSync(gitIgnoreFilePath).toString()) + } + const embeddingIgnoredGlobs = this.config.get( "embeddingIgnoredGlobs", [] as string[] @@ -104,13 +110,7 @@ export class EmbeddingDatabase extends Base { ig.add(embeddingIgnoredGlobs) ig.add([".git", ".gitignore"]) - - const gitIgnoreFilePath = path.join(rootPath, ".gitignore") - - if (fs.existsSync(gitIgnoreFilePath)) { - ig.add(fs.readFileSync(gitIgnoreFilePath).toString()) - } - + for (const dirent of dirents) { const fullPath = path.join(dirPath, dirent.name) const relativePath = path.relative(rootPath, fullPath) From 8006aa75d385d2a747855d051a046a416de2242d Mon Sep 17 00:00:00 2001 From: Vadim Date: Sun, 10 Nov 2024 12:52:28 +0200 Subject: [PATCH 2/2] 3.18.11 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ce639046..edfefcf1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "twinny", - "version": "3.18.10", + "version": "3.18.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "twinny", - "version": "3.18.10", + "version": "3.18.11", "cpu": [ "x64", "arm64" diff --git a/package.json b/package.json index d716fe4d..2401b1d0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "twinny", "displayName": "twinny - AI Code Completion and Chat", "description": "Locally hosted AI code completion plugin for vscode", - "version": "3.18.10", + "version": "3.18.11", "icon": "assets/icon.png", "keywords": [ "code-inference",