-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rider changes needed to support #1191
- Loading branch information
Showing
4 changed files
with
86 additions
and
42 deletions.
There are no files selected for viewing
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
29 changes: 26 additions & 3 deletions
29
Src/CSharpier.Rider/src/main/java/com/intellij/csharpier/ICSharpierProcess.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 |
---|---|---|
@@ -1,6 +1,29 @@ | ||
package com.intellij.csharpier; | ||
|
||
public interface ICSharpierProcess { | ||
public String formatFile(String content, String fileName); | ||
public void dispose(); | ||
interface ICSharpierProcess { | ||
String formatFile(String content, String fileName); | ||
void dispose(); | ||
} | ||
|
||
interface ICSharpierProcess2 extends ICSharpierProcess { | ||
FormatFileResult formatFile(FormatFileParameter parameter); | ||
void dispose(); | ||
} | ||
|
||
class FormatFileParameter { | ||
public String fileContents; | ||
public String fileName; | ||
} | ||
|
||
class FormatFileResult { | ||
public String formattedFile; | ||
public Status status; | ||
public String errorMessage; | ||
} | ||
|
||
enum Status | ||
{ | ||
Formatted, | ||
Ignored, | ||
Failed | ||
} |