Skip to content

[CLOSED] Remove some circular dependencies #9382

@core-ai-bot

Description

@core-ai-bot

Issue by le717
Friday Feb 20, 2015 at 18:32 GMT
Originally opened as adobe/brackets#10641


(Branched off discussion in #10600)

  • isCSSPreprocessorFile() -> CSSUtils
  • _isStatic/ServerHtmlFileExt() -> LiveDevelopment
    • Possibly change to be based on language id instead of file ext
  • getSmartFileExtension() -> LanguageManager, and maybe rename to something like getCompoundFileExtension() for clarity
  • Move just showFileOpenError() to DocumentCommandHandlers, next to _showSaveFileError()
  • Update all affected tests/JSDoc

To note, moving showFileOpenError() to DCH and _isStaticHtmlFileExt() to LiveDevelopmentUtils are creating a circular dependencies (sigh) during deprecation.

Once merged, I suggest these APIs are put on the fast track for removal so the cycles they will resolve (and temporarily create/prolong) are removed.

/cc@peterflynn


le717 included the following code: https://github.com/adobe/brackets/pull/10641/commits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions