List::getLast default method reference on Java is being suggested to longer lambda/arrow function form
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Type: Bug
Constantly suggesting to change from `List::getLast` which is a default method implementation,
To a longer lambda form `list -> list.get(list.size() - 1)` that basically doesn't brings any improvement!
VS Code version: Code 1.129.0 (Universal) (125df4672b8a6a34975303c6b0baa124e560a4f7, 2026-07-15T00:08:44Z)
OS version: Darwin arm64 25.5.0
Modes:
System Info
|Item|Value|
|---|---|
|CPUs|Apple M3 Pro (11 x 2400)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M3 Pro, Version 26.5.1 (Build 25F80))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.5.1 *ACTIVE*
Machine model name: Mac
Machine model version: 15.6
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off|
|Load (avg)|2, 3, 3|
|Memory (System)|18.00GB (0.90GB free)|
|Process Argv|--crash-reporter-id e7876d3c-d03a-4669-9fe5-6d5a9a7d6527|
|Screen Reader|no|
|VM|0%|
Extensions (45)
Name|Identifier|Author|Version
---|---|---|---
Azurite|azurite.azurite|Azurite|3.36.0
Django|batisteo.vscode-django|batisteo|1.15.0
ERD Editor|dineug.vuerd-vscode|dineug|2.1.0
Docker DX|docker.docker|docker|0.18.0
Python Extension Pack|donjayamanne.python-extension-pack|donjayamanne|1.7.0
ES7+ React/Redux/React-Native snippets|dsznajder.es7-react-js-snippets|dsznajder|4.4.3
HTML CSS Support|ecmel.vscode-html-css|ecmel|2.0.14
GitHub Actions|github.vscode-github-actions|github|0.32.3
HashiCorp Terraform|hashicorp.terraform|hashicorp|2.39.4
Draw.io Integration|hediet.vscode-drawio|hediet|1.9.0
Executable on Save|jimeh.executable-on-save|jimeh|0.2.5
IntelliJ IDEA Keybindings|k--kato.intellij-idea-keybindings|k--kato|1.7.7
Python Indent|kevinrose.vsc-python-indent|KevinRose|1.21.0
Rainbow CSV|mechatroner.rainbow-csv|mechatroner|3.24.1
Azure Load Testing|ms-azure-load-testing.microsoft-testing|ms-azure-load-testing|0.2.0
Azure Developer CLI|ms-azuretools.azure-dev|ms-azuretools|0.10.0
GitHub Copilot for Azure|ms-azuretools.vscode-azure-github-copilot|ms-azuretools|1.0.209
Azure MCP Server|ms-azuretools.vscode-azure-mcp-server|ms-azuretools|2.0.46
Azure App Service|ms-azuretools.vscode-azureappservice|ms-azuretools|0.27.0
Azure Container Apps|ms-azuretools.vscode-azurecontainerapps|ms-azuretools|0.11.2
Azure Functions|ms-azuretools.vscode-azurefunctions|ms-azuretools|1.22.0
Azure Resources|ms-azuretools.vscode-azureresourcegroups|ms-azuretools|0.12.7
Azure Static Web Apps|ms-azuretools.vscode-azurestaticwebapps|ms-azuretools|0.13.3
Azure Storage|ms-azuretools.vscode-azurestorage|ms-azuretools|0.17.2
Azure Virtual Machines|ms-azuretools.vscode-azurevirtualmachines|ms-azuretools|0.6.11
Container Tools|ms-azuretools.vscode-containers|ms-azuretools|2.4.5
Azure Cosmos DB|ms-azuretools.vscode-cosmosdb|ms-azuretools|0.34.0
Docker|ms-azuretools.vscode-docker|ms-azuretools|2.0.0
Python Debugger|ms-python.debugpy|ms-python|2026.6.0
Python|ms-python.python|ms-python|2026.4.0
Pylance|ms-python.vscode-pylance|ms-python|2026.2.1
Python Environments|ms-python.vscode-python-envs|ms-python|1.36.0
Dev Containers|ms-vscode-remote.remote-containers|ms-vscode-remote|0.466.0
Azure CLI Tools|ms-vscode.azurecli|ms-vscode|0.6.0
Makefile Tools|ms-vscode.makefile-tools|ms-vscode|0.12.17
Azure Tools|ms-vscode.vscode-node-azure-pack|ms-vscode|1.8.2
Live Share|ms-vsliveshare.vsliveshare|ms-vsliveshare|1.1.122
autoDocstring - Python Docstring Generator|njpwerner.autodocstring|njpwerner|0.6.1
Codex – OpenAI’s coding agent|openai.chatgpt|openai|26.707.91948
Java|oracle.oracle-java|Oracle|26.0.0
Material Icon Theme|pkief.material-icon-theme|PKief|5.36.1
Shebang Snippets|rpinski.shebang-snippets|rpinski|1.1.0
Even Better TOML|tamasfe.even-better-toml|tamasfe|0.21.2
Vue (Official)|vue.volar|Vue|3.3.7
Jinja|wholroyd.jinja|wholroyd|0.0.8
A/B Experiments
```
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsactivate1:31551504
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cp_cls_t_966_ss:31526232
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31490510
38bie571_auto:31478677
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
test_control1:31471004
46204921:31447328
capico_a_098a3278:31551523
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
h08i8180_copy:31475368
ddid_c:31478207
hmra_i5g22:31518061
ie3bb177:31543534
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
852d2892:31506239
56dj4588:31512888
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
f9bf7985:31543584
jh5f2457_c:31540921
api_cot_ctrl:31513533
g4a0e106:31529594
8hfba999:31537718
prpt_ctrl:31518467
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
jf4hg949:31526829
nes-curr-leftover-1500:31538366
h561g132:31533256
sessions_3:31532893
ihg5j128:31534457
f412h606:31551416
7g2b5551:31542111
sandbox-ui-on-2:31543161
7642ad28:31551796
fd5dc207:31551400
```
Contributor guide
Assessment
This issue has not been assessed yet.