Closed TerminalFi closed 3 months ago
I think we first have to update the those typedict schemas for the new server.
chore: bump server to 1.39.0 for testing this PR
@jfcherng I think we might need to rethink how we store conversation long term. But it is almost working. However I am having issues with jinja2 templating. Mind taking a look?
The below code causes this error Parse Error at line 351 column 28: closing p does not match opening div
{%- if section.kind == "report" -%}
<div class="references">
{%- if section.references_expanded -%}
<a class="reference_toggle" href='{{ section.toggle_references_url }}'>{{ section.references|length }} References</a>
<div class="reference">
{% for reference in section.references %}
<a href="#">{{ reference['uri'] }}</a>
{% endfor %}
</div>
{% else %}
<a class="reference_toggle" href='{{ section.toggle_references_url }}'>{{ section.references|length }} References</a>
{%- endif -%}
</div>
{%- endif -%}
The below code causes this error
Parse Error at line 351 column 28: closing p does not match opening div
That's caused by how mdpopup handles mixed HTML+MD iirc (indented HTML is somehow recognized as MD?). I encountered that before. That <p>
is inserted by mdpopup but it inserts </p>
in a wrong place, where should be </div>
.
I think we might need to rethink how we store conversation long term.
I see you inject references_expanded
into the payload from Copilot. I think we should create a new type and keep the original payload type stay intact (payload only represents what we received from the server as-is). Just like why we created CopilotPayloadConversationEntryTransformed
(can we reuse this?).
TODO
VSCode references only consider the first cursor and considers all opened files.
Example
Let’s assume the three files are:
And each file has the following first cursor/selection positions:
We will only reference
What needs to happen
This needs to be updated to follow the logic like
We need to list only the views for the window_id tied to the session
In effort to continue to show the value of this and maximize the usage of MiniHTML and drive more features we should expand to allow for expandable and collapsable references. :D