Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in variable name #517

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Prev Previous commit
Fix typos in variable name
  • Loading branch information
gitname authored Jun 13, 2023
commit db4b217c71bda51b74e620df33f9e2afc73d986c
8 changes: 4 additions & 4 deletions scripts/sync-helper.js
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ const AllowMissKeys = [
'darwinUniversalAssetId',
];

const propiertaryExtension = [
const proprietaryExtensions = [
'ms-vscode-remote.remote-containers',
'ms-dotnettools.csharp',
'ms-vscode.cpptools-extension-pack',
@@ -132,10 +132,10 @@ async function start() {
for (let key of pickKeys) {
let newValue = releaseProduct[key];
if (Array.isArray(newValue) && newValue.length && typeof newValue[0] === 'string') {
newValue = newValue.map(v => openvsxExtensionMap[v] ?? v).filter(v => !propiertaryExtension.includes(v));
newValue = newValue.map(v => openvsxExtensionMap[v] ?? v).filter(v => !proprietaryExtensions.includes(v));
} else if (typeof newValue === 'object' && newValue !== null) {
newValue = renameObjKey(newValue, k => openvsxExtensionMap[k] ?? k);
newValue = filterObj(newValue, k => !propiertaryExtension.includes(k));
newValue = filterObj(newValue, k => !proprietaryExtensions.includes(k));
}
branchProduct[key] = newValue;
}
@@ -195,7 +195,7 @@ async function checkProductExtensions(product) {

// Check if extensions exists in openvsx
for (let id of uniqueExtIds) {
if (propiertaryExtension.includes(id)) {
if (proprietaryExtensions.includes(id)) {
continue;
}