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

Add mirror setting to help with coursier set up #899

Merged
merged 2 commits into from
Feb 25, 2022

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Feb 24, 2022

Tested it locally and it seems to work correctly replacing the URL used by coursier boostrap

src/extension.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/mirrors.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Tested it locally and it seems to work correctly replacing the URL used by coursier boostrap
export function metalsDir(target: ConfigurationTarget): string {
if (target == ConfigurationTarget.Workspace && workspace.workspaceFolders) {
const wsDir = workspace.workspaceFolders[0]?.uri.fsPath;
return path.join(wsDir, ".metals");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dos65 I changed the directory for the server version data to .metals since this would be a more consistent naming. We already have things like .bloop etc.

Copy link
Member

Choose a reason for hiding this comment

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

Hmm. Technically, it isn't it a problem.
I intentionally named is differently for a case when somebody creates a project inside home dir. I understand that it's weird but who knows, maybe that might be a case for a temporal usage(remote/inside container)

@tgodzik tgodzik requested a review from dos65 February 25, 2022 13:05
Copy link
Member

@dos65 dos65 left a comment

Choose a reason for hiding this comment

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

👍

@tgodzik tgodzik merged commit d5ee94b into scalameta:main Feb 25, 2022
@tgodzik tgodzik deleted the add-mirror branch February 25, 2022 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants