dts-linter 0.3.0-beta6 → 0.3.0-beta7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,7 +59,7 @@ Repository: https://github.com/moxystudio/node-cross-spawn
59
59
 
60
60
  ----------------------------------------------------------------------
61
61
 
62
- devicetree-language-server@0.6.0-beta1
62
+ devicetree-language-server@0.6.0-beta2
63
63
  License: Apache-2.0
64
64
  Repository: https://github.com/kylebonnici/dts-lsp
65
65
 
@@ -71,7 +71,7 @@ Repository: https://github.com/kpdecker/jsdiff
71
71
 
72
72
  ----------------------------------------------------------------------
73
73
 
74
- dts-linter@0.3.0-beta6
74
+ dts-linter@0.3.0-beta7
75
75
  License: Apache-2.0
76
76
  Repository: https://github.com/kylebonnici/dts-linter
77
77
 
@@ -14676,7 +14676,7 @@ glob.glob = glob;
14676
14676
  // package.json
14677
14677
  var package_default = {
14678
14678
  name: "dts-linter",
14679
- version: "0.3.0-beta6",
14679
+ version: "0.3.0-beta7",
14680
14680
  main: "index.js",
14681
14681
  repository: {
14682
14682
  type: "git",
@@ -14701,7 +14701,7 @@ var package_default = {
14701
14701
  license: "Apache-2.0",
14702
14702
  description: "",
14703
14703
  dependencies: {
14704
- "devicetree-language-server": "^0.6.0-beta1"
14704
+ "devicetree-language-server": "^0.6.0-beta2"
14705
14705
  },
14706
14706
  devDependencies: {
14707
14707
  "@types/node": "^24.0.3",
@@ -16160,22 +16160,6 @@ var gitAnnotation = (level, message, fileName, titleStr, start, end) => {
16160
16160
  ].filter((i) => !!i);
16161
16161
  console.log(`${levelToGitAnnotation(level)} ${items.join(",")}::${message}`);
16162
16162
  };
16163
- function logDiagnostic(issue, fileName) {
16164
- log(
16165
- issue.severity === DiagnosticSeverity.Error ? "error" : issue.severity === DiagnosticSeverity.Warning ? "warn" : "warn",
16166
- issue.message,
16167
- fileName,
16168
- void 0,
16169
- {
16170
- line: issue.range.start.line + 1,
16171
- col: issue.range.start.character
16172
- },
16173
- {
16174
- line: issue.range.end.line + 1,
16175
- col: issue.range.end.character
16176
- }
16177
- );
16178
- }
16179
16163
  var log = (level, message, fileName, titleStr, start, end, indent, progressString) => {
16180
16164
  if (outputFormat === "json") {
16181
16165
  jsonOut.issues.push({
@@ -16542,9 +16526,22 @@ var formatFile = async (connection, absPath, mainFile, progressString, originalT
16542
16526
  indent,
16543
16527
  progressString
16544
16528
  );
16545
- if (outputFormat === "annotations") {
16529
+ if (outputFormat === "json" || outputFormat === "annotations") {
16546
16530
  result.diagnostics.forEach((issue) => {
16547
- logDiagnostic(issue, absPath);
16531
+ log(
16532
+ "error",
16533
+ issue.message,
16534
+ absPath,
16535
+ void 0,
16536
+ {
16537
+ line: issue.range.start.line,
16538
+ col: issue.range.start.character
16539
+ },
16540
+ {
16541
+ line: issue.range.end.line,
16542
+ col: issue.range.end.character
16543
+ }
16544
+ );
16548
16545
  });
16549
16546
  }
16550
16547
  if (diffs.has(absPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dts-linter",
3
- "version": "0.3.0-beta6",
3
+ "version": "0.3.0-beta7",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,4 +40,4 @@
40
40
  "vscode-languageserver-types": "^3.17.5",
41
41
  "zod": "^3.25.67"
42
42
  }
43
- }
43
+ }