4 Star 30 Fork 3

老大哥/vscode-ldggist

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
package.json 5.71 KB
一键复制 编辑 原始数据 按行查看 历史
{
"name": "ldggist",
"displayName": "LdgGist",
"publisher": "itldg",
"description": "基于Gitee和GitHub的代码片段管理工具",
"version": "0.0.11",
"icon": "resources/logo.png",
"engines": {
"vscode": "^1.65.0"
},
"categories": [
"Snippets",
"Other"
],
"activationEvents": [
"*",
"onFileSystem:ldggist"
],
"keywords": [
"代码片段",
"git",
"gitee",
"github",
"gists",
"snippets"
],
"repository": {
"type": "git",
"url": "https://github.com/wanglong126/vscode-ldgGist"
},
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "ldgActivitybar",
"title": "%ldgGist.name%",
"icon": "$(code)"
}
]
},
"views": {
"ldgActivitybar": [
{
"id": "gists",
"name": "%ldgGist.gists%"
},
{
"id": "commits",
"name": "%ldgGist.commits%",
"icon": "$(git-commit)",
"visibility": "collapsed",
"when": "ldgGist.tokenType == github"
},
{
"id": "comments",
"name": "%ldgGist.comments%",
"icon": "$(comment-discussion)",
"visibility": "collapsed"
},
{
"id": "publicGists",
"name": "%ldgGist.publicGists%",
"when": "ldgGist.tokenType == github"
}
]
},
"viewsWelcome": [
{
"view": "gists",
"contents": "%ldgGist.gistsEmpty%"
},
{
"view": "commits",
"contents": "%ldgGist.commitsEmpty%"
},
{
"view": "comments",
"contents": "%ldgGist.commentsEmpty%"
},
{
"view": "publicGists",
"contents": "%ldgGist.publicGistsEmpty%"
}
],
"commands": [
{
"command": "ldgGist.login",
"title": "%ldgGist.login%",
"icon": "$(log-in)"
},
{
"command": "ldgGist.selectedGist",
"title": "%ldgGist.selectedGist%"
},
{
"command": "ldgGist.openCode",
"title": "%ldgGist.openCode%",
"icon": "$(pencil)"
},
{
"command": "ldgGist.createFromFile",
"title": "%ldgGist.createFromFile%",
"icon": "$(add)"
},
{
"command": "ldgGist.createFromSelect",
"title": "%ldgGist.createFromSelect%",
"icon": "$(add)"
},
{
"command": "ldgGist.addFromFile",
"title": "%ldgGist.addFromFile%",
"icon": "$(file-add)"
},
{
"command": "ldgGist.addFromSelect",
"title": "%ldgGist.addFromSelect%",
"icon": "$(file-add)"
},
{
"command": "ldgGist.changeDescription",
"title": "%ldgGist.changeDescription%"
},
{
"command": "ldgGist.delete",
"title": "%ldgGist.delete%",
"icon": "$(trash)"
},
{
"command": "ldgGist.renameFile",
"title": "%ldgGist.renameFile%"
},
{
"command": "ldgGist.deleteFile",
"title": "%ldgGist.deleteFile%",
"icon": "$(close)"
},
{
"command": "ldgGist.refreshGists",
"title": "%ldgGist.refreshGists%",
"icon": "$(refresh)"
},
{
"command": "ldgGist.refreshPublicGists",
"title": "%ldgGist.refreshPublicGists%",
"icon": "$(refresh)"
},
{
"command": "ldgGist.createComment",
"title": "%ldgGist.createComment%",
"icon": "$(add)"
},
{
"command": "ldgGist.editComment",
"title": "%ldgGist.editComment%",
"icon": "$(pencil)"
},
{
"command": "ldgGist.deleteComment",
"title": "%ldgGist.deleteComment%",
"icon": "$(close)"
}
],
"menus": {
"editor/context": [
{
"when": "editorHasSelection",
"command": "ldgGist.createFromSelect",
"group": "navigation@2"
},
{
"when": "editorHasSelection",
"command": "ldgGist.addFromSelect",
"group": "navigation@3"
}
],
"explorer/context": [
{
"when": "!explorerResourceIsFolder",
"command": "ldgGist.createFromFile",
"group": "navigation@2"
},
{
"when": "!explorerResourceIsFolder",
"command": "ldgGist.addFromFile",
"group": "navigation@3"
}
],
"view/title": [
{
"command": "ldgGist.login",
"when": "view == gists",
"group": "navigation@0"
},
{
"command": "ldgGist.refreshGists",
"when": "view == gists",
"group": "navigation@1"
},
{
"command": "ldgGist.createComment",
"when": "view == comments",
"group": "navigation@0"
}
],
"view/item/context": [
{
"command": "ldgGist.changeDescription",
"when": "view == gists && viewItem == gist",
"group": "base@1"
},
{
"command": "ldgGist.delete",
"when": "view == gists && viewItem == gist",
"group": "inline"
},
{
"command": "ldgGist.renameFile",
"when": "view == gists && viewItem == gistFile",
"group": "base@1"
},
{
"command": "ldgGist.deleteFile",
"when": "view == gists && viewItem == gistFile",
"group": "inline"
},
{
"command": "ldgGist.editComment",
"when": "view == comments",
"group": "inline"
},
{
"command": "ldgGist.deleteComment",
"when": "view == comments",
"group": "inline"
}
]
}
},
"capabilities": {
"untrustedWorkspaces": {
"supported": true
},
"virtualWorkspaces": true
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/fs-extra": "^9.0.13",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "14.x",
"@types/request": "^2.48.8",
"@types/vscode": "^1.65.0",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"@vscode/test-electron": "^2.1.3",
"eslint": "^8.11.0",
"glob": "^7.2.0",
"mocha": "^9.2.2",
"typescript": "^4.5.5"
},
"dependencies": {
"fs-extra": "^10.0.1",
"request": "^2.88.2"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/itldg/vscode-ldggist.git
git@gitee.com:itldg/vscode-ldggist.git
itldg
vscode-ldggist
vscode-ldggist
main

搜索帮助