Skip to content

Commit

Permalink
Disables wrapInReloadableClass (#219555)
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet authored Jul 1, 2024
1 parent 2601618 commit db7e8f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vs/platform/observable/common/wrapInReloadableClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
* When the original class changes, the instance is re-created.
*/
export function wrapInReloadableClass(getClass: () => (new (...args: any[]) => any)): (new (...args: any[]) => any) {
// Disables this function as it does not work.
if (1 === 1) {
// TODO@hediet fix this asap.
return getClass();
}
if (!isHotReloadEnabled()) {
return getClass();
}
Expand Down

0 comments on commit db7e8f1

Please sign in to comment.