|
1 | | -# LSP Example |
| 1 | +# Processing VSCode Extension |
2 | 2 |
|
3 | | -Heavily documented sample code for https://code.visualstudio.com/api/language-extensions/language-server-extension-guide |
| 3 | +<!-- TODO: Write the README --> |
| 4 | +<!-- TODO: Add general Processing Foundation repository contents --> |
4 | 5 |
|
5 | | -## Functionality |
6 | | - |
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 |
10 | | - |
11 | | -It also includes an End-to-End test. |
12 | | - |
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. |
| 6 | +<!-- TODO: Check for other Processing plugins and request deactivation if they are installed --> |
| 7 | +<!-- TODO: Generate grammar based on the installed Processing version --> |
| 8 | +<!-- TODO: Setup publishing https://code.visualstudio.com/api/working-with-extensions/publishing-extension --> |
| 9 | +<!-- TODO: Merge changes to Processing https://github.com/processing/processing4/pull/1115 --> |
0 commit comments