1
>
/*---------------------------------------------------------------------------------------------
ripgrep.ts
2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
import { Lazy } from '../common/lazy.js';
7
>
8
>
const _rgDiskPath = new Lazy(async () => {
9
const m = await import('@vscode/ripgrep-universal');
10
return m.rgPath.replace(/\bnode_modules\.asar\b/, 'node_modules.asar.unpacked');
11
});
13
>
export function rgDiskPath(): Promise<string> {
14
return _rgDiskPath.value;
15
}