Skip to content

Commit 68bc175

Browse files
committed
Inject into logs
1 parent ea8ba54 commit 68bc175

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

gitpod-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@
612612
},
613613
"scripts": {
614614
"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",
616616
"webpack": "webpack --mode development",
617617
"compile": "tsc -b",
618618
"watch": "tsc -b -w",

gitpod-web/src/extension.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { ReleaseNotes } from './releaseNotes';
1111
import { registerWelcomeWalkthroughContribution, WELCOME_WALKTROUGH_KEY } from './welcomeWalktrough';
1212
import { GitpodPortViewProvider } from './portViewProvider';
1313
import { registerExtensionManagement } from './extensionManagement';
14+
const meta = require('../package.json')
1415

1516
let gitpodContext: GitpodExtensionContext | undefined;
1617
export async function activate(context: vscode.ExtensionContext) {
@@ -19,6 +20,8 @@ export async function activate(context: vscode.ExtensionContext) {
1920
return;
2021
}
2122

23+
gitpodContext.logger.info(`Gitpod Web ${meta.commit || meta.version}`);
24+
2225
context.globalState.setKeysForSync([WELCOME_WALKTROUGH_KEY, ReleaseNotes.RELEASE_NOTES_LAST_READ_KEY]);
2326

2427
registerCommands(gitpodContext);

0 commit comments

Comments
 (0)