@herb-tools/language-server 0.6.1 → 0.7.1

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@herb-tools/language-server",
3
3
  "description": "Herb HTML+ERB Language Tools and Language Server Protocol integration.",
4
- "version": "0.6.1",
4
+ "version": "0.7.1",
5
5
  "author": "Marco Roth",
6
6
  "license": "MIT",
7
7
  "engines": {
@@ -45,9 +45,9 @@
45
45
  "dist/"
46
46
  ],
47
47
  "dependencies": {
48
- "@herb-tools/formatter": "0.6.1",
49
- "@herb-tools/linter": "0.6.1",
50
- "@herb-tools/node-wasm": "0.6.1",
48
+ "@herb-tools/formatter": "0.7.1",
49
+ "@herb-tools/linter": "0.7.1",
50
+ "@herb-tools/node-wasm": "0.7.1",
51
51
  "dedent": "^1.6.0",
52
52
  "vscode-languageserver": "^9.0.1",
53
53
  "vscode-languageserver-textdocument": "^1.0.12"
package/src/config.ts CHANGED
@@ -81,7 +81,7 @@ export class Config {
81
81
  static async fromPathOrNew(projectPath: string) {
82
82
  try {
83
83
  return await this.fromPath(projectPath)
84
- } catch (error: any) {
84
+ } catch {
85
85
  return Config.newConfig(projectPath)
86
86
  }
87
87
  }
@@ -56,7 +56,7 @@ export class FormattingService {
56
56
  if (Array.isArray(matches) && matches.some((match: string) => filePath.includes(match) || filePath.endsWith(match))) {
57
57
  return false
58
58
  }
59
- } catch (error) {
59
+ } catch {
60
60
  continue
61
61
  }
62
62
  }
@@ -71,7 +71,7 @@ export class FormattingService {
71
71
  if (Array.isArray(matches) && matches.some((match: string) => filePath.includes(match) || filePath.endsWith(match))) {
72
72
  return true
73
73
  }
74
- } catch (error) {
74
+ } catch {
75
75
  continue
76
76
  }
77
77
  }
@@ -58,7 +58,7 @@ export class LinterService {
58
58
  return { diagnostics }
59
59
  }
60
60
 
61
- private lintToDignosticSeverity(severity: LintSeverity): DiagnosticSeverity {
61
+ private lintToDignosticSeverity(severity: LintSeverity): DiagnosticSeverity {
62
62
  switch (severity) {
63
63
  case "error": return DiagnosticSeverity.Error
64
64
  case "warning": return DiagnosticSeverity.Warning