mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-13 01:54:52 +08:00
We initialize the globals in the `-legacy.js` files and therefore don't require the additional assignments in the Runtime itself. R=jacktfranklin@chromium.org Bug: 1127902 Fixed: 1058320 Change-Id: Id6c13d9f2b9d781bfab73957621324335d394a2b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2410225 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
28 lines
751 B
JavaScript
28 lines
751 B
JavaScript
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// @ts-nocheck
|
|
// TODO(crbug.com/1011811): Enable TypeScript compiler checks
|
|
|
|
import * as TextEditor from '../text_editor/text_editor.js'; // eslint-disable-line no-unused-vars
|
|
|
|
/**
|
|
* @implements {TextEditor.CodeMirrorTextEditor.CodeMirrorMimeMode}
|
|
*/
|
|
export class DefaultCodeMirrorMimeMode {
|
|
/**
|
|
* @param {!Root.Runtime.Extension} extension
|
|
* @return {!Promise}
|
|
* @override
|
|
*/
|
|
async install(extension) {
|
|
return Promise.resolve();
|
|
}
|
|
}
|
|
|
|
self.CmModes = self.CmModes || {};
|
|
CmModes = CmModes || {};
|
|
|
|
CmModes.DefaultCodeMirrorMimeMode = DefaultCodeMirrorMimeMode;
|