Skip to content

Commit ccc3f40

Browse files
authored
Merge branch 'main' into master
2 parents 9d353e7 + a509ab7 commit ccc3f40

File tree

19 files changed

+702
-885
lines changed

19 files changed

+702
-885
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy server and extension
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
deploy:

.gitignore

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1-
**/node_modules
2-
1+
# Build output
32
vscode-client/out
43
server/out
4+
5+
# Linter cache
6+
coverage/
7+
.eslintcache/
8+
9+
# OS related
510
.DS_Store
611
*.log
7-
coverage
8-
.eslintcache
12+
13+
# NPM cache
14+
node_modules/
15+
package-lock.json
16+
17+
# YARN cache
18+
.yarn/

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact = true

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ We strongly recommend that you install [shellcheck][shellcheck] to enable lintin
2222
npm i -g bash-language-server
2323
```
2424

25+
On Fedora based distros:
26+
27+
```bash
28+
dnf install -y nodejs-bash-language-server
29+
```
30+
2531
If you encounter installation errors, ensure you have node version 12 or newer (`node --version`).
2632

2733
### Clients

docs/releasing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ To release a new version of the vscode extension
66

77
- Bump the version in `vscode-client/package.json`
88
- Update `vscode-client/CHANGELOG.md`
9-
- Merge to master
9+
- Merge to main branch
1010

1111
## Server
1212

1313
To release a new version of the server
1414

1515
- Bump the version in `server/package.json`
1616
- Update `server/CHANGELOG.md`
17-
- Merge to master
17+
- Merge to main branch

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
"link-server": "npm uninstall -g bash-language-server && yarn compile && yarn unlink bash-language-server && cd server && yarn link && cd ../vscode-client && yarn link bash-language-server"
1717
},
1818
"devDependencies": {
19-
"@types/jest": "27.5.1",
20-
"@types/node": "12.20.52",
21-
"@typescript-eslint/eslint-plugin": "5.26.0",
22-
"@typescript-eslint/parser": "5.26.0",
23-
"eslint": "8.16.0",
19+
"@types/jest": "28.1.7",
20+
"@types/node": "12.20.55",
21+
"@typescript-eslint/eslint-plugin": "5.33.1",
22+
"@typescript-eslint/parser": "5.33.1",
23+
"eslint": "8.22.0",
2424
"eslint-config-prettier": "8.5.0",
25-
"eslint-plugin-jest": "26.2.2",
26-
"eslint-plugin-prettier": "4.0.0",
25+
"eslint-plugin-jest": "26.8.3",
26+
"eslint-plugin-prettier": "4.2.1",
2727
"eslint-plugin-simple-import-sort": "7.0.0",
28-
"jest": "28.1.0",
29-
"prettier": "2.6.2",
30-
"ts-jest": "28.0.2",
31-
"typescript": "4.6.4",
28+
"jest": "28.1.3",
29+
"prettier": "2.7.1",
30+
"ts-jest": "28.0.8",
31+
"typescript": "4.7.4",
3232
"vscode-languageserver": "6.1.1"
3333
},
3434
"dependencies": {},

renovate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
"extends": [
33
"config:base"
4+
],
5+
"packageRules": [
6+
{
7+
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
8+
"automerge": true
9+
}
410
]
511
}

server/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Bash Language Server
22

3+
## 3.0.5
4+
5+
- Fix Shellcheck issue when using vim-lsp https://github.com/bash-lsp/bash-language-server/pull/443
6+
7+
## 3.0.4
8+
9+
- Fix Windows support for analyzer https://github.com/bash-lsp/bash-language-server/pull/433
10+
311
## 3.0.3
412

513
- Workaround for emscripten node 18 support https://github.com/bash-lsp/bash-language-server/pull/404

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "A language server for Bash",
44
"author": "Mads Hartmann",
55
"license": "MIT",
6-
"version": "3.0.3",
6+
"version": "3.0.5",
77
"publisher": "mads-hartmann",
88
"main": "./out/server.js",
99
"typings": "./out/server.d.ts",

server/src/__tests__/analyzer.test.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,19 +223,23 @@ describe('findSymbolCompletions', () => {
223223
describe('commentsAbove', () => {
224224
it('returns a string of a comment block above a line', () => {
225225
analyzer.analyze(CURRENT_URI, FIXTURES.COMMENT_DOC)
226-
expect(analyzer.commentsAbove(CURRENT_URI, 22)).toEqual('doc for func_one')
226+
expect(analyzer.commentsAbove(CURRENT_URI, 22)).toEqual(
227+
'```txt\ndoc for func_one\n```',
228+
)
227229
})
228230

229231
it('handles line breaks in comments', () => {
230232
analyzer.analyze(CURRENT_URI, FIXTURES.COMMENT_DOC)
231233
expect(analyzer.commentsAbove(CURRENT_URI, 28)).toEqual(
232-
'doc for func_two\nhas two lines',
234+
'```txt\ndoc for func_two\nhas two lines\n```',
233235
)
234236
})
235237

236238
it('only returns connected comments', () => {
237239
analyzer.analyze(CURRENT_URI, FIXTURES.COMMENT_DOC)
238-
expect(analyzer.commentsAbove(CURRENT_URI, 36)).toEqual('doc for func_three')
240+
expect(analyzer.commentsAbove(CURRENT_URI, 36)).toEqual(
241+
'```txt\ndoc for func_three\n```',
242+
)
239243
})
240244

241245
it('returns null if no comment found', () => {
@@ -245,13 +249,15 @@ describe('commentsAbove', () => {
245249

246250
it('works for variables', () => {
247251
analyzer.analyze(CURRENT_URI, FIXTURES.COMMENT_DOC)
248-
expect(analyzer.commentsAbove(CURRENT_URI, 42)).toEqual('works for variables')
252+
expect(analyzer.commentsAbove(CURRENT_URI, 42)).toEqual(
253+
'```txt\nworks for variables\n```',
254+
)
249255
})
250256

251257
it('returns connected comments with empty comment line', () => {
252258
analyzer.analyze(CURRENT_URI, FIXTURES.COMMENT_DOC)
253259
expect(analyzer.commentsAbove(CURRENT_URI, 51)).toEqual(
254-
'this is also included\n\ndoc for func_four',
260+
'```txt\nthis is also included\n\ndoc for func_four\n```',
255261
)
256262
})
257263
})

0 commit comments

Comments
 (0)