File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -227,26 +227,6 @@ function handleDocumentSave(document: vscode.TextDocument): void {
227227 }
228228}
229229
230- /**
231- * Sort the Linting Errors by line location
232- */
233- function sortLintErrorsByLocation ( errors : LintError [ ] ) : LintError [ ] {
234- return [ ...errors ] . sort ( ( a , b ) => {
235- if ( ! a . position && ! b . position ) return 0 ;
236- if ( ! a . position ) return 1 ;
237- if ( ! b . position ) return - 1 ;
238-
239- const [ aLine , aColumn ] = a . position ;
240- const [ bLine , bColumn ] = b . position ;
241-
242- if ( aLine !== bLine ) {
243- return aLine - bLine ;
244- }
245-
246- return aColumn - bColumn ;
247- } ) ;
248- }
249-
250230/**
251231 * Update the panel content with current file analysis
252232 */
@@ -333,11 +313,6 @@ async function updatePanelContent(): Promise<void> {
333313
334314 const lintResult = parseLintResult ( lintOutput ) ;
335315
336- if ( lintResult . errors && lintResult . errors . length > 0 ) {
337- // TODO: Consider moving lint diagnostic ordering to the jsonschema CLI
338- lintResult . errors = sortLintErrorsByLocation ( lintResult . errors ) ;
339- }
340-
341316 const parseErrors = hasJsonParseErrors ( lintResult , metaschemaResult ) ;
342317
343318 const finalState : PanelState = {
You can’t perform that action at this time.
0 commit comments