Skip to content

Consider removing extensions to prototypes of base types in favor of custom functions #18871

Open

Description

@karrtikr

We're editing the String interface itself by extending String.prototype, the issue with that is that other extensions which might share the same typing names might override our prototypes, for eg. fileToCommandArgument() also exists in Jupyter extension.

Convert all these to functions similar to like we have done with asyncFilter.

Activity

  1. changed the title [-]Convert typings in `extensions.ts` to functions[/-] [+]Consider removing extensions to prototypes of base types in favor of custom functions[/+] on Apr 7, 2022
  2. lucyydotp commented on Jan 25, 2023

    @lucyydotp

    +1 for this, especially for replaceAll which is now standard and is breaking other plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-internalLabel for non-user facing issuesdebtCode quality issuesneeds PRReady to be worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions