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

support Portable Mode #204

Merged
merged 3 commits into from
Dec 26, 2018
Merged

support Portable Mode #204

merged 3 commits into from
Dec 26, 2018

Conversation

hcwhan
Copy link
Contributor

@hcwhan hcwhan commented Jul 26, 2018

support Portable Mode

support Portable Mode
@hcwhan
Copy link
Contributor Author

hcwhan commented Jul 26, 2018

Because I only have windows computers, so only tested the (win10 v1803) system.

@alefragnani
Copy link
Owner

Hi @hcwhan ,

I just returned to look at this, and noted that it the AbstractLocator.getCacheFile needs to be updated as well, otherwise, the cache files for auto-detected projects will not be stored in portable location.

Could you update that as well?

src/extension.ts Outdated
projectFile = path.join(appdata, channelPath, "User", PROJECTS_FILE);
} else {
appdata = process.env.APPDATA || (process.platform === "darwin" ? process.env.HOME + "/Library/Application Support" : "/var/local");
channelPath: string = getChannelPath();
Copy link
Owner

Choose a reason for hiding this comment

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

TypeScript is complaining here...

[ts] 'string' only refers to a type, but is being used as a value here

@alefragnani alefragnani added the PR needs update The PR needs review by the author label Nov 25, 2018
@alefragnani
Copy link
Owner

Hi @hcwhan ,

It's still missing the changes on AbstractLocator, making getCacheFile function compatible with portable mode.

Once you push the changes, I could release an update including your PR.

Thank you.

@alefragnani alefragnani added this to the 10.2.0 milestone Dec 7, 2018
This was referenced Dec 18, 2018
@alefragnani alefragnani merged commit de954ed into alefragnani:master Dec 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement portable mode PR needs update The PR needs review by the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants