microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.95k stars 29.52k forks source link

代码补全会把后面的代码覆盖 #82463

Closed SomnusTan closed 5 years ago

SomnusTan commented 5 years ago

Issue Type: Bug

ts代码补全时,会把后面的代码覆盖 比如代码public getAvatarData(resName) {这样 我要给参数加上类型resName:string 则输入 :st 时,弹出补全选择,我选中string时,代码会变成 public getAvatarData(resName:string 原来后面的 ) { 都不见了

VS Code version: Code - Insiders 1.40.0-insider (72bc289d32ec4f867e73b7f1f2a22f7d614ae2bb, 2019-10-11T05:44:05.506Z) OS version: Windows_NT x64 10.0.18362

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 x 4008)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.92GB (10.21GB free)| |Process Argv|| |Screen Reader|no| |VM|80%|
Extensions (7) Extension|Author (truncated)|Version ---|---|--- vscode-eclipse-keybindings|alp|0.10.0 vscode-eslint|dba|1.9.1 vscode-language-pack-zh-hans|MS-|1.39.3 python|ms-|2019.10.41019 vscode-typescript-tslint-plugin|ms-|1.2.2 debugger-for-chrome|msj|4.12.0 EgretCode|zc|0.0.3
varadero commented 5 years ago

Looks like a duplicate of #82468 , #82466 , #82444

vscodebot[bot] commented 5 years ago

This issue is being closed because its description is not in English, that makes it hard for us to work on it. Please open a new issue with an English description. You might find Bing Translator useful.