-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
__Issue:__ For some extensions, diagnostics would show the squiggly underline the editor, but wouldn't show any details in the hover UI (like in #3231 ) __Defect:__ Some extensions don't send a diagnostic range - they send a position, and the editor is supposed to treat the diagnostic as spanning the _token_ at the range. We were handling that correctly for rendering, but for the hover, Onivim wasn't detecting positions as being in that implicit range. __Fix:__ Handle hover in this case - find all diagnostics in the token range, and show in the hover ui.
- Loading branch information
Showing
15 changed files
with
248 additions
and
187 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
open EditorCoreTypes; | ||
open Oni_Core; | ||
// EditorBuffer is a subset of the buffer model, | ||
// specifically containing the functions and data | ||
// needed by the editor surface. | ||
|
||
type t; | ||
|
||
let ofBuffer: Oni_Core.Buffer.t => t; | ||
let ofBuffer: Buffer.t => t; | ||
let id: t => int; | ||
let getEstimatedMaxLineLength: t => int; | ||
let numberOfLines: t => int; | ||
let line: (int, t) => Oni_Core.BufferLine.t; | ||
let line: (int, t) => BufferLine.t; | ||
let hasLine: (EditorCoreTypes.LineNumber.t, t) => bool; | ||
let font: t => Oni_Core.Font.t; | ||
let fileType: t => Oni_Core.Buffer.FileType.t; | ||
let font: t => Font.t; | ||
let fileType: t => Buffer.FileType.t; | ||
let measure: (Uchar.t, t) => float; | ||
|
||
let tokenAt: | ||
(~languageConfiguration: LanguageConfiguration.t, CharacterPosition.t, t) => | ||
option(CharacterRange.t); |
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
Oops, something went wrong.