@@ -158,7 +158,24 @@ export type LeanMonacoOptions = {
158
158
159
159
await fontFile . load ( )
160
160
161
- this . updateVSCodeOptions ( options . vscode ?? { } )
161
+ this . updateVSCodeOptions ( {
162
+ // "editor.tabSize": 6,
163
+ "editor.minimap.enabled" : false ,
164
+ "editor.folding" : false , // reduces space to the right of line numbers.
165
+ "editor.lineNumbers" : 'on' ,
166
+ // "editor.lineNumbersMinChars": 1, // TODO: I believe this has no effect
167
+ "editor.glyphMargin" : true ,
168
+ // "editor.lineDecorationsWidth": 0,
169
+ // "editor.lineDecorationsWidth": 5,
170
+ "editor.detectIndentation" : false ,
171
+ "editor.lightbulb.enabled" : "on" ,
172
+ "editor.semanticHighlighting.enabled" : true ,
173
+ "editor.wordWrap" : "on" ,
174
+ "editor.wrappingStrategy" : "advanced" ,
175
+ "editor.acceptSuggestionOnEnter" : "off" ,
176
+ "editor.fontFamily" : "JuliaMono" ,
177
+ ...options . vscode
178
+ } )
162
179
163
180
if ( this . disposed ) return
164
181
@@ -186,9 +203,7 @@ export type LeanMonacoOptions = {
186
203
return extensionFiles
187
204
}
188
205
189
- /** This basically returns the `package.json` of `vscode-lean4` with some ts-fixes,
190
- * some lean4monaco-specific default options for the editor, and the custom themes.
191
- */
206
+ /** This basically returns the `package.json` of `vscode-lean4` with some ts-fixes and the custom themes. */
192
207
protected getExtensionManifest ( ) : IExtensionManifest {
193
208
return {
194
209
...packageJson ,
@@ -202,23 +217,6 @@ export type LeanMonacoOptions = {
202
217
// `menus` and `submenus` from the package.json
203
218
menus : undefined ,
204
219
submenus : undefined ,
205
- configurationDefaults : {
206
- ...packageJson . contributes . configurationDefaults ,
207
- // Tweak the default VSCode settings here.
208
- "editor.minimap.enabled" : false ,
209
- // "editor.folding": false,
210
- // "editor.lineNumbers": 'on',
211
- // "editor.lineNumbersMinChars": 1,
212
- "editor.glyphMargin" : true ,
213
- // "editor.lineDecorationsWidth": 5,
214
- // "editor.detectIndentation": false,
215
- "editor.lightbulb.enabled" : "on" ,
216
- "editor.semanticHighlighting.enabled" : true ,
217
- "editor.wordWrap" : "on" ,
218
- "editor.wrappingStrategy" : "advanced" ,
219
- "editor.acceptSuggestionOnEnter" : "off" ,
220
- "editor.fontFamily" : "JuliaMono" ,
221
- } ,
222
220
// Add custom themes here.
223
221
themes : [
224
222
{
0 commit comments