Skip to content

Commit 14073a8

Browse files
committed
Add a command runScript executing .e or .lxe files.
1 parent 575371c commit 14073a8

28 files changed

+4759
-1542
lines changed

.vscode/launch.json

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,49 @@
1010
"type": "extensionHost",
1111
"request": "launch",
1212
"runtimeExecutable": "${execPath}",
13-
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14-
"sourceMaps": true,
15-
"outFiles": ["${workspaceRoot}/dist/extension.js"]
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14+
"cwd": "${workspaceRoot}",
15+
"sourceMaps": true,
16+
"outFiles": ["${workspaceRoot}/dist/extension.js"]
1617
},
1718
{
1819
"name": "Launch Server",
1920
"type": "node",
20-
"request": "launch",
21-
"program": "${workspaceRoot}/dist/server.js",
22-
"args": ["--nolazy", "--inspect=6009"],
23-
"sourceMaps": true,
24-
"outFiles": ["${workspaceRoot}/dist/server.js"]
21+
"request": "launch",
22+
"program": "${workspaceRoot}/dist/server.js",
23+
"args": ["--nolazy", "--inspect=6009"],
24+
"cwd": "${workspaceRoot}",
25+
"sourceMaps": true,
26+
"outFiles": ["${workspaceRoot}/dist/server.js"]
2527
},
26-
{
27-
"name": "Attach to Server",
28-
"type": "node",
29-
"request": "attach",
30-
"port": 6009,
31-
"restart": true,
32-
"sourceMaps": true,
28+
{
29+
"name": "Attach to Server",
30+
"type": "node",
31+
"request": "attach",
32+
"port": 6009,
33+
"restart": true,
34+
"sourceMaps": true,
3335
"outFiles": ["${workspaceRoot}/dist/server.js"]
34-
},
35-
{
36-
"name": "Test Server",
37-
"type": "extensionHost",
38-
"request": "launch",
39-
"runtimeExecutable": "${execPath}",
40-
"args": [
41-
"--extensionDevelopmentPath=${workspaceRoot}",
42-
"--extensionTestsPath=${workspaceRoot}/out/client/test/index",
43-
"${workspaceRoot}/pkg/client/testFixture"
44-
],
45-
"sourceMaps": true,
46-
"outFiles": ["${workspaceRoot}/dist/extension.js"]
47-
}
48-
],
49-
"compounds": [
50-
{
51-
"name": "Client + Server",
52-
"configurations": ["Launch Client", "Attach to Server"]
53-
}
54-
]
55-
}
36+
},
37+
{
38+
"name": "Test Server",
39+
"type": "extensionHost",
40+
"request": "launch",
41+
"runtimeExecutable": "${execPath}",
42+
"args": [
43+
"--extensionDevelopmentPath=${workspaceRoot}",
44+
"--extensionTestsPath=${workspaceRoot}/out/client/test/index",
45+
"${workspaceRoot}/pkg/client/testFixture"
46+
],
47+
"cwd": "${workspaceRoot}",
48+
"sourceMaps": true,
49+
"outFiles": ["${workspaceRoot}/dist/extension.js"]
50+
}
51+
],
52+
"compounds": [
53+
{
54+
"name": "Client + Server",
55+
"configurations": ["Launch Client", "Attach to Server"]
56+
}
57+
]
58+
}

.vscodeignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
.DS_Store
2-
.eslintrc.json
2+
.eslintrc.yml
33
.editorconfig
44
.git
55
.github
66
.gitignore
77
.rollup.cache
88
.vscode
99
.vscodeignore
10+
backup
1011
doc/examples
11-
pkg
1212
node_modules
13+
pkg
1314
package-lock.json
1415
tsconfig.json
1516
tsconfig.tsbuildinfo

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.3.0
4+
5+
* Add a command runScript executing .e or .lxe files.
6+
* Do not include built-in Node.js modules in the bundled output.
7+
38
## 0.2.5
49

510
* Allow dereferencing `this` without the `this` keyword (chain the dot operators).

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020-2021 Ferdinand Prantl
3+
Copyright (c) 2020-2022 Ferdinand Prantl
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Except for the first four features below, the others depend on the [OScript lang
2727
* [Symbol Outline](#symbol-outline)
2828
* [Definition and References](#definition-and-references)
2929
* [Renaming](#renaming)
30+
* [Run Script](#run-script)
3031

3132
### Syntax Highlighting
3233

@@ -132,6 +133,16 @@ You can rename a variable or a function by the command "Rename Symbol" (`F2`).
132133

133134
Identifier renaming works currently only for the locally declared variables and functions.
134135

136+
### Run Script
137+
138+
You can run a script (ending with `.e` or `.lxe`) and watch the progress on the console. For example:
139+
140+
Echo("Hello, world!")
141+
142+
Will print "Hello, world!" to the console output.
143+
144+
This feature is in the development and depended on the state of [oscript-interpreter].
145+
135146
## Settings
136147

137148
This extension contributes the following settings. Names of the properties in table are shortened not to occupy so much space. They have to be prefixed by "oscript." to get the full name:
@@ -206,7 +217,7 @@ Web pages can highlight the OScript syntax of a code example [using JavaScript].
206217

207218
## License
208219

209-
Copyright (c) 2020-2021 Ferdinand Prantl
220+
Copyright (c) 2020-2022 Ferdinand Prantl
210221

211222
The logo was based on an [original icon](https://icon-icons.com/icon/file-type-vscode/130084) published among [vscode by Roberto Huertas](https://icon-icons.com/pack/vscode/2107) under the [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/) license. Thank you!
212223

@@ -216,6 +227,7 @@ Licensed under the [MIT license].
216227
[from the marketplace]: https://marketplace.visualstudio.com/items?itemName=prantlf.vscode-oscript
217228
[released package]: https://github.com/prantlf/vscode-oscript/releases
218229
[OScript language]: https://github.com/prantlf/oscript-parser/blob/master/doc/grammar.md#oscript-language-grammar
230+
[oscript-interpreter]: https://www.npmjs.com/package/oscript-interpreter
219231
[OScript language server]: ./pkg/server/#readme
220232
[Bracket Pair Colorizer 2]: https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2
221233
[static language description]: ./pkg/syntaxes/

0 commit comments

Comments
 (0)