From 5e89f71e94eadd68c88e1ab7f9858c2f87b3cefe Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 3 May 2024 11:39:44 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20small=20improvements=20to=20auto?= =?UTF-8?q?complete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/autocomplete/completionProvider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index 61c64a669..2e7b08ed8 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -61,7 +61,7 @@ const DOUBLE_NEWLINE = "\n\n"; const WINDOWS_DOUBLE_NEWLINE = "\r\n\r\n"; const SRC_DIRECTORY = "/src/"; // Starcoder2 tends to output artifacts starting with the letter "t" -const STARCODER2_T_ARTIFACTS = ["t.", "\nt"]; +const STARCODER2_T_ARTIFACTS = ["t.", "\nt", ""]; const PYTHON_ENCODING = "#- coding: utf-8"; const CODE_BLOCK_END = "```"; @@ -72,7 +72,7 @@ const commonStops = [SRC_DIRECTORY, PYTHON_ENCODING, CODE_BLOCK_END]; // Not worth disrupting the user to tell them that a single autocomplete request didn't go through const ERRORS_TO_IGNORE = [ // From Ollama - "unexpected server status: 1", + "unexpected server status", ]; function formatExternalSnippet(