We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb49667 commit 50b0be5Copy full SHA for 50b0be5
packages/ide/vscode/scripts/post-build.ts
@@ -6,8 +6,13 @@ dotenv.config({ path: './.env' });
6
7
const telemetryToken = process.env.VSCODE_TELEMETRY_TRACKING_TOKEN;
8
if (!telemetryToken) {
9
- console.error('Error: VSCODE_TELEMETRY_TRACKING_TOKEN environment variable is not set');
10
- process.exit(1);
+ if (process.env.CI) {
+ console.error('Error: VSCODE_TELEMETRY_TRACKING_TOKEN environment variable is not set');
11
+ process.exit(1);
12
+ } else {
13
+ console.warn('Warning: VSCODE_TELEMETRY_TRACKING_TOKEN environment variable is not set, skipping token injection');
14
+ process.exit(0);
15
+ }
16
}
17
const file = 'dist/extension.js';
18
let content = fs.readFileSync(file, 'utf-8');
0 commit comments