-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1195,7 +1195,10 @@ type FSharpLspServer(backgroundServiceEnabled: bool, state: State, lspClient: FS | |
{ Start = zero; End = fcsPosToLsp lastPos } | ||
|
||
return LspResult.success(Some([| { Range = range; NewText = formatted } |])) | ||
| Ok (FormatDocumentResponse.UnChanged | FormatDocumentResponse.Ignored) -> | ||
| Ok FormatDocumentResponse.Ignored -> | ||
do! lspClient.WindowShowMessage { Type = MessageType.Info; Message = (sprintf "\"%A\" is ignored by a .fantomasignore file." fileName) } | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nojaf
Author
Contributor
|
||
return LspResult.success None | ||
| Ok FormatDocumentResponse.UnChanged -> | ||
return LspResult.success None | ||
| Ok FormatDocumentResponse.ToolNotPresent -> | ||
let actions = | ||
|
I have a concern here about triggering this on the same file repeatedly. I could see this getting really annoying as a user, maybe some kind of fantomas-daemon-held list of file paths that have been alerted on? Especially if it was coupled with a user-action to 'don't remind me again'.