@node-projects/web-component-designer-codeview-monaco 0.1.19 → 0.1.20
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.
|
@@ -143,14 +143,7 @@ export class CodeViewMonaco extends BaseCustomWebComponentLazyAppend {
|
|
|
143
143
|
minimap: {
|
|
144
144
|
size: 'fill'
|
|
145
145
|
},
|
|
146
|
-
readOnly: this.#readOnly
|
|
147
|
-
scrollbar: {
|
|
148
|
-
useShadows: false,
|
|
149
|
-
verticalHasArrows: true,
|
|
150
|
-
horizontalHasArrows: true,
|
|
151
|
-
vertical: 'visible',
|
|
152
|
-
horizontal: 'visible'
|
|
153
|
-
}
|
|
146
|
+
readOnly: this.#readOnly
|
|
154
147
|
};
|
|
155
148
|
if (this.singleRow) {
|
|
156
149
|
options.minimap.enabled = false;
|
|
@@ -160,6 +153,14 @@ export class CodeViewMonaco extends BaseCustomWebComponentLazyAppend {
|
|
|
160
153
|
options.lineDecorationsWidth = 0;
|
|
161
154
|
options.lineNumbersMinChars = 0;
|
|
162
155
|
}
|
|
156
|
+
else {
|
|
157
|
+
options.scrollbar = {};
|
|
158
|
+
options.scrollbar.useShadows = false;
|
|
159
|
+
options.scrollbar.verticalHasArrows = true;
|
|
160
|
+
options.scrollbar.horizontalHasArrows = true;
|
|
161
|
+
options.scrollbar.vertical = 'visible';
|
|
162
|
+
options.scrollbar.horizontal = 'visible';
|
|
163
|
+
}
|
|
163
164
|
this._monacoEditor = CodeViewMonaco.monacoLib.editor.create(this._editor, options);
|
|
164
165
|
let selectionTimeout;
|
|
165
166
|
let disableCursorChange;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "web-component-designer addon: Code Editor using Monaco",
|
|
3
3
|
"name": "@node-projects/web-component-designer-codeview-monaco",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.20",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/widgets/codeView/code-view-monaco.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|