Skip to content

Commit 30bdce9

Browse files
committed
fix: Properly set default configuration
1 parent 9951aef commit 30bdce9

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/configuration/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ configurationRegistry.registerDefaultConfigurations([{
77
'editor.codeLens': false,
88
'editor.fontSize': 12,
99
'editor.maxTokenizationLineLength': 1000,
10-
'editor.quickSuggestions': false
10+
'editor.quickSuggestions': false,
11+
'files.eol': '\n'
1112
}
1213
}])
1314

src/monaco.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@ monaco.extra.StandaloneServices.initialize({
2727
// Disable high contrast autodetection because it fallbacks on the hc-black no matter what
2828
monaco.extra.StandaloneServices.get(monaco.editor.IStandaloneThemeService).setAutoDetectHighContrast(false)
2929

30-
// Force EOL to be '\n' even on Windows
31-
const configurationService = monaco.extra.StandaloneServices.get(monaco.extra.IConfigurationService)
32-
configurationService.updateValue('files.eol', '\n').catch((error: Error) => {
33-
monaco.errorHandler.onUnexpectedError(new Error('Unable to set file eol', {
34-
cause: error
35-
}))
36-
})
37-
3830
monaco.errorHandler.setUnexpectedErrorHandler(error => {
3931
console.warn('Unexpected error', error)
4032
})

0 commit comments

Comments
 (0)