Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

When selecting a suggestion in HTML from the vscode intellisense, it deletes a few characters after the pointer #1791

Open
1 task
elazarza opened this issue Oct 25, 2022 · 5 comments
Labels

Comments

@elazarza
Copy link

elazarza commented Oct 25, 2022

馃悶 bug report

Is this a regression?

No

Description

When starting to type something in the template, for example: a class-name, and visual code suggests a completion, when selecting the completion while the extension is enabled the completion deletes 2-5 characters after the pointer. not happening when the extension is disabled. video included

Bug Type

What does this bug affect

  • [x ] Angular Language Service VSCode extension
  • Angular Language Service server

Reproduction

Steps to reproduce the behavior:

  1. start typing anything that prompts a suggestion in the template in vscode, where the line goes on after that location
  2. select that suggestion

Expected behavior

The suggestion is inserted into the editor, and the rest of the line remains.

Logs

Log file gives us deep insight into the behavior and performance of the extension. If the issue is a performance
problem or an error occured, please provide the output of the log file below.

Set Angular Log level to verbose.





Screenshots

If applicable, add screenshots to help explain your problem.

Example Screenshot

馃實 Your Environment

Angular Version:





Angular: 13.2.4
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic, router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1302.5
@angular-devkit/build-angular      13.2.5
@angular-devkit/core               13.2.5
@angular-devkit/schematics         13.2.5
@angular/cli                       13.2.5
@angular/material-moment-adapter   14.0.2
@schematics/angular                13.2.5
rxjs                               7.5.4
typescript                         4.5.5

Extension Version:




v14.2.0

VSCode Version:




Version: 1.72.2 (user setup)
Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075
Date: 2022-10-12T22:15:18.074Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19044
Sandboxed: No

Operating System:




Windows 10

Extension options:




{
    "angular.enable-strict-mode-prompt": false
}

Anything else relevant?

@elazarza elazarza added the bug label Oct 25, 2022
@atscott
Copy link
Collaborator

atscott commented Oct 25, 2022

@elazarza I investigated this in the past and found it to be an issue in VSCode. I submitted microsoft/vscode#132785 but I think it was misunderstood or didn't get enough attention to be investigated fully. Unfortunately, there's nothing that can be done on our side for this.

@atscott
Copy link
Collaborator

atscott commented Oct 25, 2022

For reference: #1503 (comment)

@elazarza
Copy link
Author

@elazarza I investigated this in the past and found it to be an issue in VSCode. I submitted microsoft/vscode#132785 but I think it was misunderstood or didn't get enough attention to be investigated fully. Unfortunately, there's nothing that can be done on our side for this.

Hi @atscott , thanks for the quick response.
Ok I guess we'll have to live with it then. I tried commenting on your submission to microsoft to gain attention but its locked of course.

thanks!

@d9j
Copy link

d9j commented Feb 10, 2023

ANOTHER problem in the latest update is that when clicking autocompletion it is breaking line.. very annoying issue

@ahules
Copy link

ahules commented Oct 4, 2023

I have the same problem. Just removes few characters after selection the suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants