Create a diagnostics collection that can be used to display wavy lines in the error area of the document to identify problems during document verification.
let activeEditor = hx.window.getActiveTextEditor();
activeEditor.then(function(editor){// Get file pathlet file_url = editor.document.uri.fsPath;// The document object can be obtained for verification through editor.document// Create a test question collectionlet collections =[{
column:0,
line:3,
message:"error for test",
severity:'error'}];let diagnostics = hx.languages.createDiagnosticCollection('eslint');
diagnostics.set(file_url, collections);});