|
1 | | -# LSP Example |
| 1 | +<div align="center"> |
| 2 | + <h1>ZeroSyntax-Snippets</h1> |
| 3 | + <img src="https://github.com/ViTeXFTW/ZeroSyntax/blob/main/ZeroSyntaxLogo128.png?raw=true"> |
| 4 | +</div> |
2 | 5 |
|
3 | | -Heavily documented sample code for https://code.visualstudio.com/api/language-extensions/language-server-extension-guide |
| 6 | +## Introduction |
| 7 | +**ZeroHour-Server** is a language server written in TypeScript for Command and Conquor Generals Zero Hour INI. The server is intended to provide formatting, linting and code completion. Currently this is intended for Visual Studio Code only, however all functionallities will be server sided and can be utilized in other IDEs by creating an interface for communicating with the server over Json-RPC. |
4 | 8 |
|
5 | | -## Functionality |
| 9 | +## Contributing |
| 10 | +For contributing you will need to fork the repository, create your own branch make and test any changes you feel is missing from the project and create a pull request. I will then take a look at the code changes and merge the code if everything is in order. |
6 | 11 |
|
7 | | -This Language Server works for plain text file. It has the following language features: |
8 | | -- Completions |
9 | | -- Diagnostics regenerated on each file change or configuration change |
| 12 | +## Licsens |
| 13 | +This projct is under the MIT [LICENSE](LICENSE) |
10 | 14 |
|
11 | | -It also includes an End-to-End test. |
| 15 | +## Sugestions |
| 16 | +As this is my first open-source project, if you have any ideas or suggestions please write to me on eithre Discord or mail. (Discord might be better) |
12 | 17 |
|
13 | | -## Structure |
14 | | - |
15 | | -``` |
16 | | -. |
17 | | -├── client // Language Client |
18 | | -│ ├── src |
19 | | -│ │ ├── test // End to End tests for Language Client / Server |
20 | | -│ │ └── extension.ts // Language Client entry point |
21 | | -├── package.json // The extension manifest. |
22 | | -└── server // Language Server |
23 | | - └── src |
24 | | - └── server.ts // Language Server entry point |
25 | | -``` |
26 | | - |
27 | | -## Running the Sample |
28 | | - |
29 | | -- Run `npm install` in this folder. This installs all necessary npm modules in both the client and server folder |
30 | | -- Open VS Code on this folder. |
31 | | -- Press Ctrl+Shift+B to start compiling the client and server in [watch mode](https://code.visualstudio.com/docs/editor/tasks#:~:text=The%20first%20entry%20executes,the%20HelloWorld.js%20file.). |
32 | | -- Switch to the Run and Debug View in the Sidebar (Ctrl+Shift+D). |
33 | | -- Select `Launch Client` from the drop down (if it is not already). |
34 | | -- Press ▷ to run the launch config (F5). |
35 | | -- In the [Extension Development Host](https://code.visualstudio.com/api/get-started/your-first-extension#:~:text=Then%2C%20inside%20the%20editor%2C%20press%20F5.%20This%20will%20compile%20and%20run%20the%20extension%20in%20a%20new%20Extension%20Development%20Host%20window.) instance of VSCode, open a document in 'plain text' language mode. |
36 | | - - Type `j` or `t` to see `Javascript` and `TypeScript` completion. |
37 | | - - Enter text content such as `AAA aaa BBB`. The extension will emit diagnostics for all words in all-uppercase. |
| 18 | +## Questions |
| 19 | +Discord: ViTeXFTW#6644 |
| 20 | + |
0 commit comments