Skip to content

[idea] Ignore .idea/misc.xml which contains opened editor config #9015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

easyCZ
Copy link
Member

@easyCZ easyCZ commented Mar 30, 2022

Description

When the IDE has panes open, it checks in cursor information into .idea/misc.xml with contents like

 <component name="UnattendedHostPersistenceState">
    <option name="openedFilesInfos">
      <list>
        <OpenedFileInfo>
          <option name="caretOffset" value="0" />
          <option name="fileUrl" value="file://$PROJECT_DIR$/components/content-service/pkg/initializer/prebuild.go" />
        </OpenedFileInfo>
      </list>
    </option>
  </component>

This information is only meaningful to the local opened instance of the IDE and shouldn't be checked in.

Related Issue(s)

Fixes #

How to test

  1. Edit a file, run git status and see no changes are detected by git.

Release Notes

NONE

Documentation

@easyCZ easyCZ force-pushed the mp/idea-ignore-misc branch from 4c734cf to b9a539b Compare March 30, 2022 09:47
@easyCZ
Copy link
Member Author

easyCZ commented Mar 30, 2022

@akosyakov You've comitted the misc.xml into the repo originally, any particular reason that it should stay?

@akosyakov
Copy link
Member

@easyCZ I don't really looked at content of idea folder, as far as I understand this folder already has .gitignore file which should remove files unrelated to project config.

The main motivation of having idea folder to be checked in to enable discovery of gradle modules. I'm fine to ignore more files if backend-plugin and its dependencies are still auto discovered on start.

@roboquat roboquat merged commit 4cf4a56 into main Mar 30, 2022
@roboquat roboquat deleted the mp/idea-ignore-misc branch March 30, 2022 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants