diff --git a/denops/dpp/context.ts b/denops/dpp/context.ts index de253e6..75c9306 100644 --- a/denops/dpp/context.ts +++ b/denops/dpp/context.ts @@ -44,7 +44,6 @@ export function defaultContext(): Context { export function defaultDppOptions(): DppOptions { return { - convertImportPaths: [], extOptions: {}, extParams: {}, hooksFileMarker: "{{{,}}}", diff --git a/denops/dpp/dpp.ts b/denops/dpp/dpp.ts index 49e7641..52daac3 100644 --- a/denops/dpp/dpp.ts +++ b/denops/dpp/dpp.ts @@ -421,39 +421,6 @@ export class Dpp { } } - // Generate static.ts - let mods: string[] = []; - for (const importPath of options.convertImportPaths) { - for (const glob of importPath.globs) { - for (const plugin of Object.values(recordPlugins)) { - if (!await isDirectory(`${plugin.rtp}/denops`)) { - continue; - } - - mods = mods.concat( - await fn.glob( - denops, - `${plugin.rtp}/${glob}`, - true, - true, - ) as string[], - ); - } - } - - const staticFile = `${basePath}/${name}/${importPath.output}`; - const staticLines = []; - for (const [index, path] of mods.entries()) { - staticLines.push(`import * as mod${index} from "file://${path}"`); - } - staticLines.push("export const mods = {"); - for (const [index, path] of mods.entries()) { - staticLines.push(` "${path}": mod${index},`); - } - staticLines.push("};"); - await Deno.writeTextFile(staticFile, staticLines.join("\n")); - } - await denops.cmd("doautocmd User Dpp:makeStatePost"); } diff --git a/denops/dpp/types.ts b/denops/dpp/types.ts index 8e9d180..084e1f0 100644 --- a/denops/dpp/types.ts +++ b/denops/dpp/types.ts @@ -30,7 +30,6 @@ type ImportPath = { }; export type DppOptions = { - convertImportPaths: ImportPath[]; extOptions: Record>; extParams: Record>; hooksFileMarker: string; diff --git a/doc/dpp.txt b/doc/dpp.txt index 5311979..532fe8f 100644 --- a/doc/dpp.txt +++ b/doc/dpp.txt @@ -63,20 +63,6 @@ INTERFACE *dpp-interface* ------------------------------------------------------------------------------ OPTIONS *dpp-options* - *dpp-option-convertImportPaths* -convertImportPaths (ImportPath[]) - It is the list of dynamic import paths for denops plugins. - It is converted to "output" file under {base-path}/{name} - directory. - -> - type ImportPath = { - globs: string[]; - output: string; - }; -< - It is useful for dynamic load denops plugins. - *dpp-option-extOptions* extOptions (dictionary) It is a dictionary that maps ext names to its options. @@ -865,5 +851,8 @@ END ============================================================================== COMPATIBILITY *dpp-compatibility* +2023.12.06 +* Remove "convertImportPaths". + ============================================================================== vim:tw=78:ts=8:ft=help:norl:noet:fen:noet: