дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 03:05:40 +02:00
feat(window): graphql window (#1166)
Adds a GraphQL tool window: schema discovery from graphql-config files (or every GraphQL file without one), schema errors and endpoints, running the operation at the caret against a configured endpoint with ${NAME} environment variables, Query Result, and introspection into the schema file. The editor gets a GraphQL toolbar with endpoint selection, variables and run.
The tool window is listed on the stripe once used, so projects without GraphQL get no extra button.
Closes #1168
Co-authored-by: kidp2h <[email protected]>
Цей коміт міститься в:
1 джерело
8687f6b1e3
коміт
3d7768f47f
24 files changed
+3187
-2
No files matched your search
@@ -346,6 +346,7 @@ export const intellijMacos: Record<string, string[]> = {
|
||||
"markdown.previewOnly": [],
|
||||
// HTTP Client / Database console: run the request or statement at the caret.
|
||||
"http.runRequest": ["Meta+Enter"],
|
||||
"graphql.runQuery": ["Meta+Enter"],
|
||||
"http.runAll": [],
|
||||
"db.execute": ["Meta+Enter"],
|
||||
"db.showToolWindow": [],
|
||||
|
||||
@@ -344,6 +344,7 @@ export const intellijWindows: Record<string, string[]> = {
|
||||
"markdown.previewOnly": [],
|
||||
// HTTP Client / Database console: run the request or statement at the caret.
|
||||
"http.runRequest": ["Ctrl+Enter"],
|
||||
"graphql.runQuery": ["Ctrl+Enter"],
|
||||
"http.runAll": [],
|
||||
"db.execute": ["Ctrl+Enter"],
|
||||
"db.showToolWindow": [],
|
||||
|
||||
@@ -339,6 +339,7 @@ export const vscodeMacos: Record<string, string[]> = {
|
||||
"diff.jumpToSource": [],
|
||||
// HTTP Client / Database console: run the request or statement at the caret.
|
||||
"http.runRequest": ["Meta+Enter"],
|
||||
"graphql.runQuery": ["Meta+Enter"],
|
||||
"http.runAll": [],
|
||||
"db.execute": ["Meta+Enter"],
|
||||
"db.showToolWindow": [],
|
||||
|
||||
@@ -74,7 +74,7 @@ function actionTitles(): Map<string, string> {
|
||||
|
||||
const titles = actionTitles();
|
||||
/** Product names shown as they are in every language. */
|
||||
const PROPER_NAMES = new Set(["Vim"]);
|
||||
const PROPER_NAMES = new Set(["GraphQL", "Vim"]);
|
||||
|
||||
it("has a Chinese entry for every literal action title, including action factory arguments", () => {
|
||||
// Ensure the helper-argument regression cannot disappear through a scanner change.
|
||||
|
||||
@@ -5856,6 +5856,63 @@
|
||||
"Copy {addr}": "复制 {addr}",
|
||||
"Stop Forwarding Port {remotePort}": "停止转发端口 {remotePort}",
|
||||
"Ports": "端口",
|
||||
"GraphQL views": "GraphQL 视图",
|
||||
"Schemas and Project Structure": "架构和项目结构",
|
||||
"Query Result": "查询结果",
|
||||
"Default project-wide schema": "默认项目范围架构",
|
||||
"the configuration is code and is not evaluated": "配置为代码,不会被求值",
|
||||
"schema is empty": "架构为空",
|
||||
"Schema discovery summary": "架构发现摘要",
|
||||
"Schema errors": "架构错误",
|
||||
"No errors found": "未发现错误",
|
||||
"Endpoints": "端点",
|
||||
"No endpoints available in this schema": "此架构中没有可用的端点",
|
||||
"No endpoints available in the default schema": "默认架构中没有可用的端点",
|
||||
"GraphQL actions": "GraphQL 操作",
|
||||
"Discovering GraphQL schemas": "正在发现 GraphQL 架构",
|
||||
"GraphQL schemas": "GraphQL 架构",
|
||||
"Running GraphQL query": "正在运行 GraphQL 查询",
|
||||
"No query results": "没有查询结果",
|
||||
"Add Schema Configuration": "添加架构配置",
|
||||
"Open the project's graphql-config, creating graphql.config.yml when there is none": "打开项目的 graphql-config,没有时创建 graphql.config.yml",
|
||||
"Restart Schema Discovery": "重新发现架构",
|
||||
"Find the project's GraphQL schemas and configurations again": "重新查找项目的 GraphQL 架构和配置",
|
||||
"GraphQL schema discovery failed": "GraphQL 架构发现失败",
|
||||
"Cannot create the GraphQL configuration": "无法创建 GraphQL 配置",
|
||||
"No GraphQL endpoint": "没有 GraphQL 端点",
|
||||
"Declare one under extensions.endpoints in graphql.config.yml.": "请在 graphql.config.yml 的 extensions.endpoints 下声明端点。",
|
||||
"The field type '{name}' is not present when resolving type '{owner}'": "解析类型 '{owner}' 时,字段类型 '{name}' 不存在",
|
||||
"GraphQL editor actions": "GraphQL 编辑器操作",
|
||||
"Open Configuration File": "打开配置文件",
|
||||
"Toggle Variables Editor": "切换变量编辑器",
|
||||
"GraphQL endpoint": "GraphQL 端点",
|
||||
"No endpoints": "没有端点",
|
||||
"Execute GraphQL": "执行 GraphQL",
|
||||
"Rerun Introspection Query": "重新运行内省查询",
|
||||
"Open Introspection Schema": "打开内省架构",
|
||||
"GraphQL variables": "GraphQL 变量",
|
||||
"{types} types, {inputs} inputs, {enums} enums, {directives} directives": "{types} 个类型,{inputs} 个输入,{enums} 个枚举,{directives} 个指令",
|
||||
"Run a query with Execute GraphQL in the toolbar of a GraphQL file.": "在 GraphQL 文件的工具栏中使用“执行 GraphQL”运行查询。",
|
||||
"Query result": "查询结果",
|
||||
"Opens the GraphQL config file for the current file's schema": "打开当前文件所属架构的 GraphQL 配置文件",
|
||||
"Reruns the latest introspection query to update the local schema file": "重新运行最近的内省查询以更新本地架构文件",
|
||||
"Executes the current GraphQL file against the specified GraphQL endpoint": "针对指定的 GraphQL 端点执行当前 GraphQL 文件",
|
||||
"Invalid GraphQL variables": "无效的 GraphQL 变量",
|
||||
"Get GraphQL Schema from Endpoint": "从端点获取 GraphQL 架构",
|
||||
"Replace the contents of {target} with the schema of {name}?": "要用 {name} 的架构替换 {target} 的内容吗?",
|
||||
"Cannot write the GraphQL schema": "无法写入 GraphQL 架构",
|
||||
"{target} did not open in an editor": "{target} 未能在编辑器中打开",
|
||||
"GraphQL schema updated": "GraphQL 架构已更新",
|
||||
"No introspection schema yet": "尚无内省架构",
|
||||
"Run Introspection Query on an endpoint to generate it.": "对端点运行内省查询以生成它。",
|
||||
", 1 error": ",1 个错误",
|
||||
", {count} errors": ",{count} 个错误",
|
||||
"GraphQL Environment Variables": "GraphQL 环境变量",
|
||||
"Environment variables actions": "环境变量操作",
|
||||
"{file}: {ms} ms execution time, {size} response": "{file}: 执行时间 {ms} 毫秒,响应 {size}",
|
||||
"GraphQL error": "GraphQL 错误",
|
||||
"GraphQL request to {url} failed.": "对 {url} 的 GraphQL 请求失败。",
|
||||
"Show error": "显示错误",
|
||||
"Run to Cursor failed": "运行到光标处失败",
|
||||
"Cannot start debugging": "无法开始调试",
|
||||
"Cannot attach the debugger": "无法附加调试器",
|
||||
|
||||
@@ -139,6 +139,7 @@ const UNTRANSLATED = new Set<string>([
|
||||
"Go",
|
||||
"Godot",
|
||||
"Gradle",
|
||||
"GraphQL",
|
||||
"Greenplum",
|
||||
"Java",
|
||||
"java-debug (Java)",
|
||||
|
||||
Reference in new issue
Заблокувати користувача