Skip to content
This repository was archived by the owner on Jul 30, 2022. It is now read-only.

Commit c413bb8

Browse files
authored
Merge pull request #6 from chitsaou/workspace-symbols
Support Workspace symbols
2 parents bac7d64 + 62b5b2b commit c413bb8

31 files changed

+8007
-1597
lines changed

.circleci/config.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:8
6+
7+
working_directory: ~/repo
8+
9+
steps:
10+
- checkout
11+
12+
# Download and cache dependencies
13+
- restore_cache:
14+
keys:
15+
- v1-dependencies-{{ checksum "package.json" }}
16+
# fallback to using the latest cache if no exact match is found
17+
- v1-dependencies-
18+
19+
- run: npm install
20+
21+
- save_cache:
22+
paths:
23+
- node_modules
24+
key: v1-dependencies-{{ checksum "package.json" }}
25+
26+
- run: cd server && npm test
27+
# TODO: test client
28+
# - run: cd client && npm test
29+
- run: npm run compile
30+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ node_modules
33
client/server
44
.DS_Store
55
*.vsix
6+
7+
**/tmp/**/*

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.11.3

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,26 @@
2828
],
2929
"protocol": "legacy",
3030
"preLaunchTask": "watch:server"
31+
},
32+
{
33+
"type": "node",
34+
"request": "launch",
35+
"name": "Jest All Server",
36+
"cwd": "${workspaceFolder}/server",
37+
"program": "${workspaceFolder}/server/node_modules/.bin/jest",
38+
"args": ["--runInBand", "-c", "${workspaceFolder}/server/jest.config.js"],
39+
"console": "integratedTerminal",
40+
"internalConsoleOptions": "neverOpen"
41+
},
42+
{
43+
"type": "node",
44+
"request": "launch",
45+
"name": "Jest Current File Server",
46+
"cwd": "${workspaceFolder}/server",
47+
"program": "${workspaceFolder}/server/node_modules/.bin/jest",
48+
"args": ["-c", "${workspaceFolder}/server/jest.config.js", "${relativeFile}"],
49+
"console": "integratedTerminal",
50+
"internalConsoleOptions": "neverOpen"
3151
}
3252
]
3353
}

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ To install, visit: https://marketplace.visualstudio.com/items?itemName=yorkxin.c
1010

1111
- :ballot_box_with_check: Syntax check while typing
1212
- :ballot_box_with_check: Show all Symbol Definitions Within a Document ("Go to symbol in file" command)
13+
- :ballot_box_with_check: Show all All Symbol Definitions in Workspace ("Go to symbol in workspace" command)
1314

1415
### Planned
1516

1617
- Show completion proposals
17-
- Show all All Symbol Definitions in Workspace ("Go to symbol in workspace" command)
1818
- Show definition of a symbol
1919
- Help with function signatures
2020

@@ -36,6 +36,11 @@ Note: features are described on [Visual Studio Code Language Extension Guideline
3636
* Open `demo/app.coffee`
3737
* Use commands, for example, "Go to symbol in file..." command.
3838

39+
## Related Libraries
40+
41+
* [coffeescript-lsp-core](https://github.com/chitsaou/coffeescript-lsp-core) - Core library for CoffeeScript Language Server Protocol
42+
* [coffeescript-types](https://github.com/chitsaou/coffeescript-types) - CoffeeScript parser type declarations in TypeScript
43+
3944
## Release
4045

4146
For maintainer only.

client/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 0.2.0
2+
3+
Features:
4+
5+
- Show all All Symbol Definitions in Workspace ("Go to symbol in workspace" command)
6+
17
# 0.1.4
28

39
Fixes:

client/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Helps you programming in CoffeeScript.
66

77
- Syntax check while typing
88
- Show all Symbol Definitions Within a Document ("Go to symbol in file" command)
9+
- Show all All Symbol Definitions in Workspace ("Go to symbol in workspace" command)
910

1011
For other planned features, issues and source code, see https://github.com/chitsaou/vscode-coffeescript-support .
1112

0 commit comments

Comments
 (0)