mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Refactor variable names in App module for clarity and update .gitignore for Atlas artifacts
- Renamed variables in the `App` module to improve code readability, changing `mcpPatchTree` to `_mcpPatchTree` and `cachedServerInfo` to `_cachedServerInfo`. - Updated the `.gitignore` file to ignore all Atlas log/build artifacts by changing the entry to `**/.atlas/`, ensuring a cleaner repository.
This commit is contained in:
parent
a14abbb059
commit
3f1af46fcb
2 changed files with 8 additions and 11 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -30,5 +30,5 @@
|
||||||
# Environment secrets
|
# Environment secrets
|
||||||
.env
|
.env
|
||||||
|
|
||||||
# Atlas log directory
|
# Atlas log/build artifacts
|
||||||
/.atlas/
|
**/.atlas/
|
||||||
|
|
|
||||||
|
|
@ -1190,7 +1190,7 @@ function App:startMcpSync(requestId, mode, overrides)
|
||||||
twoWaySync = false,
|
twoWaySync = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
local mcpPatchTree = nil
|
local _mcpPatchTree = nil
|
||||||
local mcpSyncResolved = false
|
local mcpSyncResolved = false
|
||||||
|
|
||||||
local function resolveOnce(result)
|
local function resolveOnce(result)
|
||||||
|
|
@ -1208,15 +1208,12 @@ function App:startMcpSync(requestId, mode, overrides)
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local cachedServerInfo = nil
|
local _cachedServerInfo = nil
|
||||||
|
|
||||||
serveSession:setConfirmCallback(function(instanceMap, patch, serverInfo)
|
serveSession:setConfirmCallback(function(instanceMap, patch, serverInfo)
|
||||||
cachedServerInfo = serverInfo
|
_cachedServerInfo = serverInfo
|
||||||
|
|
||||||
local retainedFromIds = {}
|
local retainedFromIds = table.clone(instanceMap.fromIds)
|
||||||
for id, inst in instanceMap.fromIds do
|
|
||||||
retainedFromIds[id] = inst
|
|
||||||
end
|
|
||||||
self._lastMcpFromIds = retainedFromIds
|
self._lastMcpFromIds = retainedFromIds
|
||||||
|
|
||||||
PatchSet.removeDataModelName(patch, instanceMap)
|
PatchSet.removeDataModelName(patch, instanceMap)
|
||||||
|
|
@ -1232,7 +1229,7 @@ function App:startMcpSync(requestId, mode, overrides)
|
||||||
|
|
||||||
local gitMetadata = serverInfo.gitMetadata
|
local gitMetadata = serverInfo.gitMetadata
|
||||||
local patchTree = PatchTree.build(patch, instanceMap, { "Property", "Current", "Incoming" }, gitMetadata)
|
local patchTree = PatchTree.build(patch, instanceMap, { "Property", "Current", "Incoming" }, gitMetadata)
|
||||||
mcpPatchTree = patchTree
|
_mcpPatchTree = patchTree
|
||||||
|
|
||||||
-- Apply overrides: look up each override by id in the tree, verify, set selection
|
-- Apply overrides: look up each override by id in the tree, verify, set selection
|
||||||
local overrideSelections = {}
|
local overrideSelections = {}
|
||||||
|
|
@ -1468,7 +1465,7 @@ local SCRIPT_CLASS_SET = {
|
||||||
ModuleScript = true,
|
ModuleScript = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
function App:_buildMcpChangeList(patchTree, patch, instanceMap, selections, includeAll)
|
function App:_buildMcpChangeList(patchTree, patch, _instanceMap, selections, includeAll)
|
||||||
local changes = {}
|
local changes = {}
|
||||||
|
|
||||||
local patchUpdatedLookup = nil
|
local patchUpdatedLookup = nil
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue