Skip to content

Copilot ++ suggestion for HTML / Svelte often remove the next line / tag #1236

Closed
@MarArMar

Description

@MarArMar

As a Pro user, I would like Copilot ++ to only modify the current line of the suggestion and not removing the next line

Example :

    <div>
      <a href="/icons">Icons</a>
    </div>

I will change Icons for Articles for example :

    <div>
      <a href="/icons">Articles</a>
    </div>

Copilot ++ correctly suggest a change to the href as "/articles"

But when applying the suggestion, it oftens remove the entire next line, braking the markup (here removing the next

After applying duggestion :

    <div>
      <a href="/articles">Articles</a>

Other example that happens often is with Svelte code, it removes the end "</script>" tag when completing JS/TS code clost to the tag:

<script lang="ts">

import onMount
</script>

<div>

When applying the correct suggestion of "import { onMount } from 'svelte'"

<script lang="ts">

import { onMount } from 'svelte'

<div>

This is SUPER infortunate and completely braking the flow

Copilot ++ is absolutely amazing, except in those cases where I have to cancel and do the suggestion myself

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions