1 Star 0 Fork 0

Mr.Joker/vscode-leetcode

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
package.json 26.69 KB
一键复制 编辑 原始数据 按行查看 历史
Sheng Chen 提交于 2020-04-18 18:20 +08:00 . Prepare for 0.16.2 (#541)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
{
"name": "vscode-leetcode",
"displayName": "LeetCode",
"description": "Solve LeetCode problems in VS Code",
"version": "0.16.2",
"author": "Sheng Chen",
"publisher": "shengchen",
"license": "MIT",
"icon": "resources/LeetCode.png",
"engines": {
"vscode": "^1.42.0"
},
"repository": {
"type": "git",
"url": "https://github.com/jdneo/vscode-leetcode"
},
"homepage": "https://github.com/jdneo/vscode-leetcode/blob/master/README.md",
"categories": [
"Other",
"Snippets"
],
"keywords": [
"leetcode",
"algorithm",
"interview"
],
"preview": true,
"activationEvents": [
"onCommand:leetcode.toggleLeetCodeCn",
"onCommand:leetcode.signin",
"onCommand:leetcode.signout",
"onCommand:leetcode.manageSessions",
"onCommand:leetcode.refreshExplorer",
"onCommand:leetcode.pickOne",
"onCommand:leetcode.showProblem",
"onCommand:leetcode.previewProblem",
"onCommand:leetcode.searchProblem",
"onCommand:leetcode.testSolution",
"onCommand:leetcode.submitSolution",
"onCommand:leetcode.switchDefaultLanguage",
"onView:leetCodeExplorer"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "leetcode.deleteCache",
"title": "Delete Cache",
"category": "LeetCode"
},
{
"command": "leetcode.toggleLeetCodeCn",
"title": "Switch Endpoint",
"category": "LeetCode",
"icon": "$(globe)"
},
{
"command": "leetcode.signin",
"title": "Sign In",
"category": "LeetCode",
"icon": "$(sign-in)"
},
{
"command": "leetcode.signout",
"title": "Sign Out",
"category": "LeetCode"
},
{
"command": "leetcode.manageSessions",
"title": "Manage Sessions",
"category": "LeetCode"
},
{
"command": "leetcode.refreshExplorer",
"title": "Refresh",
"category": "LeetCode",
"icon": "$(refresh)"
},
{
"command": "leetcode.pickOne",
"title": "Pick One",
"category": "LeetCode"
},
{
"command": "leetcode.showProblem",
"title": "Show Problem",
"category": "LeetCode"
},
{
"command": "leetcode.previewProblem",
"title": "Preview Problem",
"category": "LeetCode"
},
{
"command": "leetcode.searchProblem",
"title": "Search Problem",
"category": "LeetCode",
"icon": "$(search)"
},
{
"command": "leetcode.showSolution",
"title": "Show Top Voted Solution",
"category": "LeetCode"
},
{
"command": "leetcode.testSolution",
"title": "Test in LeetCode",
"category": "LeetCode"
},
{
"command": "leetcode.submitSolution",
"title": "Submit to LeetCode",
"category": "LeetCode"
},
{
"command": "leetcode.addFavorite",
"title": "Add to Favorite List",
"category": "LeetCode",
"icon": {
"light": "resources/light/like.png",
"dark": "resources/dark/like.png"
}
},
{
"command": "leetcode.removeFavorite",
"title": "Remove from Favorite List",
"category": "LeetCode",
"icon": {
"light": "resources/light/dislike.png",
"dark": "resources/dark/dislike.png"
}
},
{
"command": "leetcode.switchDefaultLanguage",
"title": "Switch Default Language",
"category": "LeetCode"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "leetcode",
"title": "LeetCode",
"icon": "resources/LeetCode.svg"
}
]
},
"views": {
"leetcode": [
{
"id": "leetCodeExplorer",
"name": "Problems"
}
]
},
"menus": {
"view/title": [
{
"command": "leetcode.toggleLeetCodeCn",
"when": "view == leetCodeExplorer",
"group": "navigation@0"
},
{
"command": "leetcode.signin",
"when": "view == leetCodeExplorer",
"group": "navigation@1"
},
{
"command": "leetcode.searchProblem",
"when": "view == leetCodeExplorer",
"group": "navigation@2"
},
{
"command": "leetcode.refreshExplorer",
"when": "view == leetCodeExplorer",
"group": "navigation@3"
},
{
"command": "leetcode.pickOne",
"when": "view == leetCodeExplorer",
"group": "overflow@0"
}
],
"view/item/context": [
{
"command": "leetcode.previewProblem",
"when": "view == leetCodeExplorer && viewItem =~ /problem*/",
"group": "leetcode@1"
},
{
"command": "leetcode.showProblem",
"when": "view == leetCodeExplorer && viewItem =~ /problem*/",
"group": "leetcode@2"
},
{
"command": "leetcode.showSolution",
"when": "view == leetCodeExplorer && viewItem =~ /problem*/",
"group": "leetcode@3"
},
{
"command": "leetcode.addFavorite",
"when": "view == leetCodeExplorer && viewItem == problem",
"group": "inline"
},
{
"command": "leetcode.removeFavorite",
"when": "view == leetCodeExplorer && viewItem == problem-favorite",
"group": "inline"
}
],
"commandPalette": [
{
"command": "leetcode.showProblem",
"when": "never"
},
{
"command": "leetcode.showSolution",
"when": "never"
},
{
"command": "leetcode.previewProblem",
"when": "never"
},
{
"command": "leetcode.addFavorite",
"when": "never"
},
{
"command": "leetcode.removeFavorite",
"when": "never"
}
],
"explorer/context": [
{
"command": "leetcode.testSolution",
"when": "explorerResourceIsFolder == false",
"group": "leetcode@1"
},
{
"command": "leetcode.submitSolution",
"when": "explorerResourceIsFolder == false",
"group": "leetcode@2"
}
],
"editor/context": [
{
"command": "leetcode.testSolution",
"group": "leetcode@1"
},
{
"command": "leetcode.submitSolution",
"group": "leetcode@2"
},
{
"command": "leetcode.showSolution",
"group": "leetcode@3"
},
{
"command": "leetcode.previewProblem",
"group": "leetcode@4"
}
]
},
"configuration": [
{
"title": "LeetCode",
"properties": {
"leetcode.hideSolved": {
"type": "boolean",
"default": false,
"scope": "application",
"description": "Hide solved problems."
},
"leetcode.showLocked": {
"type": "boolean",
"default": false,
"scope": "application",
"description": "Show locked problems."
},
"leetcode.defaultLanguage": {
"type": "string",
"enum": [
"bash",
"c",
"cpp",
"csharp",
"golang",
"java",
"javascript",
"kotlin",
"mysql",
"php",
"python",
"python3",
"ruby",
"rust",
"scala",
"swift"
],
"scope": "application",
"description": "Default language for solving the problems."
},
"leetcode.showDescription": {
"type": "string",
"default": "In Webview",
"enum": [
"In Webview",
"In File Comment",
"Both",
"None"
],
"enumDescriptions": [
"Show the problem description in a new webview window",
"Show the problem description in the file's comment"
],
"scope": "application",
"description": "Specify where to show the description."
},
"leetcode.showCommentDescription": {
"type": "boolean",
"default": false,
"scope": "application",
"description": "[Deprecated] Include problem description in comments.",
"deprecationMessage": "This setting will be deprecated in 0.17.0, please use 'leetcode.showDescription' instead"
},
"leetcode.hint.setDefaultLanguage": {
"type": "boolean",
"default": true,
"scope": "application",
"description": "Show a hint to set the default language."
},
"leetcode.hint.configWebviewMarkdown": {
"type": "boolean",
"default": true,
"scope": "application",
"description": "Show a hint to change webview appearance through markdown config."
},
"leetcode.hint.commentDescription": {
"type": "boolean",
"default": true,
"scope": "application",
"description": "Show a hint to enable comment description in solution code file."
},
"leetcode.hint.commandShortcut": {
"type": "boolean",
"default": true,
"scope": "application",
"description": "Show a hint to configure commands key binding."
},
"leetcode.useWsl": {
"type": "boolean",
"default": false,
"scope": "application",
"description": "Use the Windows Subsystem for Linux."
},
"leetcode.endpoint": {
"type": "string",
"default": "leetcode",
"scope": "application",
"enum": [
"leetcode",
"leetcode-cn"
],
"description": "Endpoint of the user account."
},
"leetcode.workspaceFolder": {
"type": "string",
"scope": "application",
"description": "The path of the workspace folder to store the problem files.",
"default": ""
},
"leetcode.filePath": {
"type": "object",
"scope": "application",
"description": "The output folder and filename to save the problem files.",
"properties": {
"default": {
"type": "object",
"properties": {
"folder": {
"type": "string",
"examples": [
"src"
]
},
"filename": {
"type": "string",
"examples": [
"${camelCaseName}.${ext}",
"${PascalCaseName}.${ext}",
"${id}-${kebab-case-name}.${ext}",
"${id}_${snake_case_name}.${ext}"
]
}
},
"required": [
"folder",
"filename"
]
},
"bash": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"c": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"cpp": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"csharp": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"golang": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"java": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"javascript": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"kotlin": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"mysql": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"php": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"python": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"python3": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"ruby": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"rust": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"scala": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"swift": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
}
},
"additionalProperties": {
"type": "object",
"properties": {
"folder": {
"type": "string"
},
"filename": {
"type": "string"
}
},
"minProperties": 1
},
"default": {
"default": {
"folder": "",
"filename": "${id}.${kebab-case-name}.${ext}"
}
}
},
"leetcode.enableStatusBar": {
"type": "boolean",
"default": true,
"scope": "application",
"description": "Show the LeetCode status bar or not."
},
"leetcode.editor.shortcuts": {
"type": "array",
"default": [
"submit",
"test"
],
"scope": "application",
"items": {
"type": "string",
"enum": [
"submit",
"test",
"solution",
"description"
]
},
"description": "Customize the shorcuts in editors."
},
"leetcode.enableSideMode": {
"type": "boolean",
"default": true,
"scope": "application",
"description": "Determine whether to group all webview pages into the second editor column when solving problems."
},
"leetcode.nodePath": {
"type": "string",
"default": "node",
"scope": "application",
"description": "The Node.js executable path. for example, C:\\Program Files\\nodejs\\node.exe"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "tslint --project tsconfig.json -e src/*.d.ts -t verbose"
},
"devDependencies": {
"@types/fs-extra": "5.0.0",
"@types/highlight.js": "^9.12.3",
"@types/lodash": "^4.14.123",
"@types/markdown-it": "0.0.7",
"@types/mocha": "^2.2.42",
"@types/node": "^7.0.43",
"@types/vscode": "1.42.0",
"@types/require-from-string": "^1.2.0",
"tslint": "^5.9.1",
"typescript": "^2.6.1"
},
"dependencies": {
"fs-extra": "^6.0.1",
"highlight.js": "^9.15.6",
"lodash": "^4.17.13",
"markdown-it": "^8.4.2",
"require-from-string": "^2.0.2",
"unescape-js": "^1.1.1",
"vsc-leetcode-cli": "2.6.23"
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lizhih/vscode-leetcode.git
git@gitee.com:lizhih/vscode-leetcode.git
lizhih
vscode-leetcode
vscode-leetcode
master

搜索帮助