You need to sign in or sign up before continuing.
Support multi-root workspaces. Closes #90
Signed-off-by: NMassimeddu Cireddu <massimeddu@gmail.com>
Showing
package-lock.json
已删除
100644 → 0
此差异已折叠。
... | ... | @@ -10,7 +10,7 @@ |
"url": "https://gitlab.com/fatihacet/gitlab-vscode-extension" | ||
}, | ||
"engines": { | ||
"vscode": "^1.19.0" | ||
"vscode": "^1.41.0" | ||
}, | ||
"categories": [ | ||
"Other" | ||
... | ... | @@ -114,7 +114,7 @@ |
"view/title": [ | ||
{ | ||
"command": "gl.refreshSidebar", | ||
"when": "view =~ /(issuesAssignedToMe|issuesCreatedByMe|mrsCreatedByMe|mrsAssignedToMe|allProjectMrs|currentBranchInfo)/", | ||
"when": "view =~ /(currentBranchInfo|issuesAndMrs)/", | ||
"group": "navigation" | ||
} | ||
] | ||
... | ... | @@ -131,25 +131,8 @@ |
"views": { | ||
"gitlab-workflow": [ | ||
{ | ||
"id": "issuesAssignedToMe", | ||
"name": "Issues assigned to me" | ||
}, | ||
{ | ||
"id": "issuesCreatedByMe", | ||
"name": "Issues created by me" | ||
}, | ||
{ | ||
"id": "mrsCreatedByMe", | ||
"name": "Merge Requests created by me" | ||
}, | ||
{ | ||
"id": "mrsAssignedToMe", | ||
"name": "Merge Requests assigned to me" | ||
}, | ||
{ | ||
"id": "allProjectMrs", | ||
"name": "All Project Merge Requests", | ||
"when": "config.gitlab.showProjectMergeRequests" | ||
"id": "issuesAndMrs", | ||
"name": "Issues and Merge Requests" | ||
}, | ||
{ | ||
"id": "currentBranchInfo", | ||
... | ... | @@ -224,36 +207,317 @@ |
"type": "boolean", | ||
"default": false, | ||
"description": "Enable experimental features including showing Issue details in VSCode" | ||
}, | ||
"gitlab.customQueries": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"title": "Custom GitLab Quety", | ||
"required": [ | ||
"name" | ||
], | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The label to show in the GitLab panel" | ||
}, | ||
"maxResults": { | ||
"type": "number", | ||
"description": "The maximum number of results to show", | ||
"default": 20, | ||
"maximum": 100, | ||
"minItems": 1 | ||
}, | ||
"orderBy": { | ||
"type": "string", | ||
"description": "Return issues ordered by the selected value. It is not applicable for vulnerabilities", | ||
"enum": [ | ||
"created_at", | ||
"updated_at", | ||
"priority", | ||
"due_date", | ||
"relative_position", | ||
"label_priority", | ||
"milestone_due", | ||
"popularity", | ||
"weight" | ||
], | ||
"default": "created_at" | ||
}, | ||
"sort": { | ||
"type": "string", | ||
"description": "Return issues sorted in ascending or descending order. It is not applicable for vulnerabilities", | ||
"enum": [ | ||
"asc", | ||
"desc" | ||
], | ||
"default": " desc" | ||
}, | ||
"scope": { | ||
"type": "string", | ||
"description": "Return Gitlab items for the given scope. It is not applicable for epics. \"assigned_to_me\" and \"created_by_me\" are not applicable for vulnerabilities. \"dismissed\" is not applicable for issues and merge requests", | ||
"enum": [ | ||
"assigned_to_me", | ||
"created_by_me", | ||
"dismissed", | ||
"all" | ||
], | ||
"default": "all" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"description": "The type of GitLab items to return. If snippets is selected, none of the other filter will work. Epics will work only on GitLab ultimate/gold.", | ||
"enum": [ | ||
"issues", | ||
"merge_requests", | ||
"epics", | ||
"snippets", | ||
"vulnerabilities" | ||
], | ||
"default": "merge_requests" | ||
}, | ||
"noItemText": { | ||
"type": "string", | ||
"description": "The text to show if the query returns no items", | ||
"default": "No items found." | ||
}, | ||
"state": { | ||
"type": "string", | ||
"description": "Return \"all\" issues or just those that are \"opened\" or \"closed\". It is not applicable for vulnerabilities", | ||
"enum": [ | ||
"all", | ||
"opened", | ||
"closed" | ||
], | ||
"default": "opened" | ||
}, | ||
"labels": { | ||
"type": "array", | ||
"description": "Array of label names, Gitlab item must have all labels to be returned. \"None\" lists all GitLab items with no labels. \"Any\" lists all GitLab issues with at least one label. Predefined names are case-insensitive. It is not applicable for vulnerabilities", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"milestone": { | ||
"type": "string", | ||
"description": "The milestone title. \"None\" lists all GitLab items with no milestone. \"Any\" lists all GitLab items that have an assigned milestone. It is not applicable for epics and vulnerabilities" | ||
}, | ||
"author": { | ||
"type": "string", | ||
"description": "Return GitLab items created by the given username. It is not applicable for vulnerabilities" | ||
}, | ||
"assignee": { | ||
"type": "string", | ||
"description": "Returns GitLab items assigned to the given username. \"None\" returns unassigned GitLab items. \"Any\" returns GitLab items with an assignee. It is not applicable for epics and vulnerabilities" | ||
}, | ||
"search": { | ||
"type": "string", | ||
"description": "Search GitLab items against their title and description. It is not applicable for vulnerabilities" | ||
}, | ||
"searchIn": { | ||
"type": "string", | ||
"description": "Modify the scope of the search attribute. It is not applicable for epics and vulnerabilities", | ||
"enum": [ | ||
"all", | ||
"title", | ||
"description" | ||
], | ||
"default": "all" | ||
}, | ||
"createdAfter": { | ||
"type": "string", | ||
"format": "date", | ||
"description": "Return GitLab items created after the given date. It is not applicable for vulnerabilities" | ||
}, | ||
"createdBefore": { | ||
"type": "string", | ||
"format": "date", | ||
"description": "Return GitLab items created before the given date. It is not applicable for vulnerabilities" | ||
}, | ||
"updatedAfter": { | ||
"type": "string", | ||
"format": "date", | ||
"description": "Return GitLab items updated after the given date. It is not applicable for vulnerabilities" | ||
}, | ||
"updatedBefore": { | ||
"type": "string", | ||
"format": "date", | ||
"description": "Return GitLab items updated before the given date. It is not applicable for vulnerabilities" | ||
}, | ||
"wip": { | ||
"type": "string", | ||
"enum": [ | ||
"yes", | ||
"no" | ||
], | ||
"description": "Filter merge requests against their wip status. \"yes\" to return only WIP merge requests, \"no\" to return non WIP merge requests. Works only with merge requests", | ||
"default": "no" | ||
}, | ||
"confidential": { | ||
"type": "boolean", | ||
"description": "Filter confidential or public issues. Works only with issues", | ||
"default": false | ||
}, | ||
"excludeLabels": { | ||
"type": "array", | ||
"description": "Array of label names, Gitlab item must not have to be returned. Predefined names are case-insensitive. Works only with issues", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"excludeMilestone": { | ||
"type": "string", | ||
"description": "The milestone title to exclude. Works only with issues" | ||
}, | ||
"excludeAuthor": { | ||
"type": "string", | ||
"description": "Return GitLab items not created by the given username. Works only with issues" | ||
}, | ||
"excludeAssignee": { | ||
"type": "string", | ||
"description": "Returns GitLab items not assigned to the given username. Works only with issues" | ||
}, | ||
"excludeSearch": { | ||
"type": "string", | ||
"description": "Search GitLab items that doesn't have the search key in their title or description. Works only with issues" | ||
}, | ||
"excludeSearchIn": { | ||
"type": "string", | ||
"description": "Modify the scope of the excludeSearch attribute. Works only with issues", | ||
"enum": [ | ||
"all", | ||
"title", | ||
"description" | ||
], | ||
"default": "all" | ||
}, | ||
"reportTypes": { | ||
"type": "array", | ||
"description": "Returns vulnerabilities belonging to specified report types. Works only with vulnerabilities", | ||
"items": { | ||
"type": "string", | ||
"enum": [ | ||
"sast", | ||
"dast", | ||
"dependency_scanning", | ||
"container_scanning" | ||
] | ||
} | ||
}, | ||
"severityLevels": { | ||
"type": "array", | ||
"description": "Returns vulnerabilities belonging to specified severity levels. Defaults to all. Works only with vulnerabilities", | ||
"items": { | ||
"type": "string", | ||
"enum": [ | ||
"undefined", | ||
"info", | ||
"unknown", | ||
"low", | ||
"medium", | ||
"high", | ||
"critical" | ||
] | ||
} | ||
}, | ||
"confidenceLevels": { | ||
"type": "array", | ||
"description": "Returns vulnerabilities belonging to specified confidence levels. Defaults to all. Works only with vulnerabilities", | ||
"items": { | ||
"type": "string", | ||
"enum": [ | ||
"undefined", | ||
"ignore", | ||
"unknown", | ||
"experimental", | ||
"low", | ||
"medium", | ||
"high", | ||
"confirmed" | ||
] | ||
} | ||
}, | ||
"pipelineId": { | ||
"type": "string", | ||
"description": "Returns vulnerabilities belonging to specified pipeline. \"branch\" returns vulnerabilities belonging to latest pipeline of the current branch. Works only with vulnerabilities" | ||
} | ||
} | ||
}, | ||
"default": [ | ||
{ | ||
"name": "Issues assigned to me", | ||
"type": "issues", | ||
"scope": "assigned_to_me", | ||
"state": "opened", | ||
"noItemText": "There is no issue assigned to you." | ||
}, | ||
{ | ||
"name": "Issues created by me", | ||
"type": "issues", | ||
"scope": "created_by_me", | ||
"state": "opened", | ||
"noItemText": "There is no issue created by you." | ||
}, | ||
{ | ||
"name": "Merge requests assigned to me", | ||
"type": "merge_requests", | ||
"scope": "assigned_to_me", | ||
"state": "opened", | ||
"noItemText": "There is no MR assigned to you." | ||
}, | ||
{ | ||
"name": "Merge requests created by me", | ||
"type": "merge_requests", | ||
"scope": "created_by_me", | ||
"state": "opened", | ||
"noItemText": "There is no MR created by you." | ||
}, | ||
{ | ||
"name": "All project merge requests", | ||
"type": "merge_requests", | ||
"scope": "all", | ||
"state": "opened", | ||
"noItemText": "The project has no merge requests" | ||
} | ||
], | ||
"description": "Custom views in the GitLab panel" | ||
} | ||
} | ||
} | ||
}, | ||
"scripts": { | ||
"postinstall": "node ./node_modules/vscode/bin/install", | ||
"test": "node ./node_modules/vscode/bin/test", | ||
"eslint": "eslint --max-warnings 0 --ext .js .", | ||
"format": "prettier --write '**/*.{js,json}'", | ||
"publish": "vsce publish", | ||
"webview": "cd src/webview ; yarn build --watch" | ||
"vscode:prepublish": "yarn run compile", | ||
"compile": "node_modules/.bin/tsc -p ./", | ||
"watch": "node_modules/.bin/tsc -watch -p ./", | ||
"test": "node ./out/runTest.js", | ||
"eslint": "node_modules/.bin/eslint --max-warnings 0 --ext .js .", | ||
"format": "node_modules/.bin/prettier --write '**/*.{js,json}'", | ||
"publish": "node_modules/.bin/vsce publish", | ||
"webview": "cd src/webview ; yarn install ; yarn watch" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.12.21", | ||
"rewire": "^4.0.0", | ||
"eslint": "^4.18.1", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
"eslint-config-prettier": "^2.9.0", | ||
"eslint-plugin-import": "^2.9.0", | ||
"eslint-plugin-prettier": "^2.6.0", | ||
"prettier": "^1.11.0", | ||
"typescript": "^3.3.1", | ||
"vscode": "^1.1.26" | ||
"@types/mocha": "^7.0.1", | ||
"@types/node": "^13.7.0", | ||
"@types/vscode": "^1.41.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-config-prettier": "^6.10.0", | ||
"eslint-plugin-import": "^2.20.0", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"mocha": "^7.0.1", | ||
"prettier": "^1.19.1", | ||
"rewire": "^4.0.1", | ||
"typescript": "^3.7.5", | ||
"vsce": "^1.72.0", | ||
"vscode-test": "^1.3.0" | ||
}, | ||
"dependencies": { | ||
"eslint-plugin-vue-libs": "^4.0.0", | ||
"execa": "^1.0.0", | ||
"moment": "^2.24.0", | ||
"request": "^2.88.0", | ||
"request-promise": "^4.2.2", | ||
"request-promise": "^4.2.5", | ||
"url": "^0.11.0" | ||
} | ||
} |
src/assets/images/dark/epics.svg
0 → 100644
src/assets/images/dark/issues.svg
0 → 100644
src/assets/images/dark/stop.svg
0 → 100644
src/assets/images/light/epics.svg
0 → 100644
src/assets/images/light/stop.svg
0 → 100644
src/gitlab_project_input.js
0 → 100644
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
test/extension.test.js
已删除
100644 → 0
此差异已折叠。
test/git_service.test.js
已删除
100644 → 0
此差异已折叠。
test/index.js
已删除
100644 → 0
此差异已折叠。
test/runTest.ts
0 → 100644
此差异已折叠。
test/unit_tests/extension.test.ts
0 → 100644
此差异已折叠。
此差异已折叠。
test/unit_tests/index.ts
0 → 100644
此差异已折叠。
tsconfig.json
0 → 100644
此差异已折叠。
yarn.lock
0 → 100644
此差异已折叠。
想要评论请 注册 或 登录