@theia/task 1.56.0 → 1.57.0-next.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -1
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -17,6 +17,7 @@ The `@theia/task` extension extension permits executing scripts or binaries in t
17
17
  Tasks launch configurations can be defined independently for each workspace, under `.theia/tasks.json`. When present, they are automatically picked-up when a client opens a workspace, and watches for changes. A task can be executed by triggering the "Run Task" command (shortcut F1). A list of known tasks will then be available, one of which can be selected to trigger execution.
18
18
 
19
19
  Each task configuration looks like this:
20
+
20
21
  ``` json
21
22
  {
22
23
  "label": "Test task - list workspace files recursively",
@@ -48,6 +49,7 @@ Each task configuration looks like this:
48
49
  *args*: a list of strings, each one being one argument to pass to the command.
49
50
 
50
51
  *options*: the command options used when the command is executed. This is the place to provide the
52
+
51
53
  - *cwd*: the current working directory, in which the task's command will execute. This is the equivalent of doing a "cd" to that directory, on the command-line, before running the command. This can contain the variable *${workspaceFolder}*, which will be replaced at execution time by the path of the current workspace. If left undefined, will by default be set to workspace root.
52
54
  - *env*: the environment of the executed program or shell. If omitted the parent process' environment is used.
53
55
  - *shell*: configuration of the shell when task type is `shell`, where users can specify the shell to use with *shell*, and the arguments to be passed to the shell executable to run in command mode with *args*.
@@ -61,6 +63,7 @@ By default, *command* and *args* above are used on all platforms. However it's n
61
63
  *linux*: if *linux* is defined, its command, command arguments, and options (i.e., *linux.command*, *linux.args*, and *linux.options*) will take precedence over the *command*, *args*, and *options*, when the task is executed on a Linux backend.
62
64
 
63
65
  Here is a sample tasks.json that can be used to test tasks. Just add this content under the theia source directory, in directory `.theia`:
66
+
64
67
  ``` json
65
68
  {
66
69
  // Some sample Theia tasks
@@ -145,7 +148,9 @@ Here is a sample tasks.json that can be used to test tasks. Just add this conten
145
148
  ```
146
149
 
147
150
  ## Variables substitution
151
+
148
152
  The variables are supported in the following properties, using `${variableName}` syntax:
153
+
149
154
  - `command`
150
155
  - `args`
151
156
  - `options.cwd`
@@ -162,15 +167,20 @@ The variables are supported in the following properties, using `${variableName}`
162
167
  See [here](https://www.theia-ide.org/doc/index.html) for a detailed documentation.
163
168
 
164
169
  ## Contribution points
170
+
165
171
  The extension provides contribution points:
172
+
166
173
  - `browser/TaskContribution` - allows an extension to provide its own Task format and/or to provide the Tasks programmatically to the system
174
+
167
175
  ```typescript
168
176
  export interface TaskContribution {
169
177
  registerResolvers?(resolvers: TaskResolverRegistry): void;
170
178
  registerProviders?(providers: TaskProviderRegistry): void;
171
179
  }
172
180
  ```
181
+
173
182
  - `node/TaskRunnerContribution` - allows an extension to provide its own way of running/killing a Task
183
+
174
184
  ```typescript
175
185
  export interface TaskRunnerContribution {
176
186
  registerRunner(runners: TaskRunnerRegistry): void;
@@ -189,5 +199,6 @@ export interface TaskRunnerContribution {
189
199
  - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
190
200
 
191
201
  ## Trademark
202
+
192
203
  "Theia" is a trademark of the Eclipse Foundation
193
- https://www.eclipse.org/theia
204
+ <https://www.eclipse.org/theia>
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@theia/task",
3
- "version": "1.56.0",
3
+ "version": "1.57.0-next.37+4e3b183da",
4
4
  "description": "Theia - Task extension. This extension adds support for executing raw or terminal processes in the backend.",
5
5
  "dependencies": {
6
- "@theia/core": "1.56.0",
7
- "@theia/editor": "1.56.0",
8
- "@theia/filesystem": "1.56.0",
9
- "@theia/markers": "1.56.0",
10
- "@theia/monaco": "1.56.0",
6
+ "@theia/core": "1.57.0-next.37+4e3b183da",
7
+ "@theia/editor": "1.57.0-next.37+4e3b183da",
8
+ "@theia/filesystem": "1.57.0-next.37+4e3b183da",
9
+ "@theia/markers": "1.57.0-next.37+4e3b183da",
10
+ "@theia/monaco": "1.57.0-next.37+4e3b183da",
11
11
  "@theia/monaco-editor-core": "1.83.101",
12
- "@theia/process": "1.56.0",
13
- "@theia/terminal": "1.56.0",
14
- "@theia/userstorage": "1.56.0",
15
- "@theia/variable-resolver": "1.56.0",
16
- "@theia/workspace": "1.56.0",
12
+ "@theia/process": "1.57.0-next.37+4e3b183da",
13
+ "@theia/terminal": "1.57.0-next.37+4e3b183da",
14
+ "@theia/userstorage": "1.57.0-next.37+4e3b183da",
15
+ "@theia/variable-resolver": "1.57.0-next.37+4e3b183da",
16
+ "@theia/workspace": "1.57.0-next.37+4e3b183da",
17
17
  "async-mutex": "^0.3.1",
18
18
  "jsonc-parser": "^2.2.0",
19
19
  "p-debounce": "^2.1.0",
@@ -53,10 +53,10 @@
53
53
  "watch": "theiaext watch"
54
54
  },
55
55
  "devDependencies": {
56
- "@theia/ext-scripts": "1.56.0"
56
+ "@theia/ext-scripts": "1.57.0"
57
57
  },
58
58
  "nyc": {
59
59
  "extends": "../../configs/nyc.json"
60
60
  },
61
- "gitHead": "3b4498f8f1c66be688847418fcc35595282671dc"
61
+ "gitHead": "4e3b183daab034ae86eaa610421d4d9791ffdaa5"
62
62
  }