# gitlendongdong2 **Repository Path**: wangdongdong1194/gitlendongdong2 ## Basic Information - **Project Name**: gitlendongdong2 - **Description**: 模仿 gitlen 实现行内注释 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-04-28 - **Last Updated**: 2024-06-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 说明 ## 学习的台阶 1. 获取 vscode.git 文档参考地址 - 需要复制 git.d.ts 文件才能看到代码提示 - 参考地址 - https://cloud.tencent.com/developer/ask/sof/108547770 - https://github.com/microsoft/vscode/blob/main/extensions/git/README.md 2. 27号查看学习 - https://vscode.github.net.cn/docs/sourcecontrol/intro-to-git - repository 怎么看? 3. 重要参考地址:https://github.com/microsoft/vscode/tree/main/extensions/git 4. 常用api地址 - https://juejin.cn/post/6900557808765239303 - vscode.window.setStatusBarMessage 底部通知栏,临时通知 - https://zhuanlan.zhihu.com/p/338514039 处理了激活时机 5. 待处理问题 1. 插件激活时机 2. 选择文本和点击事件 6. 插件开发攻略:https://www.cnblogs.com/liuxianan/p/vscode-plugin-overview.html 7. 在文本后添加灰色提示内容 - DecorationShow.ts 文件 - 这个工具叫做 装饰 对文本进行变色,添加边框,还可以使用【伪类】 - 参考地址 - https://github.com/microsoft/vscode-extension-samples/blob/main/decorator-sample/USAGE.md 使用装饰,并参考gitlen的margin的用法等 - https://blog.csdn.net/qq_25550711/article/details/123260754 隐藏装饰 ## 常用命令 1. 打包成插件 ~~~ vsce package ~~~ - 参考地址:https://blog.csdn.net/DemoJx/article/details/111365954 - 全局安装 vsce ~~~ npm i -g vsce ~~~ 2. 输出栏的使用 - 参考地址:https://www.jianshu.com/p/2b096d8ad9b8 3. 创建项目 ~~~ yo code ~~~ - 参考地址:https://rackar.github.io/vscode-ext-doccn/get-started/your-first-extension.html