mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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[] {
|
getTasks(): string[] {
|
||||||
return this._tasks;
|
return this._tasks.slice(0);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user