@theia/variable-resolver 1.56.0 → 1.57.0-next.112

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 +7 -2
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -15,8 +15,10 @@
15
15
  The `@theia/variable-resolved` extension provides variable substitution mechanism inside of strings using `${variableName}` syntax.
16
16
 
17
17
  ### Variable Contribution Point
18
+
18
19
  Extension provides a hook that allows any extensions to contribute its own variables.
19
20
  Here's the example of contributing two variables:
21
+
20
22
  - `${file}` - returns the name of the file opened in the current editor
21
23
  - `${lineNumber}` - returns the current line number in the current file
22
24
 
@@ -68,6 +70,7 @@ Note that a Variable is resolved to `MaybePromise<string | undefined>` which mea
68
70
  ### Using the Variable Resolver Service
69
71
 
70
72
  There's the example of how one can use Variable Resolver Service in its own plugin:
73
+
71
74
  ```typescript
72
75
  @injectable()
73
76
  export class MyService {
@@ -85,6 +88,7 @@ export class MyService {
85
88
  ```
86
89
 
87
90
  If `package.json` file is currently opened and cursor is on line 5 then the following output will be logged to the console:
91
+
88
92
  ```
89
93
  cursor is in file package.json on line 5
90
94
  ```
@@ -101,14 +105,15 @@ cursor is in file package.json on line 5
101
105
  - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
102
106
 
103
107
  ## Trademark
104
- "Theia" is a trademark of the Eclipse Foundation
105
- https://www.eclipse.org/theia
106
108
 
109
+ "Theia" is a trademark of the Eclipse Foundation
110
+ <https://www.eclipse.org/theia>
107
111
 
108
112
  # Theia - Variable Resolver Extension
109
113
 
110
114
  The extension
111
115
 
112
116
  ## License
117
+
113
118
  - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
114
119
  - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@theia/variable-resolver",
3
- "version": "1.56.0",
3
+ "version": "1.57.0-next.112+f4778c273",
4
4
  "description": "Theia - Variable Resolver Extension",
5
5
  "dependencies": {
6
- "@theia/core": "1.56.0",
6
+ "@theia/core": "1.57.0-next.112+f4778c273",
7
7
  "tslib": "^2.6.2"
8
8
  },
9
9
  "publishConfig": {
@@ -45,10 +45,10 @@
45
45
  "watch": "theiaext watch"
46
46
  },
47
47
  "devDependencies": {
48
- "@theia/ext-scripts": "1.56.0"
48
+ "@theia/ext-scripts": "1.58.0"
49
49
  },
50
50
  "nyc": {
51
51
  "extends": "../../configs/nyc.json"
52
52
  },
53
- "gitHead": "3b4498f8f1c66be688847418fcc35595282671dc"
53
+ "gitHead": "f4778c2737bb75613f0e1f99da8996bad91f6e17"
54
54
  }