fix: 🐛 fix for edit=None in highlightedCode update
This commit is contained in:
parent
2ecaeee04a
commit
247d3e9a41
2 changed files with 2 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ class HighlightedCodeContextProvider(ContextProvider):
|
|||
id=ContextItemId(provider_title=self.title, item_id=str(idx)),
|
||||
),
|
||||
content=rif.contents,
|
||||
editing=editing,
|
||||
editing=editing if editing is not None else False,
|
||||
editable=True,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ class IdeProtocolServer(AbstractIdeProtocolServer):
|
|||
elif message_type == "highlightedCodePush":
|
||||
self.onHighlightedCodeUpdate(
|
||||
[RangeInFileWithContents(**rif) for rif in data["highlightedCode"]],
|
||||
edit=data.get("edit", None),
|
||||
edit=data.get("edit", False),
|
||||
)
|
||||
elif message_type == "commandOutput":
|
||||
output = data["output"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue