mirror of
https://github.com/coder/code-server.git
synced 2026-05-07 12:57:26 +02:00
Fix require.toUrl and walkthroughs
This commit is contained in:
@@ -7,5 +7,5 @@ export const getPathFromAmdModule = (_: typeof require, relativePath: string): s
|
||||
return process.mainModule.filename.slice(0, index);
|
||||
}
|
||||
|
||||
return relativePath ? URI.parse(require.toUrl(relativePath)).fsPath : "";
|
||||
return relativePath ? URI.file(relativePath).fsPath : "";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user