Skip to content

Commit

Permalink
Scala preference is chosen for indentation depth in Scala editors
Browse files Browse the repository at this point in the history
Fixes #1000828
  • Loading branch information
kiritsuku committed Feb 10, 2014
1 parent 63e844f commit 7a2d47a
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -101,6 +101,13 @@ class ScalaSourceViewerConfiguration(
)
}

override def getTabWidth(sourceViewer: ISourceViewer): Int = {
import scala.tools.eclipse.formatter.FormatterPreferences._
import scalariform.formatter.preferences._

scalaPreferenceStore.getInt(IndentSpaces.eclipseKey)
}

override def getReconciler(sourceViewer: ISourceViewer): IReconciler =
if (editor ne null) {
val reconciler = new MonoReconciler(new ScalaReconcilingStrategy(editor), /*isIncremental = */ false)
Expand Down

0 comments on commit 7a2d47a

Please sign in to comment.