Skip to content

Fix recently opened workspaces not being saved #337

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
Dec 7, 2023
Merged

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented Dec 7, 2023

From what I understand when you use BaseState you are supposed to use delegation. Something must have changed because this code used to work just as it was, but now it seems without delegation the properties are ignored and we were getting recent entries that were blank (looked like this: <RecentWorkspaceConnection />).

It does not appear possible to use delegation with a data class so I had to make a separate constructor.

Closes #304

From what I understand when you use BaseState you are supposed to use
delegation.  Something must have changed because this code used to work
just as it was, but now it seems without delegation the properties are
ignored and we were getting recent entries that were blank (looked like
this: `<RecentWorkspaceConnection />`).
Copy link
Contributor

github-actions bot commented Dec 7, 2023

Qodana Community for JVM

54 new problems were found

Inspection name Severity Problems
Unused symbol 🔶 Warning 29
Unstable API Usage 🔶 Warning 8
Incorrect string capitalization 🔶 Warning 7
Call to 'equals()' or 'hashCode()' on 'URL' object 🔶 Warning 2
Local 'var' is never modified and can be declared as 'val' 🔶 Warning 1
'Enum.values()' is recommended to be replaced by 'Enum.entries' since 1.9 🔶 Warning 1
Redundant semicolon 🔶 Warning 1
Useless call on not-null type 🔶 Warning 1
Function naming convention ◽️ Notice 1
Class member can have 'private' visibility ◽️ Notice 1
Size check can be replaced with 'isNotEmpty()' ◽️ Notice 1
Trailing comma recommendations ◽️ Notice 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

  1. Register at Qodana Cloud and configure the action
  2. Use GitHub Code Scanning with Qodana
  3. Host Qodana report at GitHub Pages
  4. Inspect and use qodana.sarif.json (see the Qodana SARIF format for details)

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2023.2.8
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

@code-asher code-asher merged commit 68ff70c into main Dec 7, 2023
@code-asher code-asher deleted the asher/fix-recents branch December 7, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

recently opened workspaces empty on Gateway restart
2 participants