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

希望提供配置项,可以修改鼠标浮动到Deployment时, 默认启动方式 #479

Open
l1905 opened this issue Feb 15, 2023 · 0 comments

Comments

@l1905
Copy link

l1905 commented Feb 15, 2023

现在鼠标浮动到Deployment时, 默认启动方式是“Start Development", 即替换模式

但真实业务开发场景是,不影响原有pod应用, 即不希望使用 替换模式, 而希望默认方式是 “start DevMode(Duplicate)",复制出一个新的pod进行开发。

但现在并未提供可以修改 默认启动方式的地方, 除非修改源码package.json中的菜单配置选项中的group, 将Nocalhost.startDevMode Nocalhost.startCopyDevMode命令的 group "navigation", "inline@0" 做替换。

{
          "command": "Nocalhost.startDevMode",
          "when": "viewItem =~ /^workload-(deployment|statefulSet|job|daemonSet|cronjob|pod|crd-resources)-dev-(?!(developing|starting|develop_starting|vpn_))/i",
          "group": "navigation"
        },
        {
          "command": "Nocalhost.startCopyDevMode",
          "when": "viewItem =~ /^workload-(deployment|statefulSet|job|daemonSet|cronjob|pod|crd-resources)-dev-(?!(developing-duplicate|developing-replace-self|starting|vpn_healthy|vpn_unhealthy))/i",
          "group": "inline@0"
        },

所以官方是否可提供一种通过vscode setting.json配置的方式, 来修改默认启动方式呢

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

No branches or pull requests

1 participant