This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
synthetic.scala | |
--------------- | |
Summary: | |
Schema => SemanticDB v4 | |
Uri => synthetic.scala | |
Text => empty | |
Language => Scala | |
Symbols => 25 entries | |
Occurrences => 62 entries |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/scalafix-tests/unit/src/main/resources/expect/Pretty.expect b/scalafix-tests/unit/src/main/resources/expect/Pretty.expect | |
index 7d8e3593..6ad2b0cc 100644 | |
--- a/scalafix-tests/unit/src/main/resources/expect/Pretty.expect | |
+++ b/scalafix-tests/unit/src/main/resources/expect/Pretty.expect | |
@@ -30,8 +30,8 @@ | |
[21:7..21:8]: test/PrettyTest#a. => val method a: PrettyTest | |
[22:7..22:8]: test/PrettyTest#b. => val method b: a.Inner | |
[24:3..24:9]: *.apply[AnyRef { | |
- local5 => abstract method bar(a: Int): Int | |
- local7 => abstract method foo(a: Int): Int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/metals/src/main/scala/scala/meta/internal/metals/Fuzzy.scala b/metals/src/main/scala/scala/meta/internal/metals/Fuzzy.scala | |
index ed25bd69..84d2dc40 100644 | |
--- a/metals/src/main/scala/scala/meta/internal/metals/Fuzzy.scala | |
+++ b/metals/src/main/scala/scala/meta/internal/metals/Fuzzy.scala | |
@@ -74,25 +74,29 @@ object Fuzzy { | |
// Loop 2: compareNames("imm", "immutable") | |
// Loop 3: compareNames("col", "collection") | |
@tailrec | |
- def loopDelimiters(qb: Int, sb: Int): Boolean = { | |
+ def loopDelimiters(qb: Int, sb: Int, depth: Int): Boolean = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"jsonrpc": "2.0", | |
"id": "1", | |
"method": "build/initialize", | |
"params": { | |
"rootUri": "file:///Users/olafurpg/dev/metals/tests/unit/target/e2e/diagnostics/no-op/", | |
"displayName": "Metals", | |
"version": "0.4.0-SNAPSHOT", | |
"bspVersion": "2.0.0-M2", | |
"capabilities": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tests | |
import scala.concurrent.Future | |
object SyntaxErrorSlowSuite extends BaseSlowSuite("syntax-error") { | |
type Assert = (String => String, String) | |
def check( | |
name: String, | |
code: String, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jsdocs | |
import mhtml._ | |
import org.scalafmt._ | |
import org.scalajs.dom.raw.Element | |
import scala.scalajs.js | |
object ScalafmtPlayground { | |
def mount(node: Element): Unit = { | |
val start = """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ test-workspace git:(master) ✗ cat SbtRule.scala | |
import scalafix.v1._ | |
import scala.meta._ | |
class SbtRule extends SyntacticRule("SbtRule") { | |
override def fix(implicit doc: SyntacticDocument): Patch = { | |
Patch.addRight(doc.tree, "\n// comment") | |
} | |
} | |
➜ test-workspace git:(master) ✗ coursier launch ch.epfl.scala:scalafix-cli_2.12.7:0.9.0 -M scalafix.v1.Main -- -r file:SbtRule.scala --stdout build.sbt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -eu | |
project=$1 | |
dependencies=$(cat .bloop/$project.json | jq '.project.classpath | join(":")' -r) | |
classDirectory=$(cat .bloop/$project.json | jq '.project.classesDir' -r) | |
options=$(cat .bloop/$project.json | \ | |
jq '.project.scala.options' | \ | |
gron | \ | |
grep -v "Xfatal-warnings" | \ | |
grep -v "semanticdb" | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'application' | |
apply plugin: 'scala' | |
repositories { | |
mavenLocal() | |
mavenCentral() | |
} | |
ext { | |
scalaBinaryVersion = "2.12" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hyper = {"cmd", "alt", "ctrl", "shift"} | |
apps = { | |
T = "iTerm", | |
C = "Finder", | |
M = "Spotify", | |
K = "Keychain Access", | |
X = "Visual Studio Code", | |
A = "Google Chrome", | |
I = "IntelliJ IDEA CE", |