TSConfig
plugins
在编辑器内运行的语言服务插件列表。
¥List of language service plugins to run inside the editor.
语言服务插件是一种基于现有 TypeScript 文件向用户提供附加信息的方法。它们可以增强 TypeScript 和编辑器之间的现有消息,或提供自己的错误消息。
¥Language service plugins are a way to provide additional information to a user based on existing TypeScript files. They can enhance existing messages between TypeScript and an editor, or to provide their own error messages.
例如:
¥For example:
-
ts-sql-plugin — 使用模板字符串 SQL 构建器添加 SQL linting。
¥ts-sql-plugin — Adds SQL linting with a template strings SQL builder.
-
typescript-styled-plugin — 在模板字符串中提供 CSS linting。
¥typescript-styled-plugin — Provides CSS linting inside template strings .
-
typescript-eslint-language-service — 在编译器的输出中提供 eslint 错误消息和修复。
¥typescript-eslint-language-service — Provides eslint error messaging and fix-its inside the compiler’s output.
-
ts-graphql-plugin — 在 GraphQL 查询模板字符串中提供验证和自动补齐。
¥ts-graphql-plugin — Provides validation and auto-completion inside GraphQL query template strings.
VS Code 具有扩展 自动包含语言服务插件 的功能,因此你可以在编辑器中运行一些扩展,而无需在 tsconfig.json
中定义它们。
¥VS Code has the ability for a extension to automatically include language service plugins, and so you may have some running in your editor without needing to define them in your tsconfig.json
.