summaryrefslogtreecommitdiff
path: root/continuedev/src/continuedev/core
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-06 20:07:45 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-06 20:07:45 -0700
commit58317604298800ccea238dd34d5ac6537ede4529 (patch)
tree701343ce7479668c73e582f2cc94bc6f21565ba1 /continuedev/src/continuedev/core
parentee37fd0c5582bbe4b2163faa19846d980b5aa6ef (diff)
downloadsncontinue-58317604298800ccea238dd34d5ac6537ede4529.tar.gz
sncontinue-58317604298800ccea238dd34d5ac6537ede4529.tar.bz2
sncontinue-58317604298800ccea238dd34d5ac6537ede4529.zip
details
Diffstat (limited to 'continuedev/src/continuedev/core')
-rw-r--r--continuedev/src/continuedev/core/autopilot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/continuedev/src/continuedev/core/autopilot.py b/continuedev/src/continuedev/core/autopilot.py
index 6e4326f0..02fd61de 100644
--- a/continuedev/src/continuedev/core/autopilot.py
+++ b/continuedev/src/continuedev/core/autopilot.py
@@ -153,7 +153,7 @@ class Autopilot(ContinueBaseModel):
async def handle_highlighted_code(self, range_in_files: List[RangeInFileWithContents]):
# If un-highlighting, then remove the range
- if len(self._highlighted_ranges) == 1 and len(range_in_files) <= 1 and (len(range_in_files) == 0 or range_in_files[0].range.start == range_in_files[0].range.end):
+ if len(self._highlighted_ranges) == 1 and len(range_in_files) <= 1 and (len(range_in_files) == 0 or range_in_files[0].range.start == range_in_files[0].range.end) and not self._adding_highlighted_code:
self._highlighted_ranges = []
await self.update_subscribers()
return