Skip to content

Commit 0cacee9

Browse files
authored
Merge pull request #131 from jonahkichwacoders/bug130_dsp
Bug #130: Support for JSON-RPC-like Debug Server Protocol's RPC
2 parents 3cf9f9c + 33fe5de commit 0cacee9

File tree

146 files changed

+19095
-68
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+19095
-68
lines changed

ide/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.eclipse.org/legal/epl-v10.html
7+
*******************************************************************************/
8+
19
plugins {
210
id 'com.diffplug.gradle.oomph.ide' version '3.1.0'
311
}
@@ -28,8 +36,10 @@ oomphIde {
2836
// explicitly adding the folders is an easy workaround.
2937
addProjectFolder('../')
3038
addProjectFolder('../org.eclipse.lsp4j')
39+
addProjectFolder('../org.eclipse.lsp4j.debug')
3140
addProjectFolder('../org.eclipse.lsp4j.generator')
3241
addProjectFolder('../org.eclipse.lsp4j.jsonrpc')
42+
addProjectFolder('../org.eclipse.lsp4j.jsonrpc.debug')
3343

3444
// setup theming
3545
style {

org.eclipse.lsp4j.debug/.project

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>org.eclipse.lsp4j.debug</name>
4+
<comment>Java bindings for the Debug Server Protocol</comment>
5+
<projects/>
6+
<natures>
7+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
8+
<nature>org.eclipse.jdt.core.javanature</nature>
9+
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
10+
</natures>
11+
<buildSpec>
12+
<buildCommand>
13+
<name>org.eclipse.jdt.core.javabuilder</name>
14+
<arguments/>
15+
</buildCommand>
16+
<buildCommand>
17+
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
18+
<arguments/>
19+
</buildCommand>
20+
<buildCommand>
21+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
22+
<arguments/>
23+
</buildCommand>
24+
</buildSpec>
25+
<linkedResources/>
26+
</projectDescription>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build.commands=org.eclipse.jdt.core.javabuilder,org.eclipse.xtext.ui.shared.xtextBuilder
2+
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
3+
connection.project.dir=..
4+
containers=org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/
5+
derived.resources=.gradle,build
6+
eclipse.preferences.version=1
7+
natures=org.eclipse.jdt.core.javanature,org.eclipse.xtext.ui.shared.xtextNature
8+
project.path=\:org.eclipse.lsp4j.debug
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
eclipse.preferences.version=1
2+
encoding//src/main/java=UTF-8
3+
encoding//src/test/java=UTF-8
4+
encoding/<project>=UTF-8

org.eclipse.lsp4j.debug/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Debug Server Protocol
2+
3+
4+
## To regenerate DebugProtocol.java
5+
6+
```
7+
$ git clone [email protected]:jonahkichwacoders/vscode-debugadapter-node.git
8+
$ git checkout dsp
9+
$ npm install
10+
$ npm run compile
11+
$ # generate java and xtend files to default location
12+
$ npm run generate
13+
$ # Run Format and Organize Imports in Eclipse
14+
```
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2017 Kichwa Coders Ltd. and others.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.eclipse.org/legal/epl-v10.html
7+
*******************************************************************************/
8+
9+
ext.title = 'LSP4J Debug'
10+
description = 'Java bindings for the Debug Server Protocol'
11+
12+
dependencies {
13+
compile project(":org.eclipse.lsp4j.generator")
14+
compile project(":org.eclipse.lsp4j.jsonrpc.debug")
15+
testCompile "junit:junit:$versions.junit"
16+
}
17+
18+
jar {
19+
from sourceSets.main.allJava
20+
}
21+
22+
jar.manifest {
23+
instruction 'Import-Package', "com.google.common.*;version=\"$versions.guava\""
24+
instruction 'Import-Package', '*'
25+
}

0 commit comments

Comments
 (0)