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

Allow language tests to be used by other Language extensions

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

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
typescript
领域
testing

调研方向

首先检查 PR #713 以及现有的快照测试和构建辅助工具。确定如何将快照基线和测试辅助工具拆分为一个可供其他语言扩展导入的包,同时让 TypeScript 测试套件继续覆盖当前和未来的 TypeScript 使用场景。

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

描述

Infrastructure Suggestion

TS and JS Grammar Extension version: 0.0.49 / latest

As a VSCode Programming Language Extension creator I want to test my tmLanguage file using the TypeScript-TmLanguage test suite to ensure my extension supports all future and current TS language use-cases.

I've been building an extension that provides language support for jest spec.tsx/spec.ts files. Since I'm extending from TypeScript-TmLanguage, I'd like to use the snapshot tests in this repo to ensure any TypeScript use-cases are covered.

I made a PR, #713 , to lay the groundwork for that by abstracting the snapshot building process into a class that you can pass general configurations to.

It'd be nice if the testing build helpers and snapshot baselines lived in its own package and could be imported, however not sure the implications of that for ya'll...

Any thoughts?

主要语言
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 摘要。