Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Align 'configStorage' object to theia changes #640

Merged
merged 1 commit into from
Feb 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,12 @@ export class PluginRemoteInit {
// in remote plugin image '/home/theia' doesn't exist
const originalStart = PluginManagerExtImpl.prototype.$start;
PluginManagerExtImpl.prototype.$start = async function (params: PluginManagerStartParams): Promise<void> {
params.configStorage = { hostLogPath: modifyPathToLocal(params.configStorage.hostLogPath), hostStoragePath: modifyPathToLocal(params.configStorage.hostLogPath) };
const { hostLogPath, hostStoragePath, hostGlobalStoragePath } = params.configStorage;
params.configStorage = {
hostLogPath: modifyPathToLocal(hostLogPath),
hostStoragePath: hostStoragePath ? modifyPathToLocal(hostStoragePath) : undefined,
hostGlobalStoragePath: modifyPathToLocal(hostGlobalStoragePath)
};
// call original method
return originalStart.call(this, params);
};
Expand Down
Loading