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 #7393 can't open tomcat configuration without workspaces opened #7394

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

tom-shan
Copy link
Contributor

@tom-shan tom-shan commented Mar 23, 2020

What it does

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).
Then vscode.ExtensionContext.storagePath will return undefined and vscode tomcat will create a temp storagePath refer to https://github.com/adashen/vscode-tomcat/blob/develop/src/extension.ts#L13-L17.

How to test

follow the Reproduction Steps in #7393,
and check whether the clicking of Open Server Configuration is OK.

Review checklist

Reminder for reviewers

@vince-fugnitto
Copy link
Member

@tom-shan thank you for the pull-request, as usual please sign-off so it passes the CI check.

@vince-fugnitto vince-fugnitto added the vscode issues related to VSCode compatibility label Mar 23, 2020
…aces opened

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>
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look fine to me, I can see that from their documentation vscode accepts undefined as a value:

Screen Shot 2020-03-24 at 9 43 13 AM

I verified the changes against the reproduction steps outlined in #7393 and it worked successfully. I was able to modify the server configuration despite no workspace being opened, something which did not work on master.

@akosyakov
Copy link
Member

@vince-fugnitto please merge

@vince-fugnitto vince-fugnitto merged commit 0d7566d into eclipse-theia:master Mar 25, 2020
@tom-shan tom-shan deleted the tomcat-config branch March 25, 2020 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants