File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 612
612
},
613
613
"scripts" : {
614
614
"vscode:prepublish" : " yarn build:webview && webpack --mode production" ,
615
- "inject-commit-hash" : " echo 'Built from ` '$(git rev-parse --short HEAD)'`' >> README.md " ,
615
+ "inject-commit-hash" : " jq '.commit = \" '$(git rev-parse --short HEAD)'\" ' package.json > package.json.tmp && mv package.json.tmp package.json " ,
616
616
"webpack" : " webpack --mode development" ,
617
617
"compile" : " tsc -b" ,
618
618
"watch" : " tsc -b -w" ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { ReleaseNotes } from './releaseNotes';
11
11
import { registerWelcomeWalkthroughContribution , WELCOME_WALKTROUGH_KEY } from './welcomeWalktrough' ;
12
12
import { GitpodPortViewProvider } from './portViewProvider' ;
13
13
import { registerExtensionManagement } from './extensionManagement' ;
14
+ const meta = require ( '../package.json' )
14
15
15
16
let gitpodContext : GitpodExtensionContext | undefined ;
16
17
export async function activate ( context : vscode . ExtensionContext ) {
@@ -19,6 +20,8 @@ export async function activate(context: vscode.ExtensionContext) {
19
20
return ;
20
21
}
21
22
23
+ gitpodContext . logger . info ( `Gitpod Web ${ meta . commit || meta . version } ` ) ;
24
+
22
25
context . globalState . setKeysForSync ( [ WELCOME_WALKTROUGH_KEY , ReleaseNotes . RELEASE_NOTES_LAST_READ_KEY ] ) ;
23
26
24
27
registerCommands ( gitpodContext ) ;
You can’t perform that action at this time.
0 commit comments