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

[quality][workspace-service] WorkspaceService#getDefaultWorkspacePath is misleading. Deprecate it #6432

Closed
kittaakos opened this issue Oct 22, 2019 · 0 comments · Fixed by #6437
Labels
help wanted issues meant to be picked up, require help quality issues related to code and application quality workspace issues related to the workspace

Comments

@kittaakos
Copy link
Contributor

Description

protected getDefaultWorkspacePath(): MaybePromise<string | undefined> {
returns with the URI as a string, and not a Path. It is misleading.

Introduce a new getDefaultWorkspaceUri, move the logic from getDefaultWorkspacePath to the new method. Delegate from getDefaultWorkspacePath to the new getDefaultWorkspaceUri.

Reproduction Steps

OS and Theia version:

Diagnostics:

@kittaakos kittaakos added quality issues related to code and application quality workspace issues related to the workspace labels Oct 22, 2019
@akosyakov akosyakov added the help wanted issues meant to be picked up, require help label Oct 23, 2019
kittaakos pushed a commit that referenced this issue Oct 23, 2019
Use `WorkspaceService#getDefaultWorkspaceUri` instead.

Closes #6432

Signed-off-by: Akos Kitta <[email protected]>
kittaakos pushed a commit that referenced this issue Oct 23, 2019
Use `WorkspaceService#getDefaultWorkspaceUri` instead.

Closes #6432

Signed-off-by: Akos Kitta <[email protected]>
akosyakov pushed a commit to akosyakov/theia that referenced this issue Feb 24, 2020
Use `WorkspaceService#getDefaultWorkspaceUri` instead.

Closes eclipse-theia#6432

Signed-off-by: Akos Kitta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted issues meant to be picked up, require help quality issues related to code and application quality workspace issues related to the workspace
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants