From fe80b759d9e75cff075917adaf3b9844074bb20b Mon Sep 17 00:00:00 2001 From: nadeeshaan Date: Tue, 16 Jun 2020 20:35:10 +0530 Subject: [PATCH 1/2] enable hover tests --- .../modules/langserver-core/src/test/resources/testng.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language-server/modules/langserver-core/src/test/resources/testng.xml b/language-server/modules/langserver-core/src/test/resources/testng.xml index 0d0f3ae70d23..25234fc32aa5 100644 --- a/language-server/modules/langserver-core/src/test/resources/testng.xml +++ b/language-server/modules/langserver-core/src/test/resources/testng.xml @@ -30,7 +30,7 @@ under the License. - + From 6c023e425694154776e9a4097883551f9ca41748 Mon Sep 17 00:00:00 2001 From: nadeeshaan Date: Tue, 16 Jun 2020 22:04:36 +0530 Subject: [PATCH 2/2] make command line formatter use old parser --- .../src/main/java/org/ballerinalang/format/FormatUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/ballerina-formatter/src/main/java/org/ballerinalang/format/FormatUtil.java b/misc/ballerina-formatter/src/main/java/org/ballerinalang/format/FormatUtil.java index 1ae0e43b7fd6..7545e28ad651 100644 --- a/misc/ballerina-formatter/src/main/java/org/ballerinalang/format/FormatUtil.java +++ b/misc/ballerina-formatter/src/main/java/org/ballerinalang/format/FormatUtil.java @@ -51,6 +51,7 @@ import static org.ballerinalang.compiler.CompilerOptionName.COMPILER_PHASE; import static org.ballerinalang.compiler.CompilerOptionName.EXPERIMENTAL_FEATURES_ENABLED; import static org.ballerinalang.compiler.CompilerOptionName.LOCK_ENABLED; +import static org.ballerinalang.compiler.CompilerOptionName.NEW_PARSER_ENABLED; import static org.ballerinalang.compiler.CompilerOptionName.OFFLINE; import static org.ballerinalang.compiler.CompilerOptionName.PRESERVE_WHITESPACE; import static org.ballerinalang.compiler.CompilerOptionName.PROJECT_DIR; @@ -323,6 +324,7 @@ private static CompilerContext getCompilerContext(Path sourceRootPath) { options.put(LOCK_ENABLED, Boolean.toString(false)); options.put(EXPERIMENTAL_FEATURES_ENABLED, Boolean.toString(true)); options.put(PRESERVE_WHITESPACE, Boolean.toString(true)); + options.put(NEW_PARSER_ENABLED, Boolean.toString(false)); return context; }