mirror of https://github.com/coder/code-server.git
parent
6638daf6f0
commit
fed545e67d
|
@ -3,7 +3,7 @@ import * as express from "express"
|
||||||
import * as fs from "fs"
|
import * as fs from "fs"
|
||||||
import * as path from "path"
|
import * as path from "path"
|
||||||
import * as semver from "semver"
|
import * as semver from "semver"
|
||||||
import * as pluginapi from "../../typings/plugin"
|
import * as pluginapi from "../../typings/pluginapi"
|
||||||
import { version } from "./constants"
|
import { version } from "./constants"
|
||||||
import * as util from "./util"
|
import * as util from "./util"
|
||||||
const fsp = fs.promises
|
const fsp = fs.promises
|
||||||
|
@ -30,7 +30,7 @@ interface Application extends pluginapi.Application {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PluginAPI implements the plugin API described in typings/plugin.d.ts
|
* PluginAPI implements the plugin API described in typings/pluginapi.d.ts
|
||||||
* Please see that file for details.
|
* Please see that file for details.
|
||||||
*/
|
*/
|
||||||
export class PluginAPI {
|
export class PluginAPI {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as express from "express"
|
import * as express from "express"
|
||||||
import * as path from "path"
|
import * as path from "path"
|
||||||
import * as pluginapi from "../../../typings/plugin"
|
import * as pluginapi from "../../../typings/pluginapi"
|
||||||
|
|
||||||
export function init(config: pluginapi.PluginConfig) {
|
export function init(config: pluginapi.PluginConfig) {
|
||||||
config.logger.debug("test-plugin loaded!")
|
config.logger.debug("test-plugin loaded!")
|
||||||
|
|
Loading…
Reference in New Issue