Perform a simple search before regular matching (#580)

* Perform a simple search before regular matching

* add changelog

* Remove preprocessed regular expressions to reduce time
This commit is contained in:
Cloud 2024-04-03 21:46:01 +08:00 коммит произвёл GitHub
Родитель 27277af930
Коммит affcda2c55
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -13,6 +13,7 @@ Bug Fixes:
Improvements:
- Add telemetry about how many users are hitting the dry-run warning and how many users are stopping the dry-run process due to it. [#565](https://github.com/microsoft/vscode-makefile-tools/pull/565)
- Remove preprocessed regular expressions to reduce time. [#580](https://github.com/microsoft/vscode-makefile-tools/pull/580)
## 0.8
Bug Fixes:

Просмотреть файл

@ -226,11 +226,12 @@ export async function preprocessDryRunOutput(
// about them anyway and also there will be a correspondent line in the dryrun with these variables expanded.
// Don't remove lines with $ without paranthesis, there are valid compilation lines that would be ignored otherwise.
preprocessTasks.push(function (): void {
regexp = /.*\$\(.*/gm;
preprocessedDryRunOutputStr = preprocessedDryRunOutputStr.replace(
regexp,
""
);
preprocessedDryRunOutputStr = preprocessedDryRunOutputStr
.split("\n")
.map((e) => {
return e.indexOf("$(") >= 0 ? "" : e;
})
.join("\n");
});
// Extract the link command