Return argument not colored properly if multiline
PythonCoderAS opened this issue · 2 comments
PythonCoderAS commented
Type: Bug
When putting this into a TypeScript file:
type MyType<T> = { func: T };
function AFunction<T>(arg: T): MyType<T> {
return { func: arg };
}
const x = AFunction<(arg: string) => unknown>(() => {});
const y = AFunction<
(arg: string) => unknown
>(() => {});
The first unknown is colored but the second unknown is not for some reason.
VS Code version: Code 1.84.2 (1a5daa3, 2023-11-09T10:52:57.054Z)
OS version: Darwin arm64 22.6.0
Modes:
System Info
Item | Value |
---|---|
CPUs | Apple M1 (8 x 24) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on 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 video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled |
Load (avg) | 5, 5, 6 |
Memory (System) | 8.00GB (0.13GB free) |
Process Argv | --crash-reporter-id 2b0708f4-d206-4f56-bb5c-21ca647cc418 |
Screen Reader | no |
VM | 0% |
Extensions (38)
Extension | Author (truncated) | Version |
---|---|---|
vscode-sqlite | ale | 0.14.1 |
vscode-intelephense-client | bme | 1.10.1 |
doxdocgen | csc | 1.4.0 |
vscode-eslint | dba | 2.4.2 |
python-environment-manager | don | 1.2.4 |
gitlens | eam | 14.5.2 |
EditorConfig | Edi | 0.16.4 |
prettier-vscode | esb | 10.1.0 |
copilot | Git | 1.139.0 |
copilot-chat | Git | 0.10.2 |
vscode-github-actions | git | 0.26.2 |
gc-excelviewer | Gra | 4.2.58 |
discord-vscode | icr | 5.8.0 |
latex-workshop | Jam | 9.15.0 |
better-cpp-syntax | jef | 1.17.2 |
mips | kda | 0.1.1 |
rainbow-csv | mec | 3.9.0 |
vscode-apache | mrm | 1.2.0 |
vscode-docker | ms- | 1.28.0 |
python | ms- | 2023.20.0 |
vscode-pylance | ms- | 2023.11.10 |
jupyter | ms- | 2023.10.1100000000 |
jupyter-keymap | ms- | 1.1.2 |
jupyter-renderers | ms- | 1.0.17 |
vscode-jupyter-cell-tags | ms- | 0.1.8 |
vscode-jupyter-slideshow | ms- | 0.1.5 |
remote-containers | ms- | 0.321.0 |
remote-ssh | ms- | 0.107.1 |
remote-ssh-edit | ms- | 0.86.0 |
cpptools | ms- | 1.18.5 |
cpptools-extension-pack | ms- | 1.3.0 |
hexeditor | ms- | 1.9.12 |
makefile-tools | ms- | 0.7.0 |
remote-explorer | ms- | 0.4.1 |
vscode-github-issue-notebooks | ms- | 0.0.130 |
vsliveshare | ms- | 1.0.5896 |
veriloghdl | msh | 1.13.0 |
autodocstring | njp | 0.6.1 |
(1 theme extensions excluded)
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30899288
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
3biah626:30602489
f6dab269:30613381
a9j8j154:30646983
showlangstatbar:30737416
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
welcomedialogc:30910334
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30902429
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
aa_t_chat:30882232
dsvsc019cf:30909685
PythonCoderAS commented