MCPcopy Index your code
hub / github.com/microsoft/vscode-languageserver-node / resolveModule2

Function resolveModule2

server/src/files.ts:291–299  ·  view source on GitHub ↗
(workspaceRoot: string, moduleName: string, nodePath: string, tracer: (message: string, verbose?: string) => void)

Source from the content-addressed store, hash-verified

289 * `resolveModule` this method considers the parent chain as well.
290 */
291export function resolveModule2(workspaceRoot: string, moduleName: string, nodePath: string, tracer: (message: string, verbose?: string) => void): Thenable<any> {
292
293 return resolveModulePath(workspaceRoot, moduleName, nodePath, tracer).then((path) => {
294 if (tracer) {
295 tracer(`Module ${moduleName} got resolved to ${path}`);
296 }
297 return require(path);
298 });
299}

Callers

nothing calls this directly

Calls 2

resolveModulePathFunction · 0.85
tracerFunction · 0.85

Tested by

no test coverage detected