mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
return copy of array rather than reference (#971)
This commit is contained in:
@@ -131,6 +131,6 @@ export const TaskRegistry: ITaskRegistry = new class implements ITaskRegistry {
|
||||
}
|
||||
|
||||
getTasks(): string[] {
|
||||
return this._tasks;
|
||||
return this._tasks.slice(0);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user