@theia/editor 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.
package/README.md
CHANGED
|
@@ -26,5 +26,6 @@ The `@theia/editor` extension contributed functionality such as the `editor` wid
|
|
|
26
26
|
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
27
27
|
|
|
28
28
|
## Trademark
|
|
29
|
+
|
|
29
30
|
"Theia" is a trademark of the Eclipse Foundation
|
|
30
|
-
https://www.eclipse.org/theia
|
|
31
|
+
<https://www.eclipse.org/theia>
|
|
@@ -21,7 +21,7 @@ const injectable_preference_proxy_1 = require("@theia/core/lib/browser/preferenc
|
|
|
21
21
|
const nls_1 = require("@theia/core/lib/common/nls");
|
|
22
22
|
const core_1 = require("@theia/core");
|
|
23
23
|
const editor_generated_preference_schema_1 = require("./editor-generated-preference-schema");
|
|
24
|
-
/* eslint-disable
|
|
24
|
+
/* eslint-disable max-len,no-null/no-null */
|
|
25
25
|
// #region src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.ts
|
|
26
26
|
const codeActionsContributionSchema = {
|
|
27
27
|
'editor.codeActionsOnSave': {
|
|
@@ -44,7 +44,7 @@ const codeActionsContributionSchema = {
|
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
46
|
default: {},
|
|
47
|
-
|
|
47
|
+
markdownDescription: nls_1.nls.localizeByDefault('Run Code Actions for the editor on save. Code Actions must be specified and the editor must not be shutting down. Example: `"source.organizeImports": "explicit" `'),
|
|
48
48
|
scope: 'language-overridable',
|
|
49
49
|
}
|
|
50
50
|
};
|
|
@@ -67,7 +67,7 @@ const fileContributionSchema = {
|
|
|
67
67
|
'enumDescriptions': [
|
|
68
68
|
nls_1.nls.localizeByDefault('Format the whole file.'),
|
|
69
69
|
nls_1.nls.localizeByDefault('Format modifications (requires source control).'),
|
|
70
|
-
nls_1.nls.
|
|
70
|
+
nls_1.nls.localizeByDefault("Will attempt to format modifications only (requires source control). If source control can't be used, then the whole file will be formatted."),
|
|
71
71
|
],
|
|
72
72
|
'markdownDescription': nls_1.nls.localizeByDefault('Controls if format on save formats the whole file or only modifications. Only applies when `#editor.formatOnSave#` is enabled.'),
|
|
73
73
|
'scope': preferences_1.PreferenceScope.fromString('language-overridable'),
|
|
@@ -94,13 +94,13 @@ const fileContributionSchema = {
|
|
|
94
94
|
'type': 'string',
|
|
95
95
|
'enum': ['off', 'afterDelay', 'onFocusChange', 'onWindowChange'],
|
|
96
96
|
'markdownEnumDescriptions': [
|
|
97
|
-
nls_1.nls.
|
|
98
|
-
nls_1.nls.
|
|
99
|
-
nls_1.nls.
|
|
100
|
-
nls_1.nls.
|
|
97
|
+
nls_1.nls.localizeByDefault('An editor with changes is never automatically saved.'),
|
|
98
|
+
nls_1.nls.localizeByDefault('An editor with changes is automatically saved after the configured `#files.autoSaveDelay#`.'),
|
|
99
|
+
nls_1.nls.localizeByDefault('An editor with changes is automatically saved when the editor loses focus.'),
|
|
100
|
+
nls_1.nls.localizeByDefault('An editor with changes is automatically saved when the window loses focus.')
|
|
101
101
|
],
|
|
102
102
|
'default': core_1.environment.electron.is() ? 'off' : 'afterDelay',
|
|
103
|
-
'markdownDescription': nls_1.nls.
|
|
103
|
+
'markdownDescription': nls_1.nls.localizeByDefault('Controls [auto save](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save) of editors that have unsaved changes.')
|
|
104
104
|
},
|
|
105
105
|
'files.autoSaveDelay': {
|
|
106
106
|
'type': 'number',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-preferences.js","sourceRoot":"","sources":["../../src/browser/editor-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAGhF,qEAQ6C;AAC7C,iHAAyG;AACzG,oDAAiD;AACjD,sCAA0C;AAC1C,6FAAuH;AAEvH,
|
|
1
|
+
{"version":3,"file":"editor-preferences.js","sourceRoot":"","sources":["../../src/browser/editor-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAGhF,qEAQ6C;AAC7C,iHAAyG;AACzG,oDAAiD;AACjD,sCAA0C;AAC1C,6FAAuH;AAEvH,4CAA4C;AAC5C,kFAAkF;AAElF,MAAM,6BAA6B,GAAmC;IAClE,0BAA0B,EAAE;QACxB,KAAK,EAAE;YACH;gBACI,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,eAAe,EAAE;wBACb,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,SAAG,CAAC,iBAAiB,CAAC,8DAA8D,CAAC;qBACrG;iBACJ;gBACD,oBAAoB,EAAE;oBAClB,IAAI,EAAE,SAAS;iBAClB;aACJ;YACD;gBACI,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC5B;SACJ;QACD,OAAO,EAAE,EAAE;QACX,mBAAmB,EAAE,SAAG,CAAC,iBAAiB,CAAC,oKAAoK,CAAC;QAChN,KAAK,EAAE,sBAAsB;KAChC;CACJ,CAAC;AAMF,aAAa;AAEb,uEAAuE;AACvE,MAAM,sBAAsB,GAAmC;IAC3D,qBAAqB,EAAE;QACnB,MAAM,EAAE,SAAS;QACjB,aAAa,EAAE,SAAG,CAAC,iBAAiB,CAAC,yIAAyI,CAAC;QAC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BAA2B;IAC9B,GAAG,iBAAiB;CACvB,CAAC;AAEW,QAAA,sBAAsB,GAAqB;IACpD,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,UAAU;IACnB,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,kBAAkB;CACnC,CAAC;AAYW,QAAA,4BAA4B,GAAG,MAAM,CAAC,8BAA8B,CAAC,CAAC;AACtE,QAAA,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAG7D;;;;;;GAMG;AACH,SAAgB,uBAAuB,CAAC,WAA8B,EAAE,SAA2B,8BAAsB;IACrH,OAAO,IAAA,mCAAqB,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC;AAFD,0DAEC;AAED,SAAgB,qBAAqB,CAAC,IAAqB;IACvD,IAAI,CAAC,yBAAiB,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;QACzC,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAyB,oDAAsB,CAAC,CAAC;QAClF,OAAO,OAAO,CAAC,8BAAsB,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACtB,IAAI,CAAC,oCAA4B,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,8BAAsB,EAAE,CAAC,CAAC;IACvF,IAAI,CAAC,oCAAsB,CAAC,CAAC,SAAS,CAAC,oCAA4B,CAAC,CAAC;AACzE,CAAC;AAPD,sDAOC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.57.0-next.37+4e3b183da",
|
|
4
4
|
"description": "Theia - Editor Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.
|
|
7
|
-
"@theia/variable-resolver": "1.
|
|
6
|
+
"@theia/core": "1.57.0-next.37+4e3b183da",
|
|
7
|
+
"@theia/variable-resolver": "1.57.0-next.37+4e3b183da",
|
|
8
8
|
"tslib": "^2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"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": "4e3b183daab034ae86eaa610421d4d9791ffdaa5"
|
|
50
50
|
}
|
|
@@ -29,7 +29,7 @@ import { nls } from '@theia/core/lib/common/nls';
|
|
|
29
29
|
import { environment } from '@theia/core';
|
|
30
30
|
import { editorGeneratedPreferenceProperties, GeneratedEditorPreferences } from './editor-generated-preference-schema';
|
|
31
31
|
|
|
32
|
-
/* eslint-disable
|
|
32
|
+
/* eslint-disable max-len,no-null/no-null */
|
|
33
33
|
// #region src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.ts
|
|
34
34
|
|
|
35
35
|
const codeActionsContributionSchema: PreferenceSchema['properties'] = {
|
|
@@ -53,7 +53,7 @@ const codeActionsContributionSchema: PreferenceSchema['properties'] = {
|
|
|
53
53
|
}
|
|
54
54
|
],
|
|
55
55
|
default: {},
|
|
56
|
-
|
|
56
|
+
markdownDescription: nls.localizeByDefault('Run Code Actions for the editor on save. Code Actions must be specified and the editor must not be shutting down. Example: `"source.organizeImports": "explicit" `'),
|
|
57
57
|
scope: 'language-overridable',
|
|
58
58
|
}
|
|
59
59
|
};
|
|
@@ -82,7 +82,7 @@ const fileContributionSchema: PreferenceSchema['properties'] = {
|
|
|
82
82
|
'enumDescriptions': [
|
|
83
83
|
nls.localizeByDefault('Format the whole file.'),
|
|
84
84
|
nls.localizeByDefault('Format modifications (requires source control).'),
|
|
85
|
-
nls.
|
|
85
|
+
nls.localizeByDefault("Will attempt to format modifications only (requires source control). If source control can't be used, then the whole file will be formatted."),
|
|
86
86
|
],
|
|
87
87
|
'markdownDescription': nls.localizeByDefault('Controls if format on save formats the whole file or only modifications. Only applies when `#editor.formatOnSave#` is enabled.'),
|
|
88
88
|
'scope': PreferenceScope.fromString('language-overridable'),
|
|
@@ -109,13 +109,13 @@ const fileContributionSchema: PreferenceSchema['properties'] = {
|
|
|
109
109
|
'type': 'string',
|
|
110
110
|
'enum': ['off', 'afterDelay', 'onFocusChange', 'onWindowChange'],
|
|
111
111
|
'markdownEnumDescriptions': [
|
|
112
|
-
nls.
|
|
113
|
-
nls.
|
|
114
|
-
nls.
|
|
115
|
-
nls.
|
|
112
|
+
nls.localizeByDefault('An editor with changes is never automatically saved.'),
|
|
113
|
+
nls.localizeByDefault('An editor with changes is automatically saved after the configured `#files.autoSaveDelay#`.'),
|
|
114
|
+
nls.localizeByDefault('An editor with changes is automatically saved when the editor loses focus.'),
|
|
115
|
+
nls.localizeByDefault('An editor with changes is automatically saved when the window loses focus.')
|
|
116
116
|
],
|
|
117
117
|
'default': environment.electron.is() ? 'off' : 'afterDelay',
|
|
118
|
-
'markdownDescription': nls.
|
|
118
|
+
'markdownDescription': nls.localizeByDefault('Controls [auto save](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save) of editors that have unsaved changes.')
|
|
119
119
|
},
|
|
120
120
|
'files.autoSaveDelay': {
|
|
121
121
|
'type': 'number',
|