Skip to content

Commit 49fe8b3

Browse files
committed
Fixes #93, add ability to report issues
1 parent 3dad799 commit 49fe8b3

12 files changed

+416
-95
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.3.0] - 2021-09-17
11+
12+
### Added
13+
14+
- New "Report Issue" command (#93)
15+
- New "Show Output" command
16+
- Extend OutputChannel to be able to buffer output internally for error reporting (up to 1000 lines)
17+
1018
## [2.2.3] - 2021-09-17
1119

1220
### Fixed

package-lock.json

Lines changed: 78 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
}
1313
],
1414
"license": "MIT",
15-
"version": "2.2.3",
15+
"bugs": {
16+
"url": "https://github.com/psalm/psalm-vscode-plugin/issues"
17+
},
18+
"version": "2.3.0",
1619
"publisher": "getpsalm",
1720
"categories": [
1821
"Linters",
@@ -50,12 +53,13 @@
5053
},
5154
"capabilities": {
5255
"untrustedWorkspaces": {
53-
"supported":false,
56+
"supported": false,
5457
"description": "Since this runs Psalm, and Psalm can be configured to execute code on your computer, you should avoid opening untrusted projects while using this plugin"
5558
}
56-
5759
},
58-
"extensionKind": ["workspace"],
60+
"extensionKind": [
61+
"workspace"
62+
],
5963
"contributes": {
6064
"configuration": {
6165
"type": "object",
@@ -183,6 +187,16 @@
183187
"command": "psalm.analyzeWorkSpace",
184188
"title": "Analyze Workspace",
185189
"category": "Psalm"
190+
},
191+
{
192+
"command": "psalm.reportIssue",
193+
"title": "Report Issue",
194+
"category": "Psalm"
195+
},
196+
{
197+
"command": "psalm.showOutput",
198+
"title": "Show Output",
199+
"category": "Psalm"
186200
}
187201
],
188202
"menus": {
@@ -192,6 +206,12 @@
192206
},
193207
{
194208
"command": "psalm.analyzeWorkSpace"
209+
},
210+
{
211+
"command": "psalm.reportIssue"
212+
},
213+
{
214+
"command": "psalm.showOutput"
195215
}
196216
]
197217
}
@@ -211,6 +231,8 @@
211231
"webpack-cli": "^4.8.0"
212232
},
213233
"dependencies": {
234+
"@types/fs-extra": "^9.0.12",
235+
"fs-extra": "^10.0.0",
214236
"mz": "^2.7.0",
215237
"promisify-child-process": "^4.1.1",
216238
"semver": "^7.3.5",

resources/report_issue_template.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!-- Please search existing issues to avoid creating duplicates;
2+
https://github.com/psalm/psalm-vscode-plugin/issues?q=is%3Aopen+is%3Aissue+label%3Atype-bug
3+
-->
4+
5+
# Behaviour
6+
7+
## Expected
8+
9+
XXX
10+
11+
## Actual
12+
13+
XXX
14+
15+
## Steps to reproduce:
16+
17+
[**NOTE**: Self-contained, minimal reproducing code samples are **extremely** helpful and will expedite addressing your issue]
18+
19+
1.
20+
21+
<!--
22+
Note: If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ .
23+
You can attach such things **after** you create your issue on GitHub.
24+
-->
25+
26+
# Diagnostic data
27+
28+
- PHP version: {0}
29+
- Psalm version: {1}
30+
31+
<details>
32+
33+
<summary>"Psalm Language Server" channel in the OUTPUT panel (Last 1000 lines)</summary>
34+
35+
<p>
36+
37+
<!-- Run the "Psalm: Show Output" command to see the requested output. --->
38+
39+
```
40+
{2}
41+
```
42+
43+
</p>
44+
</details>
45+
46+
<details>
47+
48+
<summary>User Settings</summary>
49+
50+
<p>
51+
52+
```
53+
{3}
54+
```
55+
56+
</p>
57+
</details>

src/ConfigurationService.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,8 @@ export class ConfigurationService {
7979
}
8080
return this.config[key];
8181
}
82+
83+
public getAll(): { [key: string]: any } {
84+
return this.config;
85+
}
8286
}

0 commit comments

Comments
 (0)