Skip to content

Fix #5242: Don't run all Scala files as worksheets #5244

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

Merged
merged 1 commit into from
Oct 11, 2018

Conversation

Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Oct 11, 2018

When initializing the WorksheetRunFeature, we were specifying that the
feature should apply to all files where the document selector matches
that of the Dotty plugin, or files in the Scala language whose name ends
in .sc. Unfortunately, this matches all .scala files, and these were
run as worksheets.

This commit changes the document selector for the WorksheetRunFeature
so that Scala files are not run as if they were worksheets.

When initializing the `WorksheetRunFeature`, we were specifying that the
feature should apply to all files where the `document selector` matches
that of the Dotty plugin, or files in the Scala language whose name ends
in `.sc`. Unfortunately, this matches all `.scala` files, and these were
run as worksheets.

This commit changes the document selector for the `WorksheetRunFeature`
so that Scala files are not run as if they were worksheets.
Copy link
Contributor

@nicolasstucki nicolasstucki left a comment

Choose a reason for hiding this comment

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

LGTM, tested locally

@nicolasstucki nicolasstucki merged commit 863d944 into scala:master Oct 11, 2018
@nicolasstucki nicolasstucki deleted the fix/5242 branch October 11, 2018 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants