aws-iam-language-server 0.0.26 → 0.0.28

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,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-iam-language-server",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "bin": "./src/server.js",
6
6
  "publisher": "MichaelBarney",
@@ -20,6 +20,11 @@
20
20
  "configuration": {
21
21
  "title": "AWS IAM Language Server",
22
22
  "properties": {
23
+ "aws-iam-language-server.diagnostics.enabled": {
24
+ "type": "boolean",
25
+ "default": true,
26
+ "description": "Enable all diagnostics. When disabled, no diagnostics are reported."
27
+ },
23
28
  "aws-iam-language-server.diagnostics.DUPLICATE_KEY.enabled": {
24
29
  "type": "boolean",
25
30
  "default": true,
@@ -84,6 +89,16 @@
84
89
  "type": "boolean",
85
90
  "default": true,
86
91
  "description": "Warn when account ID is not 12 digits."
92
+ },
93
+ "aws-iam-language-server.hover.enabled": {
94
+ "type": "boolean",
95
+ "default": true,
96
+ "description": "Enable hover tooltips for IAM policy elements."
97
+ },
98
+ "aws-iam-language-server.documentLink.enabled": {
99
+ "type": "boolean",
100
+ "default": true,
101
+ "description": "Enable document links for IAM actions."
87
102
  }
88
103
  }
89
104
  }
package/readme.md CHANGED
@@ -19,8 +19,14 @@ Install the [extension](https://marketplace.visualstudio.com/items?itemName=Mich
19
19
 
20
20
  ```json
21
21
  {
22
- // replace ${DIAGNOSTIC_RULE} with a diganostic rule id, like DEPENDENT_ACTION
23
- "aws-iam-language-server.diagnostics.${DIAGNOSTIC_RULE}.enabled": true
22
+ // disable all diagnostics
23
+ "aws-iam-language-server.diagnostics.enabled": true,
24
+ // disable a specific diagnostic rule, replace ${DIAGNOSTIC_RULE} with a rule id like DEPENDENT_ACTION
25
+ "aws-iam-language-server.diagnostics.${DIAGNOSTIC_RULE}.enabled": true,
26
+ // disable hover tooltips
27
+ "aws-iam-language-server.hover.enabled": true,
28
+ // disable document links
29
+ "aws-iam-language-server.documentLink.enabled": true
24
30
  }
25
31
  ```
26
32
 
@@ -43,9 +49,15 @@ vim.lsp.config("aws-iam-language-server", {
43
49
  settings = {
44
50
  ["aws-iam-language-server"] = {
45
51
  diagnostics = {
46
- -- replace ${DIAGNOSTIC_RULE} with a diganostic rule id, like DEPENDENT_ACTION
52
+ -- disable all diagnostics
53
+ enabled = false,
54
+ -- or disable a specific rule, replace ${DIAGNOSTIC_RULE} with a rule id like DEPENDENT_ACTION
47
55
  ${DIAGNOSTIC_RULE} = { enabled = false },
48
56
  },
57
+ -- disable hover tooltips
58
+ hover = { enabled = false },
59
+ -- disable document links
60
+ documentLink = { enabled = false },
49
61
  },
50
62
  },
51
63
  })