-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 27d8a50
Showing
31 changed files
with
7,426 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/naming-convention": "warn", | ||
"@typescript-eslint/semi": "warn", | ||
"curly": "warn", | ||
"eqeqeq": "warn", | ||
"no-throw-literal": "warn", | ||
"semi": "off" | ||
}, | ||
"ignorePatterns": [ | ||
"out", | ||
"dist", | ||
"**/*.d.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
out | ||
dist | ||
node_modules | ||
.vscode-test/ | ||
*.vsix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// A launch configuration that compiles the extension and then opens it inside a new window | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
], | ||
"preLaunchTask": "${defaultBuildTask}" | ||
}, | ||
{ | ||
"name": "Extension Tests", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/out/test/**/*.js" | ||
], | ||
"preLaunchTask": "${defaultBuildTask}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"files.exclude": { | ||
"out": false // set this to true to hide the "out" folder with the compiled JS files | ||
}, | ||
"search.exclude": { | ||
"out": true // set this to false to include "out" folder in search results | ||
}, | ||
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts | ||
"typescript.tsc.autoDetect": "off", | ||
"ldgGist.accessToken": "c3b37799402699cbab9c2df7c98ec2eb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "watch", | ||
"problemMatcher": "$tsc-watch", | ||
"isBackground": true, | ||
"presentation": { | ||
"reveal": "never" | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
src/** | ||
.gitignore | ||
.yarnrc | ||
vsc-extension-quickstart.md | ||
**/tsconfig.json | ||
**/.eslintrc.json | ||
**/*.map | ||
**/*.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[comment]: <> (语义化版本 2.0.0 https://semver.org/lang/zh-CN/) | ||
[comment]: <> (如何维护更新日志 https://keepachangelog.com/zh-CN/1.0.0/) | ||
|
||
[comment]: <> (Added 新添加的功能。) | ||
[comment]: <> (Changed 对现有功能的变更。) | ||
[comment]: <> (Deprecated 已经不建议使用,准备很快移除的功能。) | ||
[comment]: <> (Removed 已经移除的功能。) | ||
[comment]: <> (Fixed 对bug的修复) | ||
[comment]: <> (Security 对安全的改进) | ||
|
||
# 更新日志 | ||
|
||
> 记录程序的版本变更历程 | ||
## [Unreleased] | ||
|
||
- 完成预期的获取列表和保存列表 | ||
|
||
## [0.0.1] - 2014-05-31 | ||
|
||
### Added | ||
|
||
- 代码片段 | ||
- 获取代码片段 | ||
- 获取公开的代码片段`(仅GitHub)` | ||
- 用文件创建代码片段 | ||
- 用选中内容创建代码片段 | ||
- 将文件添加到已存在的代码片段 | ||
- 将选中内容添加到已存在的代码片段 | ||
- 编辑代码片段 | ||
- 删除代码片段 | ||
- 删除代码片段中的文件 | ||
- 代码片段历史`(Gitee测试未返回正确结果)` | ||
- 代码片段评论 | ||
- 评论展示 | ||
- 新增评论 | ||
- 修改评论 | ||
- 删除评论 | ||
|
||
[Unreleased]: https://github.com/wanglong126/gitee_gists/compare/v1.0.0...HEAD | ||
[0.0.2]: https://github.com/wanglong126/gitee_gists/compare/v0.0.1...v0.0.2 | ||
[0.0.1]: https://github.com/wanglong126/gitee_gists/releases/tag/v0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020-present 力扣 | ||
Copyright (c) 2018-2019 jdneo | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# LdgGist | ||
|
||
> 基于 `Gitee 和 GitHub` 的代码片段管理工具 | ||
<p align="center"> | ||
<img src="https://raw.githubusercontent.com/wanglong126/vscode-ldggist/master/resources/logo.png" alt=""> | ||
</p> | ||
<p align="center"> | ||
<a href="https://marketplace.visualstudio.com/items?itemName=wanglong126.vscode-ldggist"> | ||
<img src="https://img.shields.io/visual-studio-marketplace/d/wanglong126.vscode-ldggist.svg?style=flat-square" alt=""> | ||
</a> | ||
<a href="https://github.com/wanglong126/vscode-ldggist/blob/master/LICENSE"> | ||
<img src="https://img.shields.io/github/license/wanglong126/vscode-ldggist.svg?style=flat-square" alt=""> | ||
</a> | ||
</p> | ||
|
||
## 快速开始 | ||
|
||
## 功能 | ||
|
||
- 代码片段 | ||
- 获取代码片段 | ||
- 获取公开的代码片段`(仅GitHub)` | ||
- 用文件创建代码片段 | ||
- 用选中内容创建代码片段 | ||
- 将文件添加到已存在的代码片段 | ||
- 将选中内容添加到已存在的代码片段 | ||
- 编辑代码片段 | ||
- 删除代码片段 | ||
- 删除代码片段中的文件 | ||
- 代码片段发生改变后局部刷新 | ||
- 代码片段历史 [Gitee测试未返回正确结果](https://gitee.com/oschina/git-osc/issues/I5072D) | ||
- 代码片段评论 | ||
- 评论展示 | ||
- 新增评论 | ||
- 修改评论 | ||
- 删除评论 | ||
- 多语言 | ||
- 中文 | ||
- 英文(机翻) | ||
|
||
|
||
## 依赖权限 | ||
|
||
申请一个私人令牌(access token) | ||
|
||
`Gitee`申请地址:https://gitee.com/profile/personal_access_tokens | ||
|
||
| 功能 | 权限 | | ||
| ----- | :----------------- | | ||
| gists | 管理 Gist 代码片段 | | ||
|
||
`GitHub`申请地址:https://github.com/settings/tokens | ||
|
||
| 权限 | 用途 | | ||
| ---- | :----------- | | ||
| gist | Create gists | | ||
|
||
## 开发初衷 | ||
|
||
希望可以摆脱文档记录常用代码的方式,在常用的代码编辑器中直接使用和修改常用的代码片段,感觉上美滋滋 | ||
|
||
## 开源 | ||
|
||
初次学习开发 Vs 扩展,代码凌乱不堪,无学习价值 | ||
|
||
希望各位大佬可以协助添砖加瓦,让其更加完善 | ||
|
||
**Enjoy!** |
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.