We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3badf6b commit 9b979acCopy full SHA for 9b979ac
src/node/plugin.ts
@@ -13,6 +13,10 @@ export interface Plugin {
13
activate: Activate
14
}
15
16
+/**
17
+ * Intercept imports so we can inject code-server when the plugin tries to
18
+ * import it.
19
+ */
20
const originalLoad = require("module")._load
21
// eslint-disable-next-line @typescript-eslint/no-explicit-any
22
require("module")._load = function (request: string, parent: object, isMain: boolean): any {
0 commit comments