forked from eclipse-lemminx/lemminx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stops autoClose of end tag if it already exists
Fixes eclipse-lemminx#314, eclipse-lemminx#239 Signed-off-by: Nikolas Komonen <[email protected]>
- Loading branch information
1 parent
4797365
commit f5a107c
Showing
12 changed files
with
184 additions
and
32 deletions.
There are no files selected for viewing
Empty file.
This file contains 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
25 changes: 25 additions & 0 deletions
25
...eclipse.lsp4xml/src/main/java/org/eclipse/lsp4xml/customservice/AutoCloseTagResponse.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2019 Red Hat Inc. and others. All rights reserved. This program | ||
* and the accompanying materials which accompanies this distribution, and is | ||
* available at http://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* Contributors: Red Hat Inc. - initial API and implementation | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.lsp4xml.customservice; | ||
|
||
import org.eclipse.lsp4j.Range; | ||
|
||
public class AutoCloseTagResponse { | ||
public String snippet; | ||
public Range range; | ||
|
||
public AutoCloseTagResponse(String snippet, Range range) { | ||
this.snippet = snippet; | ||
this.range = range; | ||
} | ||
|
||
public AutoCloseTagResponse(String snippet) { | ||
this.snippet = snippet; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* Contributors: | ||
* Angelo Zerr <[email protected]> - initial API and implementation | ||
*/ | ||
package org.eclipse.lsp4xml; | ||
package org.eclipse.lsp4xml.customservice; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
|
@@ -24,5 +24,7 @@ | |
public interface XMLCustomService { | ||
|
||
@JsonRequest | ||
CompletableFuture<String> closeTag(TextDocumentPositionParams params); | ||
CompletableFuture<AutoCloseTagResponse> closeTag(TextDocumentPositionParams params); | ||
} | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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