Skip to content

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