Skip to content
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

[IJPL-159940] Rainbow Variables is still broken in 2024.2 #2760

Closed
Chieffo2021 opened this issue Aug 13, 2024 · 3 comments
Closed

[IJPL-159940] Rainbow Variables is still broken in 2024.2 #2760

Chieffo2021 opened this issue Aug 13, 2024 · 3 comments

Comments

@Chieffo2021
Copy link

Have you checked the issues and discussions to ensure there are no duplicates?

Yes

Your programming languages

Vue

Free or paid?

Paid users

Expected Behavior

keep Rainbow Variables works well in the .vue file

Current Behavior

Variables will change their color between rainbow or unrainbow
image

Code snippet for reproduce

<script setup lang="ts">
import { ProjectsCompare } from '@orginjs/oss-evaluation-components/projects-compare';

const router = useRouter();
const route = useRoute();

const repositories = (() => {
  const repos = route.query.repos as string;
  if (!repos) {
    return [];
  }
  if (typeof repos === 'string') {
    return [repos];
  }
  return repos;
})();

const removeRepo = (repoName: string) => {
  let repos = route.query.repos;
  if (!repos) return;
  repos = typeof repos === 'string' ? [repos] : repos;
  repos = repos?.filter(repo => repo !== repoName);
  router.push({
    path: route.path,
    query: { repos },
  });
};

const addRepo = (repoName: string) => {
  let repos = route.query.repos;
  if (!repos) return;
  repos = typeof repos === 'string' ? [repos] : repos;
  router.push({
    path: route.path,
    query: { repos: [...repos, repoName] },
  });
};
</script>

<template>
  <ProjectsCompare :repositories="repositories" @remove-repo="removeRepo" @add-repo="addRepo" />
</template>

<style scoped lang="less"></style>

Your Environment

WebStorm 2024.2
Build #WS-242.20224.342, built on August 9, 2024
Licensed to Chieffo Chieffo
Subscription is active until March 15, 2025.
For educational use only.
Runtime version: 21.0.3+13-b509.4 x86_64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 14.6.1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 6000M
Cores: 8
Metal Rendering is ON
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true
ide.experimental.ui.inter.font=true
eslint.additional.file.extensions=svelte
typescript.service.lsp.node.arguments=--max_old_space_size=4096
terminal.new.ui=true
editor.minimap.enabled=true
Non-Bundled Plugins:
org.toml.lang (242.20224.155)
de.ax.powermode (105.501)
com.markskelton.one-dark-theme (5.11.0)
com.intellij.ideolog (242.20224.361)
Statistic (4.3.0)
String Manipulation (9.14.1)
AceJump (3.8.19)
com.hand.ikunProgress (1.0.1)
ru.adelf.idea.dotenv (2024.2)
com.alibabacloud.intellij.cosy (1.3.10)
me.rerere.unocss-intellij (1.7.1)
com.mallowigi (97.0.0)
zielu.gittoolbox (500.2.14+242)
mobi.hsz.idea.gitignore (4.5.3)
izhangzhihao.rainbow.brackets (2024.2.6-241)

@izhangzhihao izhangzhihao added waiting for JetBrains this feature/issue depends on JetBrains IDE issue and removed bug? labels Aug 13, 2024
@izhangzhihao
Copy link
Owner

izhangzhihao commented Aug 13, 2024

Still an IDE issue, please vote and follow this ticket.

@izhangzhihao izhangzhihao changed the title Rainbow Variables is broken in .vue file [IJPL-159940] Rainbow Variables is broken in .vue file Aug 13, 2024
@izhangzhihao izhangzhihao pinned this issue Aug 15, 2024
@izhangzhihao izhangzhihao changed the title [IJPL-159940] Rainbow Variables is broken in .vue file [IJPL-159940] Rainbow Variables is still broken in 2024.2 Aug 15, 2024
@dokasheng
Copy link

@izhangzhihao
Copy link
Owner

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

No branches or pull requests

3 participants