microsoft / vscode-typescript-tslint-plugin

VS Code extension that provides TSLint support using the typescript-tslint-plugin
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin
MIT License
188 stars 35 forks source link

vscode intellisense show wrong tip tslint not work #73

Closed zsytssk closed 1 year ago

zsytssk commented 5 years ago

Issue Type: Bug

sometime after vscode work all day, ts file show wrong intellisense(other position code intellisense), and tslint not working, but ts file format work normally and js file intellisense lint work normlly. maybe is ts_lsp not update when file change...

Extension version: 1.0.0 VS Code version: Code 1.32.3 (a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4, 2019-03-14T23:43:35.476Z) OS version: Windows_NT x64 6.1.7601

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (4 x 2194)| |GPU Status|2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled| |Memory (System)|7.92GB (2.92GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
mjbvz commented 5 years ago

Please provide more information about what is not working. Screenshots and example code would also be helpful

kevinbeaudoin commented 5 years ago

Sometimes we have the same issue when we change a lot of code at once or when prettier runs on a file. In such cases we end up having tslint warning or issues indicator on wrong lines and extension seems to have stopped working. We must relaunch vscode to fix the issue. I can say we have to relaunch vscode at least once or twice a day since we've moved to the new tslint extension.

davicoradini commented 5 years ago

same thing here (issues indicator in the wrong place, lost of suggestions), we all ended up removing the new extension and using the deprecated one, that works pretty well

really hard to reproduce though, as it works just fine for a period of time

*tip 1: the deprecated one also stops working after a while, but it takes a few seconds (5 or 7) and it starts working again, as for the new extension, when it stops, you need to restart vscode

*tip 2: I noticed same behavior even without any other extension installed

davicoradini commented 5 years ago

An example: image

Taking a closer look, it seems like vscode is highlighting it wrong too. Maybe it's related.

nicholasrq commented 5 years ago

same here

image

restarting ts language server helps every time

nicholasrq commented 5 years ago

it becomes really annoying. type few characters -> restart ts lang -> type few more -> restart ts lang. it continues to break every time. we maybe need to address this issue to vscode team directly?

zsytssk commented 5 years ago

It still happen on vscode 1.35.0, 版本: 1.35.0 (user setup) 提交: 553cfb2c2205db5f15f3ee8395bbd5cf066d357d 日期: 2019-06-04T01:17:12.481Z Electron: 3.1.8 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Windows_NT x64 6.1.7601

zsytssk commented 4 years ago

It occur more often(less than one minute) in latest vscode, very annoy; Are you still maintain this project ??, this bug make ts almost not useable!!!! 版本: 1.36.1 (user setup) 提交: 2213894ea0415ee8c85c5eea0d0ff81ecc191529 日期: 2019-07-08T22:59:35.033Z Electron: 4.2.5 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS: Windows_NT x64 10.0.17763

"tslint": "^5.18.0" "typescript": "^3.5.3",

zsytssk commented 4 years ago

maybe this is vscode bug, can someone link this bug to vscode! TIM截图20190726160130

orta commented 4 years ago

It'd be great if we can get a re-production case for these

mjbvz commented 1 year ago

Closing as TSLint has been deprecated in favor of ESLint and this extension is no longer being maintained

Please look into migrating to use ESLint and the ESLint VS Code extension