Skip to content

Commit

Permalink
[monaco] Fix for bug eclipse-theia#4106
Browse files Browse the repository at this point in the history
Fixes eclipse-theia#4106

Signed-off-by: Sven Efftinge <[email protected]>
  • Loading branch information
svenefftinge committed Jan 21, 2019
1 parent 52d6ba7 commit 94a612a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/monaco/src/browser/monaco-editor-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class MonacoEditorProvider {
const originalGetValue = this.hookedConfigService.getValue.bind(this.hookedConfigService);
this.hookedConfigService.getValue = (arg1: any, arg2: any) => {
const creationOptions = originalGetValue(arg1, arg2);
if (creationOptions) {
if (typeof creationOptions === 'object') {
const eol = this.getEOL();
creationOptions.files = {
eol
Expand Down

0 comments on commit 94a612a

Please sign in to comment.