summaryrefslogtreecommitdiff
path: root/test/lsp
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-27 00:16:35 -0500
committerpommicket <pommicket@gmail.com>2022-12-27 00:16:35 -0500
commit85ee81b8ae972d17f0e3dc78657077924c047ada (patch)
treec786708c0e3b4d0340e712d01eb0160145e5af38 /test/lsp
parent9a5cad47fe6a8b84892f62e110ca887c95df5eff (diff)
added workspaceFolders support
but broke non-workspaceFolders support
Diffstat (limited to 'test/lsp')
-rw-r--r--test/lsp/JavaA/.ted-root0
-rw-r--r--test/lsp/JavaA/Main.java8
-rw-r--r--test/lsp/JavaB/.ted-root0
-rw-r--r--test/lsp/JavaB/B.java13
4 files changed, 21 insertions, 0 deletions
diff --git a/test/lsp/JavaA/.ted-root b/test/lsp/JavaA/.ted-root
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/lsp/JavaA/.ted-root
diff --git a/test/lsp/JavaA/Main.java b/test/lsp/JavaA/Main.java
new file mode 100644
index 0000000..2792b7c
--- /dev/null
+++ b/test/lsp/JavaA/Main.java
@@ -0,0 +1,8 @@
+public class Main {
+ public static void main(String[] args) {
+ int x = 0;
+ x++;
+ for (int i = 0; i < args.length; ++i) {
+ }
+ }
+}
diff --git a/test/lsp/JavaB/.ted-root b/test/lsp/JavaB/.ted-root
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/lsp/JavaB/.ted-root
diff --git a/test/lsp/JavaB/B.java b/test/lsp/JavaB/B.java
new file mode 100644
index 0000000..fde8107
--- /dev/null
+++ b/test/lsp/JavaB/B.java
@@ -0,0 +1,13 @@
+public class B {
+ private static class Something {
+ public int x = 0;
+ int f() {
+ return x;
+ }
+ }
+
+ public static void main(String[] args) {
+ Something s = new Something();
+ s.f();
+ }
+}