|
|
@ -5,7 +5,6 @@ import { EditorUI } from '@remix-ui/editor' // eslint-disable-line |
|
|
|
import { Plugin } from '@remixproject/engine' |
|
|
|
import { Plugin } from '@remixproject/engine' |
|
|
|
import * as packageJson from '../../../../../package.json' |
|
|
|
import * as packageJson from '../../../../../package.json' |
|
|
|
import { PluginViewWrapper } from '@remix-ui/helper' |
|
|
|
import { PluginViewWrapper } from '@remix-ui/helper' |
|
|
|
import { exists } from 'fs' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const EventManager = require('../../lib/events') |
|
|
|
const EventManager = require('../../lib/events') |
|
|
|
|
|
|
|
|
|
|
@ -199,7 +198,7 @@ class Editor extends Plugin { |
|
|
|
return ext && this.modes[ext] ? this.modes[ext] : this.modes.txt |
|
|
|
return ext && this.modes[ext] ? this.modes[ext] : this.modes.txt |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async handleTypeScriptDependenciesOf (path, content, readFile) { |
|
|
|
async handleTypeScriptDependenciesOf (path, content, readFile, exists) { |
|
|
|
if (path.endsWith('.ts')) { |
|
|
|
if (path.endsWith('.ts')) { |
|
|
|
// extract the import, resolve their content
|
|
|
|
// extract the import, resolve their content
|
|
|
|
// and add the imported files to Monaco through the `addModel`
|
|
|
|
// and add the imported files to Monaco through the `addModel`
|
|
|
|