Update extensions/ql-vscode/src/data-extensions-editor/shared/in-progress-methods.ts

Co-authored-by: Koen Vlaswinkel <koesie10@users.noreply.github.com>
This commit is contained in:
Robert
2023-08-14 11:27:38 +01:00
committed by GitHub
parent 37c461a89b
commit 55aeb3ce86

View File

@@ -19,10 +19,7 @@ export class InProgressMethods {
packageName: string,
methods: Set<string>,
): InProgressMethods {
const newMethodMap = new Map<string, Set<string>>();
this.methodMap.forEach((value, key) => {
newMethodMap.set(key, new Set<string>(value));
});
const newMethodMap = new Map<string, Set<string>>(this.methodMap);
newMethodMap.set(packageName, methods);
return new InProgressMethods(newMethodMap);
}