Skip to content

Commit 97bca67

Browse files
committed
planning
1 parent 3633ecb commit 97bca67

File tree

4 files changed

+10
-39
lines changed

4 files changed

+10
-39
lines changed

README.md

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,9 @@
1-
# LSP Example
1+
# Processing VSCode Extension
22

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 -->
45

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 -->

client/src/extension.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ export const state = {
2323
};
2424

2525
export async function activate(context: ExtensionContext) {
26-
// TODO: Check for other Processing plugins and request deactivation if they are installed
27-
// TODO: Add examples and sketchbook window
28-
// TODO: Generate grammar based on the Processing version
29-
// TODO: Setup language icon
26+
3027

3128
await setupSelectedVersion(context);
3229
setupCommands(context);

client/src/setupSidebar.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class SketchTreeItem extends TreeItem {
8181
arguments: [this.sketch.path]
8282
};
8383

84+
// TODO: Make showing a preview a toggleable setting
8485
const preview = `${sketch.path}/${sketch.name}.png`;
8586
if (existsSync(preview)) {
8687
this.iconPath = preview;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "processing4-vscode-extension",
3+
"displayName": "Processing",
34
"description": "Run Processing sketches in VS Code",
45
"author": "Stef Tervelde",
56
"license": "LGPL-2.1-or-later",

0 commit comments

Comments
 (0)