Skip to content

Commit

Permalink
Added custom formatter support
Browse files Browse the repository at this point in the history
- improved tests
- added interactive command to update user settings
  • Loading branch information
yyoncho committed May 24, 2018
1 parent 080ca71 commit 5eebec0
Show file tree
Hide file tree
Showing 6 changed files with 403 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ script:
- mkdir -p ~/.emacs.d/eclipse.jdt.ls/server/
- wget http://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz -O /tmp/jdt-latest.tar
- tar xf /tmp/jdt-latest.tar -C ~/.emacs.d/eclipse.jdt.ls/server/
- cask exec ecukes --timeout 30
- cask exec ecukes --timeout 60

notifications:
webhooks:
Expand Down
26 changes: 26 additions & 0 deletions features/Formatter.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Feature: Formatting

Scenario: Changing formatter
Given I have maven project "m" in "tmp"
And I have a java file "tmp/m/src/main/java/temp/App.java"
And I add project "m" folder "tmp" to the list of workspace folders
And I clear the buffer
And I insert:
"""
package temp; import java.util.ArrayList; class App {ArrayList<String> al = new ArrayList<>();}
"""
And I call "save-buffer"
And I use formatter profile "profileName" from "testFormatter.xml"
And I start lsp-java
And The server status must become "LSP::Started"
When I indent buffer
And I call "save-buffer"
Then I should see:
"""
package temp;
import java.util.ArrayList;
class App
{
ArrayList<String> al = new ArrayList<>();
}
"""
Loading

0 comments on commit 5eebec0

Please sign in to comment.