Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Multiple export defaults in Typescript overloading

未关闭
#857 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
typescript
领域
tooling

调研方向

首先,在 VS Code 1.53.2 中使用一个包含多个重载和默认导出的 TypeScript 函数,复现所报告的语法高亮行为,然后检查仓库中的 TypeScript 语法文件。完成的标准是重载声明获得预期的语法高亮,而不是全部被着色为函数。

由索引模型根据 Issue 内容生成。

描述

Issue Type: Bug

I have a function which is overloaded a few times and I exported it as default. When I do this, the first line of export default function Tstring get's it's syntax highlighting properly. Then the next few lines of those all turn yellow (the color of functions)

VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:48:04.245Z)
OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.86GB (1.14GB free)
Process Argv --crash-reporter-id 0c07a3ea-19d3-4b7d-9182-a845b9918a7b
Screen Reader no
VM 0%
Extensions (34)
Extension Author (truncated) Version
ng-template Ang 11.2.2
jar-builder asl 1.1.1
vscode-intelephense-client bme 1.6.3
ng-html dan 1.1.3
githistory don 0.6.14
es7-react-js-snippets dsz 3.1.0
EditorConfig Edi 0.16.4
prettier-vscode esb 5.9.2
php-debug fel 1.14.9
php-intellisense fel 2.3.14
php-pack fel 1.0.2
code-runner for 0.11.2
rest-client hum 0.24.4
discord-vscode icr 5.2.2
python ms- 2021.2.576481509
jupyter ms- 2021.2.576440691
reload nat 0.0.6
vetur oct 0.32.0
laravel-blade one 1.25.0
colorful-comments Par 0.6.0
material-icon-theme PKi 4.5.0
java red 0.75.0
rust rus 0.7.8
swdc-vscode sof 2.4.9
sass-indented syl 1.8.15
tabnine-vscode Tab 3.2.7
vscodeintellicode Vis 1.2.11
vscode-java-debug vsc 0.31.0
vscode-java-dependency vsc 0.18.0
vscode-java-pack vsc 0.12.1
vscode-java-test vsc 0.28.0
vscode-maven vsc 0.27.1
quokka-vscode Wal 1.0.343
vscode-import-cost wix 2.15.0
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry914:30256638
pythonvsdeb440:30248342
pythonvsded773:30248341
vstes627cf:30244335
pythonvspyt875:30251590
pythontb:30258531

主要语言
TypeScript
星标
471
派生
149
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/TypeScript-TmLanguage 的其他 Issue

查看 microsoft/TypeScript-TmLanguage 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。