Init csdn workflow
Signed-off-by: lish <lish@csdn.net>
Showing
{ | ||
"name": "gitlab-workflow", | ||
"displayName": "GitLab Workflow", | ||
"description": "GitLab VSCode integration", | ||
"version": "3.25.0", | ||
"publisher": "GitLab", | ||
"name": "csdn-workflow", | ||
"displayName": "CSDN 工作流", | ||
"description": "CSDN CodeChina VSCode integration", | ||
"version": "1.0.0", | ||
"publisher": "CSDN", | ||
"email": "code@csdn.net", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://gitlab.com/gitlab-org/gitlab-vscode-extension" | ||
"url": "https://codechina.csdn.net/codechina_dev/csdn-workflow.git" | ||
}, | ||
"engines": { | ||
"vscode": "^1.52.0" | ||
... | ... | @@ -17,23 +18,23 @@ |
], | ||
"keywords": [ | ||
"git", | ||
"gitlab", | ||
"csdn", | ||
"merge request", | ||
"pipeline", | ||
"ci cd" | ||
"snippet", | ||
"codechina" | ||
], | ||
"capabilities": { | ||
"virtualWorkspaces": { | ||
"supported": false, | ||
"description": "GitLab Workflow doesn't support remote GitLab workspaces yet, please see https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/issues/411 for more information." | ||
"description": "CSDN Workflow doesn't support remote GitLab workspaces yet, please see https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/issues/411 for more information." | ||
} | ||
}, | ||
"activationEvents": [ | ||
"*" | ||
], | ||
"bugs": { | ||
"url": "https://gitlab.com/gitlab-org/gitlab-vscode-extension/issues", | ||
"email": "incoming+gitlab-org-gitlab-vscode-extension-5261717-issue-@incoming.gitlab.com" | ||
"url": "https://codechina.csdn.net/codechina_dev/csdn-workflow/-/issues", | ||
"email": "lish@csdn.net" | ||
}, | ||
"galleryBanner": { | ||
"color": "#805DE7", | ||
... | ... | @@ -44,313 +45,389 @@ |
"contributes": { | ||
"commands": [ | ||
{ | ||
"command": "gl.setToken", | ||
"title": "GitLab: Set GitLab Personal Access Token" | ||
"command": "csdn.setToken", | ||
"title": "CSDN: 设置你的个人访问令牌" | ||
}, | ||
{ | ||
"command": "gl.removeToken", | ||
"title": "GitLab: Remove your GitLab Personal Access Token" | ||
"command": "csdn.openWebview", | ||
"title": "CSDN: 访问代码片" | ||
}, | ||
{ | ||
"command": "gl.showIssuesAssignedToMe", | ||
"title": "GitLab: Show issues assigned to me" | ||
"command": "csdn.jsonFormat", | ||
"title": "CSDN: json 格式化" | ||
}, | ||
{ | ||
"command": "gl.showMergeRequestsAssignedToMe", | ||
"title": "GitLab: Show merge requests assigned to me" | ||
"command": "csdn.httpRequest", | ||
"title": "CSDN: 模拟 HTTP 请求" | ||
}, | ||
{ | ||
"command": "gl.openActiveFile", | ||
"title": "GitLab: Open active file on GitLab" | ||
"command": "csdn.doHttpRequest", | ||
"title": "CSDN: 执行 HTTP 请求" | ||
}, | ||
{ | ||
"command": "gl.copyLinkToActiveFile", | ||
"title": "GitLab: Copy link to active file on GitLab" | ||
"command": "csdn.removeToken", | ||
"title": "CSDN: 移除你的个人访问令牌" | ||
}, | ||
{ | ||
"command": "gl.openCurrentMergeRequest", | ||
"title": "GitLab: Open merge request for current branch" | ||
"command": "csdn.showIssuesAssignedToMe", | ||
"title": "CSDN: 查看分配给我的 Issues" | ||
}, | ||
{ | ||
"command": "gl.openCreateNewIssue", | ||
"title": "GitLab: Create new issue on current project" | ||
"command": "csdn.showMergeRequestsAssignedToMe", | ||
"title": "CSDN: 查看分配给我的合并请求" | ||
}, | ||
{ | ||
"command": "gl.openCreateNewMR", | ||
"title": "GitLab: Create new merge request on current project" | ||
"command": "csdn.openActiveFile", | ||
"title": "CSDN: 在 CODE CHINA 上打开当前文件" | ||
}, | ||
{ | ||
"command": "gl.openProjectPage", | ||
"title": "GitLab: Open current project on GitLab" | ||
"command": "csdn.copyLinkToActiveFile", | ||
"title": "CSDN: 复制当前文件的 CODE CHINA 链接" | ||
}, | ||
{ | ||
"command": "gl.createSnippetPatch", | ||
"title": "GitLab: Create snippet patch" | ||
"command": "csdn.openCurrentMergeRequest", | ||
"title": "CSDN: 查看当前的合并请求" | ||
}, | ||
{ | ||
"command": "gl.openCurrentPipeline", | ||
"title": "GitLab: Open current pipeline on GitLab" | ||
"command": "csdn.openCreateNewIssue", | ||
"title": "CSDN: 新建 Issue" | ||
}, | ||
{ | ||
"command": "gl.pipelineActions", | ||
"title": "GitLab: Pipeline actions - View, Create, Retry or Cancel" | ||
"command": "csdn.openCreateNewMR", | ||
"title": "CSDN: 新建合并请求" | ||
}, | ||
{ | ||
"command": "gl.issueSearch", | ||
"title": "GitLab: Search project issues (Supports filters)" | ||
"command": "csdn.openProjectPage", | ||
"title": "CSDN: 查看项目详情" | ||
}, | ||
{ | ||
"command": "gl.mergeRequestSearch", | ||
"title": "GitLab: Search project merge requests (Supports filters)" | ||
"command": "csdn.createSnippetPatch", | ||
"title": "CSDN: 创建代码补丁" | ||
}, | ||
{ | ||
"command": "gl.projectAdvancedSearch", | ||
"title": "GitLab: Project Advanced Search (Issues, MR's, commits, comments...)" | ||
"command": "csdn.openCurrentPipeline", | ||
"title": "CSDN: 查看当前流水线" | ||
}, | ||
{ | ||
"command": "gl.compareCurrentBranch", | ||
"title": "GitLab: Compare current branch with master" | ||
"command": "csdn.pipelineActions", | ||
"title": "CSDN: 流水线操作" | ||
}, | ||
{ | ||
"command": "gl.createSnippet", | ||
"title": "GitLab: Create snippet" | ||
"command": "csdn.issueSearch", | ||
"title": "CSDN: 查找 Issue" | ||
}, | ||
{ | ||
"command": "gl.insertSnippet", | ||
"title": "GitLab: Insert snippet" | ||
"command": "csdn.mergeRequestSearch", | ||
"title": "CSDN: 查找合并请求" | ||
}, | ||
{ | ||
"command": "gl.validateCIConfig", | ||
"title": "GitLab: Validate GitLab CI config" | ||
"command": "csdn.projectAdvancedSearch", | ||
"title": "CSDN: 项目高级搜索" | ||
}, | ||
{ | ||
"command": "gl.showOutput", | ||
"title": "GitLab: Show extension logs" | ||
"command": "csdn.compareCurrentBranch", | ||
"title": "CSDN: 比较当前分支" | ||
}, | ||
{ | ||
"command": "gl.refreshSidebar", | ||
"title": "GitLab: Refresh sidebar", | ||
"command": "csdn.createSnippet", | ||
"title": "CSDN: 创建项目代码片" | ||
}, | ||
{ | ||
"command": "csdn.insertSnippet", | ||
"title": "CSDN: 插入项目代码片" | ||
}, | ||
{ | ||
"command": "csdn.createNote", | ||
"title": "CSDN: 创建笔记" | ||
}, | ||
{ | ||
"command": "csdn.openNoteDocument", | ||
"title": "CSDN: 新建代码笔记编辑区" | ||
}, | ||
{ | ||
"command": "csdn.validateCIConfig", | ||
"title": "CSDN: 验证 CI 配置" | ||
}, | ||
{ | ||
"command": "csdn.showOutput", | ||
"title": "CSDN: 查看输出" | ||
}, | ||
{ | ||
"command": "csdn.refreshSidebar", | ||
"title": "CSDN: 刷新侧边栏", | ||
"icon": { | ||
"light": "src/assets/images/light/refresh.svg", | ||
"dark": "src/assets/images/dark/refresh.svg" | ||
} | ||
}, | ||
{ | ||
"command": "gl.resolveThread", | ||
"command": "csdn.resolveThread", | ||
"title": "Resolve thread", | ||
"category": "GitLab", | ||
"icon": "$(pass)" | ||
}, | ||
{ | ||
"command": "gl.unresolveThread", | ||
"command": "csdn.unresolveThread", | ||
"title": "Unresolve thread", | ||
"category": "GitLab", | ||
"icon": "$(pass-filled)" | ||
}, | ||
{ | ||
"command": "gl.deleteComment", | ||
"title": "Delete comment", | ||
"command": "csdn.deleteComment", | ||
"title": "删除评论", | ||
"category": "GitLab", | ||
"icon": "$(trash)" | ||
}, | ||
{ | ||
"command": "gl.startEditingComment", | ||
"title": "Edit Comment", | ||
"command": "csdn.startEditingComment", | ||
"title": "开始编辑评论", | ||
"category": "GitLab", | ||
"icon": "$(edit)" | ||
}, | ||
{ | ||
"command": "gl.cancelEditingComment", | ||
"title": "Cancel", | ||
"command": "csdn.cancelEditingComment", | ||
"title": "取消编辑", | ||
"category": "GitLab" | ||
}, | ||
{ | ||
"command": "gl.submitCommentEdit", | ||
"title": "Save comment", | ||
"command": "csdn.submitCommentEdit", | ||
"title": "提交评论修改", | ||
"category": "GitLab" | ||
}, | ||
{ | ||
"command": "gl.createComment", | ||
"title": "Add comment now", | ||
"command": "csdn.createComment", | ||
"title": "提交评论", | ||
"category": "GitLab" | ||
}, | ||
{ | ||
"command": "gl.checkoutMrBranch", | ||
"title": "Checkout MR branch" | ||
"command": "csdn.checkoutMrBranch", | ||
"title": "检出主分支" | ||
}, | ||
{ | ||
"command": "gl.cloneWiki", | ||
"title": "Clone Wiki", | ||
"command": "csdn.cloneWiki", | ||
"title": "克隆 wiki", | ||
"category": "GitLab" | ||
}, | ||
{ | ||
"command": "csdn.openSnippet", | ||
"title": "打开代码片" | ||
}, | ||
{ | ||
"command": "csdn.openProjectSnippet", | ||
"title": "打开项目代码片" | ||
}, | ||
{ | ||
"command": "csdn.utilities", | ||
"title": "实用工具" | ||
} | ||
], | ||
"keybindings": [ | ||
{ | ||
"command": "csdn.createNote", | ||
"key": "shift+alt+j", | ||
"mac": "shift+alt+j" | ||
}, | ||
{ | ||
"command": "csdn.jsonFormat", | ||
"key": "shift+alt+d", | ||
"mac": "shift+alt+d" | ||
}, | ||
{ | ||
"command": "csdn.doHttpRequest", | ||
"key": "shift+alt+r", | ||
"mac": "shift+alt+r" | ||
}, | ||
{ | ||
"command": "csdn.openActiveFile", | ||
"key": "shift+alt+o", | ||
"mac": "shift+alt+o" | ||
} | ||
], | ||
"menus": { | ||
"editor/context": [ | ||
{ | ||
"command": "csdn.createNote", | ||
"group": "inline@1" | ||
} | ||
], | ||
"commandPalette": [ | ||
{ | ||
"command": "gl.resolveThread", | ||
"when": "false" | ||
"command": "csdn.resolveThread", | ||
"when": "true" | ||
}, | ||
{ | ||
"command": "gl.unresolveThread", | ||
"when": "false" | ||
"command": "csdn.unresolveThread", | ||
"when": "true" | ||
}, | ||
{ | ||
"command": "gl.deleteComment", | ||
"when": "false" | ||
"command": "csdn.deleteComment", | ||
"when": "true" | ||
}, | ||
{ | ||
"command": "gl.startEditingComment", | ||
"when": "false" | ||
"command": "csdn.startEditingComment", | ||
"when": "true" | ||
}, | ||
{ | ||
"command": "gl.cancelEditingComment", | ||
"when": "false" | ||
"command": "csdn.cancelEditingComment", | ||
"when": "true" | ||
}, | ||
{ | ||
"command": "gl.submitCommentEdit", | ||
"when": "false" | ||
"command": "csdn.submitCommentEdit", | ||
"when": "true" | ||
}, | ||
{ | ||
"command": "gl.createComment", | ||
"when": "false" | ||
"command": "csdn.createComment", | ||
"when": "true" | ||
}, | ||
{ | ||
"command": "gl.checkoutMrBranch", | ||
"when": "false" | ||
"command": "csdn.checkoutMrBranch", | ||
"when": "true" | ||
}, | ||
{ | ||
"command": "gl.showIssuesAssignedToMe", | ||
"command": "csdn.showIssuesAssignedToMe", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.showMergeRequestsAssignedToMe", | ||
"command": "csdn.showMergeRequestsAssignedToMe", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.openActiveFile", | ||
"command": "csdn.openActiveFile", | ||
"when": "gitlab:validState && editorIsOpen" | ||
}, | ||
{ | ||
"command": "gl.copyLinkToActiveFile", | ||
"command": "csdn.copyLinkToActiveFile", | ||
"when": "gitlab:validState && editorIsOpen" | ||
}, | ||
{ | ||
"command": "gl.openCurrentMergeRequest", | ||
"command": "csdn.openCurrentMergeRequest", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.openCreateNewIssue", | ||
"command": "csdn.openCreateNewIssue", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.openCreateNewMR", | ||
"command": "csdn.openCreateNewMR", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.openProjectPage", | ||
"command": "csdn.openProjectPage", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.openCurrentPipeline", | ||
"command": "csdn.openCurrentPipeline", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.pipelineActions", | ||
"command": "csdn.pipelineActions", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.issueSearch", | ||
"command": "csdn.issueSearch", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.mergeRequestSearch", | ||
"command": "csdn.mergeRequestSearch", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.projectAdvancedSearch", | ||
"command": "csdn.projectAdvancedSearch", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.compareCurrentBranch", | ||
"command": "csdn.compareCurrentBranch", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.createSnippet", | ||
"command": "csdn.createSnippet", | ||
"when": "gitlab:validState && editorIsOpen" | ||
}, | ||
{ | ||
"command": "gl.insertSnippet", | ||
"command": "csdn.insertSnippet", | ||
"when": "gitlab:validState && editorIsOpen" | ||
}, | ||
{ | ||
"command": "gl.validateCIConfig", | ||
"command": "csdn.validateCIConfig", | ||
"when": "gitlab:validState && editorIsOpen" | ||
}, | ||
{ | ||
"command": "gl.refreshSidebar", | ||
"command": "csdn.refreshSidebar", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "gl.cloneWiki", | ||
"command": "csdn.cloneWiki", | ||
"when": "!gitlab:noToken" | ||
}, | ||
{ | ||
"command": "gl.createSnippetPatch", | ||
"command": "csdn.createSnippetPatch", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "csdn.openSnippet", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "csdn.openProjectSnippet", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"command": "csdn.utilities", | ||
"when": "gitlab:validState" | ||
} | ||
], | ||
"view/title": [ | ||
{ | ||
"command": "gl.refreshSidebar", | ||
"when": "view =~ /(currentBranchInfo|issuesAndMrs)/", | ||
"command": "csdn.refreshSidebar", | ||
"when": "view =~ /(currentBranchInfo|issuesAndMrs|snippetNotes|utilityTools)/", | ||
"group": "navigation" | ||
} | ||
], | ||
"view/item/context": [ | ||
{ | ||
"command": "gl.checkoutMrBranch", | ||
"command": "csdn.checkoutMrBranch", | ||
"when": "view =~ /issuesAndMrs/ && viewItem == mr-item-from-same-project" | ||
} | ||
], | ||
"comments/comment/title": [ | ||
{ | ||
"command": "gl.startEditingComment", | ||
"command": "csdn.startEditingComment", | ||
"group": "inline@1", | ||
"when": "commentController =~ /^gitlab-mr-/ && comment =~ /canAdmin/" | ||
}, | ||
{ | ||
"command": "gl.deleteComment", | ||
"command": "csdn.deleteComment", | ||
"group": "inline@2", | ||
"when": "commentController =~ /^gitlab-mr-/ && comment =~ /canAdmin/" | ||
} | ||
], | ||
"comments/comment/context": [ | ||
{ | ||
"command": "gl.submitCommentEdit", | ||
"command": "csdn.submitCommentEdit", | ||
"group": "inline@1", | ||
"when": "commentController =~ /^gitlab-mr-/" | ||
}, | ||
{ | ||
"command": "gl.cancelEditingComment", | ||
"command": "csdn.cancelEditingComment", | ||
"group": "inline@2", | ||
"when": "commentController =~ /^gitlab-mr-/" | ||
} | ||
], | ||
"comments/commentThread/title": [ | ||
{ | ||
"command": "gl.resolveThread", | ||
"command": "csdn.resolveThread", | ||
"group": "inline@1", | ||
"when": "commentController =~ /^gitlab-mr-/ && commentThread == unresolved" | ||
}, | ||
{ | ||
"command": "gl.unresolveThread", | ||
"command": "csdn.unresolveThread", | ||
"group": "inline@2", | ||
"when": "commentController =~ /^gitlab-mr-/ && commentThread == resolved" | ||
} | ||
], | ||
"comments/commentThread/context": [ | ||
{ | ||
"command": "gl.createComment", | ||
"command": "csdn.createComment", | ||
"group": "inline", | ||
"when": "commentController =~ /^gitlab-mr-/" | ||
} | ||
... | ... | @@ -360,103 +437,123 @@ |
"activitybar": [ | ||
{ | ||
"id": "gitlab-workflow", | ||
"title": "GitLab Workflow", | ||
"icon": "src/assets/images/light/gitlab-logo.svg" | ||
"title": "CSDN 工作流", | ||
"icon": "src/assets/images/light/c.svg" | ||
} | ||
] | ||
}, | ||
"views": { | ||
"gitlab-workflow": [ | ||
{ | ||
"id": "noticeLogin", | ||
"name": "未登录", | ||
"when": "gitlab:noTokens" | ||
}, | ||
{ | ||
"id": "issuesAndMrs", | ||
"name": "Issues and Merge Requests" | ||
"name": "Issue 与合并请求", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"id": "currentBranchInfo", | ||
"name": "For current branch", | ||
"name": "当前分支信息", | ||
"when": "gitlab:validState" | ||
}, | ||
{ | ||
"id": "snippetNotes", | ||
"name": "代码笔记", | ||
"when": "gitlab:hasAnyToken" | ||
}, | ||
{ | ||
"id": "utilityTools", | ||
"name": "实用工具" | ||
} | ||
] | ||
}, | ||
"viewsWelcome": [ | ||
{ | ||
"view": "issuesAndMrs", | ||
"contents": "Welcome to the GitLab Workflow extension!\nThis extension needs an access token with the 'api' and 'read_user' scopes.\n- GitLab.com users: [create a token on GitLab.com](https://gitlab.com/-/profile/personal_access_tokens).\n- Users on self-managed instances: in GitLab, click your avatar in the top right corner and select 'Preferences.' In the left sidebar, select 'Access Tokens,' then select 'Add a personal access token.'\nAfter you create a token, select 'Set Personal Access Token':\n[Set Personal Access Token](command:gl.setToken)\nTo learn more, read [the setup information](https://gitlab.com/gitlab-org/gitlab-vscode-extension#setup) for this extension.", | ||
"when": "gitlab:noToken" | ||
"view": "noticeLogin", | ||
"contents": "欢迎使用 CSDN workflow 插件!\n本插件的代码管理、ISSUE、MR、CI/CD 等核心功能需要设置一个具备 'api' 和 'read_user' 权限的访问令牌。\n您可以在 codechina.csdn.net 上[创建访问令牌](https://codechina.csdn.net/-/profile/personal_access_tokens),然后复制生成的令牌点击:\n[设置用户访问令牌](command:csdn.setToken)\n如遇到问题,您可以点击 [这里](https://codechina.csdn.net/CoCo_Code_Op2/csdn-workflow/-/issues/new) 进行反馈。", | ||
"when": "gitlab:noTokens" | ||
}, | ||
{ | ||
"view": "issuesAndMrs", | ||
"contents": "No Git repository available. To learn how to fix this, check the Source Control tab.\n[Open Source Control](command:workbench.view.scm)", | ||
"contents": "没有可用的 Git 仓库. 点击版本关系标签了解如何解决此问题.\n[打开版本管理](command:workbench.view.scm)", | ||
"when": "gitlab:noRepository" | ||
}, | ||
{ | ||
"view": "issuesAndMrs", | ||
"contents": "您的代码仓库尚未托管到 CSDN,所以暂时无法使用仓库相关功能.\n点击 [这里](https://codechina.csdn.net/projects/new) 在 CSDN 创建项目,按照引导将代码托管到 CSDN,即可畅快享受丰富的插件服务", | ||
"when": "gitlab:noInstanceRemote" | ||
} | ||
], | ||
"configuration": { | ||
"title": "GitLab Workflow (GitLab VSCode Extension)", | ||
"title": "CSDN Workflow (CSDN VSCode Extension)", | ||
"properties": { | ||
"gitlab.instanceUrl": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"default": null, | ||
"description": "Your GitLab instance URL (default is https://gitlab.com)" | ||
"default": "https://codechina.csdn.net", | ||
"description": "Your CSDN workflow instance URL (default is https://codechina.csdn.net)" | ||
}, | ||
"gitlab.showStatusBarLinks": { | ||
"csdn.showStatusBarLinks": { | ||
"type": "boolean", | ||
"default": true, | ||
"description": "Whether to display all GitLab related link in the status bar (Requires restart of VSCode)" | ||
}, | ||
"gitlab.showIssueLinkOnStatusBar": { | ||
"csdn.showIssueLinkOnStatusBar": { | ||
"type": "boolean", | ||
"default": true, | ||
"description": "Whether to display the GitLab issue link in the status bar" | ||
}, | ||
"gitlab.showMrStatusOnStatusBar": { | ||
"csdn.showMrStatusOnStatusBar": { | ||
"type": "boolean", | ||
"default": true, | ||
"description": "Whether to display the GitLab Merge Request status in the status bar" | ||
}, | ||
"gitlab.ca": { | ||
"csdn.ca": { | ||
"type": "string", | ||
"default": null, | ||
"description": "Custom CA file to use (example: /etc/ssl/certs/ca-certificates.crt)" | ||
}, | ||
"gitlab.cert": { | ||
"csdn.cert": { | ||
"type": "string", | ||
"default": null, | ||
"description": "Custom Certificate file to use (example: /etc/ssl/certs/certificate.crt)" | ||
}, | ||
"gitlab.certKey": { | ||
"csdn.certKey": { | ||
"type": "string", | ||
"default": null, | ||
"description": "Custom Certificate Key file to use (example: /etc/ssl/certs/certificateKey.key)" | ||
}, | ||
"gitlab.ignoreCertificateErrors": { | ||
"csdn.ignoreCertificateErrors": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "Ignore TLS/SSL certificate errors when calling the GitLab API" | ||
}, | ||
"gitlab.remoteName": { | ||
"csdn.remoteName": { | ||
"type": "string", | ||
"default": null, | ||
"description": "Name of the git remote to use in order to locate the Gitlab project" | ||
}, | ||
"gitlab.pipelineGitRemoteName": { | ||
"csdn.pipelineGitRemoteName": { | ||
"type": "string", | ||
"default": null, | ||
"description": "Name of the git remote to use in order to locate the Gitlab project for your pipeline. Keep empty for default" | ||
}, | ||
"gitlab.showPipelineUpdateNotifications": { | ||
"csdn.showPipelineUpdateNotifications": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "Show notification in VSCode when pipeline status changed" | ||
}, | ||
"gitlab.showProjectMergeRequests": { | ||
"csdn.showProjectMergeRequests": { | ||
"type": "boolean", | ||
"default": true, | ||
"description": "Enable the \"All Project Merge Requests\" sidebar pane" | ||
}, | ||
"gitlab.customQueries": { | ||
"csdn.customQueries": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
... | ... | @@ -698,46 +795,108 @@ |
}, | ||
"default": [ | ||
{ | ||
"name": "Issues assigned to me", | ||
"name": "分配给我的 issues", | ||
"type": "issues", | ||
"scope": "assigned_to_me", | ||
"state": "opened", | ||
"noItemText": "There is no issue assigned to you." | ||
"noItemText": "没有分配给我的 issue" | ||
}, | ||
{ | ||
"name": "Issues created by me", | ||
"name": "我创建的 issues", | ||
"type": "issues", | ||
"scope": "created_by_me", | ||
"state": "opened", | ||
"noItemText": "There is no issue created by you." | ||
"noItemText": "没有我创建的 issue" | ||
}, | ||
{ | ||
"name": "Merge requests assigned to me", | ||
"name": "分配给我的合并请求", | ||
"type": "merge_requests", | ||
"scope": "assigned_to_me", | ||
"state": "opened", | ||
"noItemText": "There is no MR assigned to you." | ||
"noItemText": "没有分配给我的合并请求" | ||
}, | ||
{ | ||
"name": "Merge requests I'm reviewing", | ||
"name": "我正在审核的合并请求", | ||
"type": "merge_requests", | ||
"reviewer": "<current_user>", | ||
"state": "opened", | ||
"noItemText": "There is no MR for you to review." | ||
"noItemText": "没有需要我审核的合并请求" | ||
}, | ||
{ | ||
"name": "Merge requests created by me", | ||
"name": "我创建的合并请求", | ||
"type": "merge_requests", | ||
"scope": "created_by_me", | ||
"state": "opened", | ||
"noItemText": "There is no MR created by you." | ||
"noItemText": "没有我创建的合并请求" | ||
}, | ||
{ | ||
"name": "All project merge requests", | ||
"name": "所有合并请求", | ||
"type": "merge_requests", | ||
"scope": "all", | ||
"state": "opened", | ||
"noItemText": "The project has no merge requests" | ||
"noItemText": "没有合并请求" | ||
} | ||
], | ||
"description": "Custom views in the GitLab panel" | ||
}, | ||
"csdn.utilities": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"title": "Custom GitLab Utility Tools", | ||
"required": [ | ||
"name" | ||
] | ||
}, | ||
"default": [ | ||
{ | ||
"name": "JSON 格式化", | ||
"type": "json_format" | ||
}, | ||
{ | ||
"name": "模拟 HTTP 请求", | ||
"type": "execute_request" | ||
} | ||
], | ||
"description": "Custom views in the CSDN panel" | ||
}, | ||
"csdn.executeRequestChildren": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"title": "Custom GitLab Utility Tools Children Item", | ||
"required": [ | ||
"name" | ||
] | ||
}, | ||
"default": [ | ||
{ | ||
"name": "打开请求配置文件", | ||
"type": "config_file" | ||
}, | ||
{ | ||
"name": "执行请求", | ||
"type": "execute_this_request" | ||
} | ||
], | ||
"description": "Custom views in the GitLab panel" | ||
}, | ||
"csdn.executeJsonChildren": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"title": "Custom GitLab Utility Tools Children Item", | ||
"required": [ | ||
"name" | ||
] | ||
}, | ||
"default": [ | ||
{ | ||
"name": "格式化选中的 json 内容", | ||
"type": "json_format" | ||
} | ||
], | ||
"description": "Custom views in the GitLab panel" | ||
... | ... | @@ -766,6 +925,7 @@ |
}, | ||
"devDependencies": { | ||
"@types/jest": "^26.0.20", | ||
"@types/marked": "^2.0.4", | ||
"@types/node": "^13.13.45", | ||
"@types/request-promise": "^4.1.47", | ||
"@types/semver": "^7.3.6", | ||
... | ... | @@ -795,14 +955,18 @@ |
"vscode-test": "^1.5.1" | ||
}, | ||
"dependencies": { | ||
"cheerio": "^1.0.0-rc.10", | ||
"cross-fetch": "^3.0.6", | ||
"dayjs": "^1.10.4", | ||
"graphql": "^15.5.0", | ||
"graphql-request": "^3.4.0", | ||
"highlight.js": "^11.2.0", | ||
"https-proxy-agent": "^5.0.0", | ||
"marked": "^2.1.3", | ||
"request": "^2.88.0", | ||
"request-promise": "^4.2.6", | ||
"semver": "^7.3.5", | ||
"timeago.js": "^4.0.2", | ||
"url": "^0.11.0" | ||
} | ||
} |
src/assets/images/dark/c.svg
0 → 100644
src/assets/images/light/c.svg
0 → 100644
src/assets/styles/marked.css
0 → 100644
src/assets/styles/marked.less
0 → 100644
src/assets/styles/snippet.css
0 → 100644
src/assets/styles/snippet.less
0 → 100644
src/commands/create_note.ts
0 → 100644
src/commands/http_request.ts
0 → 100644
src/commands/json_format.ts
0 → 100644
src/data_providers/utility.ts
0 → 100644
src/gitlab/utility_query.ts
0 → 100644
src/snippet_webview_controller.ts
0 → 100644
src/utility.ts
0 → 100644
src/webview/yarn.lock
0 → 100644
因为 它太大了无法显示 source diff 。你可以改为 查看blob。
想要评论请 注册 或 登录