Skip to content

Commit

Permalink
Fixes #93, add ability to report issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tm1000 committed Sep 17, 2021
1 parent 3dad799 commit 49fe8b3
Show file tree
Hide file tree
Showing 12 changed files with 416 additions and 95 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.3.0] - 2021-09-17

### Added

- New "Report Issue" command (#93)
- New "Show Output" command
- Extend OutputChannel to be able to buffer output internally for error reporting (up to 1000 lines)

## [2.2.3] - 2021-09-17

### Fixed
Expand Down
86 changes: 78 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 26 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
}
],
"license": "MIT",
"version": "2.2.3",
"bugs": {
"url": "https://github.com/psalm/psalm-vscode-plugin/issues"
},
"version": "2.3.0",
"publisher": "getpsalm",
"categories": [
"Linters",
Expand Down Expand Up @@ -50,12 +53,13 @@
},
"capabilities": {
"untrustedWorkspaces": {
"supported":false,
"supported": false,
"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"
}

},
"extensionKind": ["workspace"],
"extensionKind": [
"workspace"
],
"contributes": {
"configuration": {
"type": "object",
Expand Down Expand Up @@ -183,6 +187,16 @@
"command": "psalm.analyzeWorkSpace",
"title": "Analyze Workspace",
"category": "Psalm"
},
{
"command": "psalm.reportIssue",
"title": "Report Issue",
"category": "Psalm"
},
{
"command": "psalm.showOutput",
"title": "Show Output",
"category": "Psalm"
}
],
"menus": {
Expand All @@ -192,6 +206,12 @@
},
{
"command": "psalm.analyzeWorkSpace"
},
{
"command": "psalm.reportIssue"
},
{
"command": "psalm.showOutput"
}
]
}
Expand All @@ -211,6 +231,8 @@
"webpack-cli": "^4.8.0"
},
"dependencies": {
"@types/fs-extra": "^9.0.12",
"fs-extra": "^10.0.0",
"mz": "^2.7.0",
"promisify-child-process": "^4.1.1",
"semver": "^7.3.5",
Expand Down
57 changes: 57 additions & 0 deletions resources/report_issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!-- Please search existing issues to avoid creating duplicates;
https://github.com/psalm/psalm-vscode-plugin/issues?q=is%3Aopen+is%3Aissue+label%3Atype-bug
-->

# Behaviour

## Expected

XXX

## Actual

XXX

## Steps to reproduce:

[**NOTE**: Self-contained, minimal reproducing code samples are **extremely** helpful and will expedite addressing your issue]

1.

<!--
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/ .
You can attach such things **after** you create your issue on GitHub.
-->

# Diagnostic data

- PHP version: {0}
- Psalm version: {1}

<details>

<summary>"Psalm Language Server" channel in the OUTPUT panel (Last 1000 lines)</summary>

<p>

<!-- Run the "Psalm: Show Output" command to see the requested output. --->

```
{2}
```

</p>
</details>

<details>

<summary>User Settings</summary>

<p>

```
{3}
```

</p>
</details>
4 changes: 4 additions & 0 deletions src/ConfigurationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,8 @@ export class ConfigurationService {
}
return this.config[key];
}

public getAll(): { [key: string]: any } {
return this.config;
}
}
Loading

0 comments on commit 49fe8b3

Please sign in to comment.