fix: Fix incorrect config patching for runBuildScripts

This commit is contained in:
Lukas Wirth 2022-05-11 12:33:56 +02:00
parent b271ef8fd1
commit e68352a9f5
2 changed files with 6 additions and 6 deletions

View File

@ -36,9 +36,9 @@ macro_rules! patch {
assist.importPrefix -> imports.prefix; assist.importPrefix -> imports.prefix;
cache.warmup -> primeCaches.enable; cache.warmup -> primeCaches.enable;
cargo.loadOutDirsFromCheck -> cargo.buildScripts.enable; cargo.loadOutDirsFromCheck -> cargo.buildScripts.enable;
cargo.runBuildScripts -> cargo.runBuildScripts.overrideCommand; cargo.runBuildScripts -> cargo.buildScripts.enable;
cargo.runBuildScriptsCommand -> cargo.runBuildScripts.overrideCommand; cargo.runBuildScriptsCommand -> cargo.buildScripts.overrideCommand;
cargo.useRustcWrapperForBuildScripts -> cargo.runBuildScripts.useRustcWrapper; cargo.useRustcWrapperForBuildScripts -> cargo.buildScripts.useRustcWrapper;
diagnostics.enableExperimental -> diagnostics.experimental.enable; diagnostics.enableExperimental -> diagnostics.experimental.enable;
experimental.procAttrMacros -> procMacro.attributes.enable; experimental.procAttrMacros -> procMacro.attributes.enable;
highlighting.strings -> semanticHighlighting.strings.enable; highlighting.strings -> semanticHighlighting.strings.enable;

View File

@ -148,9 +148,9 @@ export async function updateConfig(config: vscode.WorkspaceConfiguration) {
["assist.importPrefix", "imports.prefix",], ["assist.importPrefix", "imports.prefix",],
["cache.warmup", "primeCaches.enable",], ["cache.warmup", "primeCaches.enable",],
["cargo.loadOutDirsFromCheck", "cargo.buildScripts.enable",], ["cargo.loadOutDirsFromCheck", "cargo.buildScripts.enable",],
["cargo.runBuildScripts", "cargo.runBuildScripts.overrideCommand",], ["cargo.runBuildScripts", "cargo.buildScripts.enable",],
["cargo.runBuildScriptsCommand", "cargo.runBuildScripts.overrideCommand",], ["cargo.runBuildScriptsCommand", "cargo.buildScripts.overrideCommand",],
["cargo.useRustcWrapperForBuildScripts", "cargo.runBuildScripts.useRustcWrapper",], ["cargo.useRustcWrapperForBuildScripts", "cargo.buildScripts.useRustcWrapper",],
["completion.snippets", "completion.snippets.custom",], ["completion.snippets", "completion.snippets.custom",],
["diagnostics.enableExperimental", "diagnostics.experimental.enable",], ["diagnostics.enableExperimental", "diagnostics.experimental.enable",],
["experimental.procAttrMacros", "procMacro.attributes.enable",], ["experimental.procAttrMacros", "procMacro.attributes.enable",],