翻阅文档,可以发现其本身自带2个账号登录,一个是github,一个是microsoft: Currently, there are only two authentication providers that are contributed from built in extensions to VS Code that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
exportclassCodeLens{/**
* The range in which this code lens is valid. Should only span a single line.
*/
range: Range;/**
* The command this code lens represents.
*/
command?: Command;/**
* `true` when there is a command associated.
*/
readonly isResolved:boolean;/**
* Creates a new code lens object.
*
* @param range The range to which this code lens applies.
* @param command The command associated to this code lens.
*/constructor(range: Range, command?: Command);}
其中,range就是vscode的range,command就是commad类,包含:
exportinterfaceCommand{/**
* Title of the command, like `save`.
*/
title:string;/**
* The identifier of the actual command handler.
* @see [commands.registerCommand](#commands.registerCommand).
*/
command:string;/**
* A tooltip for the command, when represented in the UI.
*/
tooltip?:string;/**
* Arguments that the command handler should be
* invoked with.
*/
arguments?:any[];}
前言本篇主要写一下github登录,环境变量,codelens这几个功能。github登录vscode本身是可以进行github登录的,所以一般只要借助它已经拿到的账户信息去做就行了。翻阅文档,可以发现其本身自带2个账号登录,一个是github,一个是microsoft:Currently, there are only two authentication providers that are contributed from built in extensions to VS Code