Skip to content

Commit

Permalink
fix #7393 can't open tomcat configuration without workspaces opened
Browse files Browse the repository at this point in the history
When no workspaces are opened, storagePath should return undefined in
accordance with the vscode implementation(https://github.com/microsoft/vscode/blob/416bb2e8d08f123df4bfb458070fcbb9fb69a3da/src/vs/workbench/api/node/extHostStoragePaths.ts#L46-L49).

Signed-off-by: tom-shan <swt0008411@163.com>
  • Loading branch information
tom-shan committed Mar 23, 2020
1 parent ae5591e commit 1ab790d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-ext/src/plugin/plugin-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export class PluginManagerExtImpl implements PluginManagerExt, PluginManager {
const subscriptions: theia.Disposable[] = [];
const asAbsolutePath = (relativePath: string): string => join(plugin.pluginFolder, relativePath);
const logPath = join(configStorage.hostLogPath, plugin.model.id); // todo check format
const storagePath = join(configStorage.hostStoragePath || '', plugin.model.id);
const storagePath = configStorage.hostStoragePath ? join(configStorage.hostStoragePath, plugin.model.id) : undefined;
const globalStoragePath = join(configStorage.hostGlobalStoragePath, plugin.model.id);
const pluginContext: theia.PluginContext = {
extensionPath: plugin.pluginFolder,
Expand Down

0 comments on commit 1ab790d

Please sign in to comment.