Skip to content

Commit aa493e2

Browse files
committed
Add warning message on windows platform and do not start the language server.
Change compile directory to standard "out". Update tslint and add prettier. Reformat all files.
1 parent 43b3e49 commit aa493e2

16 files changed

+2584
-2469
lines changed

.github/workflows/ci.yml

+14-10
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@ on:
44
branches:
55
- master
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
15-
- name: Install Node.js
16-
uses: actions/setup-node@v2
17-
with:
18-
node-version: 14
19-
- run: mkdir artifacts
20-
- run: npm install
21-
- run: xvfb-run -a npm test
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Install Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: 14
19+
- run: mkdir artifacts
20+
- run: npm install
21+
- name: Prettier
22+
run: npm run prettier-check
23+
- name: Lint
24+
run: npm run tslint
25+
- run: xvfb-run -a npm test

.github/workflows/release.yml

+18-18
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v2
13-
- name: Install Node.js
14-
uses: actions/setup-node@v2
15-
with:
16-
node-version: 14
17-
- run: mkdir artifacts
18-
- run: npm install
19-
- run: npm build
20-
- name: "Release Extension"
21-
uses: actions/upload-release-asset@v1
22-
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
with:
25-
upload_url: ${{ github.event.release.upload_url }}
26-
asset_path: ./artifacts/phpactor.vsix
27-
asset_name: phpactor.vsix
28-
asset_content_type: application/octet-stream
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Install Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: 14
17+
- run: mkdir artifacts
18+
- run: npm install
19+
- run: npm build
20+
- name: 'Release Extension'
21+
uses: actions/upload-release-asset@v1
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
upload_url: ${{ github.event.release.upload_url }}
26+
asset_path: ./artifacts/phpactor.vsix
27+
asset_name: phpactor.vsix
28+
asset_content_type: application/octet-stream

.github/workflows/semantic.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Semantic Pull Request'
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
# pull_request:
10+
# types:
11+
# - opened
12+
# - edited
13+
# - synchronize
14+
15+
jobs:
16+
main:
17+
name: Validate PR Title
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: semantic-pull-request
21+
uses: amannn/action-semantic-pull-request@v4
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
validateSingleCommit: false

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
lib
1+
out
22
.vscode
33
node_modules
44
.vscode-test

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
coverage/
2+
out/
3+
package-lock.json
4+
package.json

.prettierrc

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"semi": false,
3+
"tabWidth": 4,
4+
"useTabs": false,
5+
"trailingComma": "es5",
6+
"bracketSpacing": true,
7+
"singleQuote": true,
8+
"printWidth": 120,
9+
"endOfLine": "lf",
10+
"proseWrap": "preserve",
11+
"arrowParens": "avoid",
12+
"overrides": [
13+
{
14+
"files": "{*.js?(on),*.yml,.*.yml,.prettierrc,*.md}",
15+
"options": {
16+
"tabWidth": 2
17+
}
18+
},
19+
{
20+
"files": ".prettierrc",
21+
"options": {
22+
"parser": "json"
23+
}
24+
}
25+
]
26+
}

CHANGELOG.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
CHANGELOG
2-
=========
1+
# CHANGELOG
32

4-
1.2.0
5-
-----
3+
## 1.2.0
64

75
- Allow conection via. socket #42 @Rodrigo-Barros
86
- Add `phpactor.trace.server` configuration option

README.md

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
Phpactor VSCode Extension
2-
=========================
1+
# Phpactor VSCode Extension
32

43
![phpactor2sm](https://user-images.githubusercontent.com/530801/27995098-82e72c4c-64c0-11e7-96d2-f549c711ca8b.png)
54

65
Extension which integrates [Phpactor](https://github.com/phpactor/phpactor)
76
with [VSCode](https://github.com/neoclide/coc.nvim).
87

9-
Installation
10-
------------
8+
## Installation
119

1210
### Normal Installation
1311

14-
1. Download the `phpactor.vsix` file from the [lastest release](https://github.com/phpactor/vscode-phpactor/releases/latest)
12+
1. Download the `phpactor.vsix` file from the [lastest release](https://github.com/phpactor/vscode-phpactor/releases/latest)
1513
2. Run `code --install-extension /path/to/phpactor.vsix`
1614

1715
### Development Installation
1816

19-
For development it is easier
17+
For development it is easier
2018

2119
1. Install [npm](https://www.npmjs.com/get-npm).
2220
2. Install typescript: `npm install -g typescript`
@@ -27,16 +25,14 @@ For development it is easier
2725

2826
Phpactor should then be enabled the next time you start VS code.
2927

30-
Commands
31-
--------
28+
## Commands
3229

3330
- `phpactor.update`: Update Phpactor to the latest version
3431
- `phpactor.status`: Show Phpactor's status
3532
- `phpactor.reindex`: Reindex the project.
3633
- `phpactor.services.list`: List Phpactor's currently running services.
3734
- `phpactor.config.dump`: Dump Phpactor's configuratoin to the log window.
3835

39-
Documentation
40-
-------------
36+
## Documentation
4137

4238
For full documentation see [the docs](https://phpactor.readthedocs.io/en/master/index.html).

0 commit comments

Comments
 (0)