Browse Source

Fix codemirror mode handling

Steven Silvester 8 năm trước cách đây
mục cha
commit
395e298e8f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/codemirror/src/mode.ts

+ 1 - 1
packages/codemirror/src/mode.ts

@@ -61,7 +61,7 @@ namespace Mode {
 
     // Simplest, cheapest check by mode name.
     if (CodeMirror.modes.hasOwnProperty(spec.mode)) {
-      return Promise.resolve(mode);
+      return Promise.resolve(spec);
     }
 
     // Fetch the mode asynchronously.