@@ -12,6 +12,7 @@ export class MirrordStatus {
12
12
static readonly mirrordForTeamsCommandId = 'mirrord.mirrordForTeams' ;
13
13
static readonly selectActiveConfigId = 'mirrord.selectActiveConfig' ;
14
14
static readonly helpCommandId = 'mirrord.help' ;
15
+ static readonly documentationCommandId = 'mirrord.documentation' ;
15
16
16
17
constructor ( statusBar : vscode . StatusBarItem ) {
17
18
this . statusBar = statusBar ;
@@ -49,6 +50,7 @@ export class MirrordStatus {
49
50
if ( ! getOperatorUsed ( ) ) {
50
51
statusBar . tooltip . appendMarkdown ( `\n\n[mirrord for Teams](command:${ MirrordStatus . mirrordForTeamsCommandId } )` ) ;
51
52
}
53
+ statusBar . tooltip . appendMarkdown ( `\n\n[Documentation](command:${ MirrordStatus . documentationCommandId } )` ) ;
52
54
statusBar . tooltip . appendMarkdown ( `\n\n[Get help on Discord](command:${ MirrordStatus . joinDiscordCommandId } )` ) ;
53
55
statusBar . tooltip . appendMarkdown ( `\n\n[Walkthrough](command:${ MirrordStatus . helpCommandId } )` ) ;
54
56
@@ -71,6 +73,7 @@ export class MirrordStatus {
71
73
globalContext . subscriptions . push ( vscode . commands . registerCommand ( MirrordStatus . helpCommandId , async ( ) => {
72
74
vscode . commands . executeCommand ( `workbench.action.openWalkthrough` , `MetalBear.mirrord#mirrord.welcome` , false ) ;
73
75
} ) ) ;
76
+ globalContext . subscriptions . push ( vscode . commands . registerCommand ( MirrordStatus . documentationCommandId , this . documentation . bind ( this ) ) ) ;
74
77
75
78
globalContext . subscriptions . push ( this . statusBar ) ;
76
79
@@ -103,6 +106,10 @@ export class MirrordStatus {
103
106
}
104
107
105
108
mirrordForTeams ( ) {
106
- vscode . env . openExternal ( vscode . Uri . parse ( 'https://app.metalbear.co/' ) ) ;
109
+ vscode . env . openExternal ( vscode . Uri . parse ( 'https://app.metalbear.co/?utm_medium=vscode&utm_source=ui_action' ) ) ;
110
+ }
111
+
112
+ documentation ( ) {
113
+ vscode . env . openExternal ( vscode . Uri . parse ( 'https://mirrord.dev/docs/using-mirrord/vscode-extension/?utm_medium=vscode&utm_source=ui_action' ) ) ;
107
114
}
108
115
}
0 commit comments