mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Use platform quotes ((Microsoft/vscode#52902)
This commit is contained in:
@ -62,8 +62,9 @@ async function pickFile() {
|
||||
}
|
||||
input.busy = true;
|
||||
const cwds = workspace.workspaceFolders ? workspace.workspaceFolders.map(f => f.uri.fsPath) : [process.cwd()];
|
||||
const q = process.platform === 'win32' ? '"' : '\'';
|
||||
rgs = cwds.map(cwd => {
|
||||
const rg = cp.exec(`rg --files -g '*${value}*'`, { cwd }, (err, stdout) => {
|
||||
const rg = cp.exec(`rg --files -g ${q}*${value}*${q}`, { cwd }, (err, stdout) => {
|
||||
const i = rgs.indexOf(rg);
|
||||
if (i !== -1) {
|
||||
if (rgs.length === cwds.length) {
|
||||
|
||||
Reference in New Issue
Block a user