diff --git a/client/CHANGELOG.md b/client/CHANGELOG.md index af90ae6..9cef3ef 100644 --- a/client/CHANGELOG.md +++ b/client/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to the "Harbour and xHarbour" extension will be documented i # 0.9.14 - **server** better performance on long splitted line [#68](https://github.com/APerricone/harbourCodeExtension/issues/68) - **server** first support for [semantic token](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide) + - **server** first support for [reference](https://code.visualstudio.com/api/language-extensions/programmatic-language-features#find-all-references-to-a-symbol) + - **validation** hightlight of unused symbol + - **syntax** added shared keyword [#64](https://github.com/APerricone/harbourCodeExtension/issues/64) # 0.9.13 - **debugger** better stability diff --git a/client/src/validation.js b/client/src/validation.js index 7c03a32..9ce9328 100644 --- a/client/src/validation.js +++ b/client/src/validation.js @@ -41,7 +41,7 @@ function validate(textDocument) } args.push("-I"+pathVal); } - args = args.concat(section.extraOptions.split(" ").filter(function(el) {return el.length != 0})); + args = args.concat(section.extraOptions.split(" ").filter(function(el) {return el.length != 0 || el=="-ge1"})); var diagnostics = {}; diagnostics[textDocument.fileName] = []; function parseLine(subLine) @@ -78,7 +78,7 @@ function validate(textDocument) putAll = false; var diag = new vscode.Diagnostic(new vscode.Range(lineNr,m.index,lineNr,m.index+subject[0].length), r[4], r[3]=="Warning"? vscode.DiagnosticSeverity.Warning : vscode.DiagnosticSeverity.Error) - if(r[4].indexOf("declared but not used in function")>0) { + if(r[4].indexOf("not used")>0) { diag.tags = [vscode.DiagnosticTag.Unnecessary]; } diagnostics[r[1]].push(diag)