-
Notifications
You must be signed in to change notification settings - Fork 917
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into jh-emu_binary
- Loading branch information
Showing
13 changed files
with
157 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Fixes some cases where Firebase Data Connect deployment fails to pretty-print errors (#7230). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Change Log | ||
## NEXT | ||
|
||
## 0.2.3 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { env, TelemetryLogger, TelemetrySender } from "vscode"; | ||
import { pluginLogger } from "./logger-wrapper"; | ||
import { AnalyticsParams, trackVSCode } from "./track"; | ||
|
||
export class AnalyticsLogger { | ||
readonly logger: TelemetryLogger; | ||
constructor() { | ||
this.logger = env.createTelemetryLogger( | ||
new GA4TelemetrySender(pluginLogger), | ||
); | ||
} | ||
} | ||
|
||
class GA4TelemetrySender implements TelemetrySender { | ||
constructor(readonly pluginLogger) {} | ||
|
||
sendEventData( | ||
eventName: string, | ||
data?: Record<string, any> | undefined, | ||
): void { | ||
if (!env.isTelemetryEnabled) { | ||
pluginLogger.warn("Telemetry is not enabled."); | ||
return; | ||
} | ||
if (!data) { | ||
return; | ||
} | ||
trackVSCode(eventName, data as AnalyticsParams); | ||
} | ||
|
||
sendErrorData(error: Error, data?: Record<string, any> | undefined): void { | ||
// n/a | ||
// TODO: Sanatize error messages for user data | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
printusage() { | ||
echo "publish-vsce.sh <version> <cli-version-number>" | ||
echo "Should be run as part of publish.sh." | ||
echo "" | ||
echo "" | ||
echo "Arguments:" | ||
echo " version: 'patch', 'minor', or 'major'." | ||
echo " cli-version-number: the version number of the CLI code that is bundled in this release." | ||
} | ||
|
||
VERSION=$1 | ||
|
||
CLI_VERSION=$2 | ||
if [[ $VERSION == "" || $CLI_VERSION == ""]]; then | ||
printusage | ||
exit 1 | ||
elif [[ ! ($VERSION == "patch" || $VERSION == "minor" || $VERSION == "major") ]]; then | ||
printusage | ||
exit 1 | ||
fi | ||
|
||
cd firebase-vscode | ||
echo "Running npm install for VSCode..." | ||
npm install | ||
echo "Ran npm install for VSCode." | ||
|
||
echo "Making a $VERSION version of VSCode..." | ||
npm version $VERSION | ||
NEW_VSCODE_VERSION=$(jq -r ".version" package.json) | ||
NEXT_HEADER="## NEXT" | ||
NEW_HEADER="## NEXT \n\n## $NEW_VSCODE_VERSION\n\n- Updated internal firebase-tools dependency to $CLI_VERSION" | ||
sed -i '' -e "s/$NEXT_HEADER/$NEW_HEADER/g" CHANGELOG.md | ||
echo "Made a $VERSION version of VSCode." | ||
|
||
echo "Building firebase-vscode .VSIX file" | ||
npm run pkg | ||
echo "Built firebase-vscode .VSIX file." | ||
|
||
echo "Uploading VSIX file to GCS..." | ||
VSIX="firebase-vscode-$NEW_VSCODE_VERSION.vsix" | ||
gsutil cp $VSIX gs://firemat-preview-drop/vsix/$VSIX | ||
gsutil cp $VSIX gs://firemat-preview-drop/vsix/firebase-vscode-latest.vsix | ||
echo "Uploaded VSIX file to GCS." | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters