@theia/editor-preview 1.57.0-next.7 → 1.57.0
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.
- package/README.md +11 -5
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -13,27 +13,32 @@
|
|
|
13
13
|
## Description
|
|
14
14
|
|
|
15
15
|
The `@theia/editor-preview` extension contributes the preview editor which supports the same functionality as a regular editor widget with the exception:
|
|
16
|
+
|
|
16
17
|
- if a preview editor has not "transitioned to a permanent editor" at the time an additional request to
|
|
17
18
|
preview a file is received, instead of opening a new editor, it will display the contents of the
|
|
18
19
|
newly requested file.
|
|
19
20
|
|
|
20
21
|
Events that will transition the preview to a permanent editor are as follows:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
|
|
23
|
+
- Modifying file contents being previewed
|
|
24
|
+
- Double clicking the preview tab
|
|
25
|
+
- Performing a drag/drop operation of the editor preview tab resulting in the tab being moved.
|
|
26
|
+
- Issuing a request to open the file being previewed (e.g. double clicking the file in the
|
|
25
27
|
navigator)
|
|
26
28
|
|
|
27
29
|
The preview editor is enabled by default when the extension is included in a Theia application, but
|
|
28
30
|
may be disabled by modifying the preference:
|
|
31
|
+
|
|
29
32
|
```json
|
|
30
33
|
editor.enablePreview
|
|
31
34
|
```
|
|
32
35
|
|
|
33
36
|
In addition to this value, the preference:
|
|
37
|
+
|
|
34
38
|
```json
|
|
35
39
|
list.openMode
|
|
36
40
|
```
|
|
41
|
+
|
|
37
42
|
must be set to "singleClick" to enable opening files in preview mode.
|
|
38
43
|
|
|
39
44
|
## Additional Information
|
|
@@ -48,5 +53,6 @@ must be set to "singleClick" to enable opening files in preview mode.
|
|
|
48
53
|
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
49
54
|
|
|
50
55
|
## Trademark
|
|
56
|
+
|
|
51
57
|
"Theia" is a trademark of the Eclipse Foundation
|
|
52
|
-
https://www.eclipse.org/theia
|
|
58
|
+
<https://www.eclipse.org/theia>
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/editor-preview",
|
|
3
|
-
"version": "1.57.0
|
|
3
|
+
"version": "1.57.0",
|
|
4
4
|
"description": "Theia - Editor Preview Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.57.0
|
|
7
|
-
"@theia/editor": "1.57.0
|
|
8
|
-
"@theia/navigator": "1.57.0
|
|
6
|
+
"@theia/core": "1.57.0",
|
|
7
|
+
"@theia/editor": "1.57.0",
|
|
8
|
+
"@theia/navigator": "1.57.0",
|
|
9
9
|
"tslib": "^2.6.2"
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"watch": "theiaext watch"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@theia/ext-scripts": "1.
|
|
44
|
+
"@theia/ext-scripts": "1.57.0"
|
|
45
45
|
},
|
|
46
46
|
"nyc": {
|
|
47
47
|
"extends": "../../configs/nyc.json"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "ca1d948d897b9a774f8cd68bb76bd2f335609cd4"
|
|
50
50
|
}
|