Skip to content

Commit

Permalink
Disable submitting usage information (#226)
Browse files Browse the repository at this point in the history
Installing packages for automated tests is unrelated with real usage.
Thus prevent Package Control from submitting usage stats.
  • Loading branch information
deathaxe authored Mar 17, 2024
1 parent 22a4b32 commit 9579212
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sbin/install_package_control.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ try{

if (-not (test-path $PC_SETTINGS)) {
write-verbose "creating Package Control.sublime-settings"
"{`"ignore_vcs_packages`": true }" | out-file -filepath $PC_SETTINGS -encoding ascii
"{`"ignore_vcs_packages`": true, `"submit_usage`": false }" | out-file -filepath $PC_SETTINGS -encoding ascii
}

$PCH_PATH = "$STP\0_install_package_control_helper"
Expand Down
2 changes: 1 addition & 1 deletion sbin/install_package_control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fi
if [ ! -f "$STP/User/Package Control.sublime-settings" ]; then
echo creating Package Control.sublime-settings
# make sure Pakcage Control does not complain
echo '{"ignore_vcs_packages": true }' > "$STP/User/Package Control.sublime-settings"
echo '{"ignore_vcs_packages": true, "submit_usage": false }' > "$STP/User/Package Control.sublime-settings"
fi

PCH_PATH="$STP/0_install_package_control_helper"
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_package_control.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $PC_SETTINGS = "C:\st\Data\Packages\User\Package Control.sublime-settings"

if (-not (test-path $PC_SETTINGS)) {
write-verbose "creating Package Control.sublime-settings"
"{`"auto_upgrade`": false }" | out-file -filepath $PC_SETTINGS -encoding ascii
"{`"auto_upgrade`": false, `"submit_usage`": false }" | out-file -filepath $PC_SETTINGS -encoding ascii
}

$PCH_PATH = "$STP\0_install_package_control_helper"
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_package_control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ if [ ! -f "$STP/User/Package Control.sublime-settings" ]; then
echo creating Package Control.sublime-settings
[ ! -d "$STP/User" ] && mkdir -p "$STP/User"
# make sure Pakcage Control does not complain
echo '{"auto_upgrade": false }' > "$STP/User/Package Control.sublime-settings"
echo '{"auto_upgrade": false, "submit_usage": false }' > "$STP/User/Package Control.sublime-settings"
fi

PCH_PATH="$STP/0_install_package_control_helper"
Expand Down

0 comments on commit 9579212

Please sign in to comment.