GithubHelp home page GithubHelp logo

tjx666 / reload-can-solve-any-problems Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 0.0 732 KB

Home Page: https://marketplace.visualstudio.com/items?itemName=YuTengjing.reload-can-solve-any-problems

License: Other

TypeScript 100.00%
reload restart shortcut vscode-extension

reload-can-solve-any-problems's Introduction

Reload Can Solve Any Problems

Version Installs Downloads Rating Star Last Updated

test PRs Welcome Github Open Issues LICENSE

Features

  • highly customizable status bar to reload vscode and extensions
  • add reload window shortcut โŒ˜+R
  • provide a command Reload Servers to reload all extensions servers, you can configure the servers by setting reload-can-solve-any-problems.reloadServers.

usage

Configure

You can totally control how the status bar and it's tooltip display.

Following is the default settings:

{
  "reload-can-solve-any-problems.statusBar": {
    "text": "$(debug-restart)",
    "commandId": "reload-can-solve-any-problems.reloadServers",
    "alignment": "left",
    "priority": 100
  },
  "reload-can-solve-any-problems.reloadItems": [
    {
      "name": "ESLint",
      "extensionId": "dbaeumer.vscode-eslint",
      "operations": [
        {
          "text": "$(debug-restart)",
          "title": "Reload ESLint",
          "commandId": "eslint.restart",
          "statusBarProgressMessage": "Reload ESlint"
        }
      ]
    },
    {
      "name": "TypeScript",
      "extensionId": "vscode.typescript-language-features",
      "operations": [
        {
          "text": "$(project)",
          "title": "Reload TypeScript Projects",
          "commandId": "typescript.reloadProjects",
          "statusBarProgressMessage": "Reload TypeScript Projects"
        },
        {
          "text": "$(server-process)",
          "title": "Restart TypeScript Server",
          "commandId": "typescript.restartTsServer"
        }
      ]
    },
    {
      "name": "Volar",
      "extensionId": "Vue.volar",
      "operations": [
        {
          "text": "$(project)",
          "title": "Volar Reload Projects",
          "commandId": "volar.action.reloadProject",
          "statusBarProgressMessage": "Volar Reload Projects"
        },
        {
          "text": "$(server-process)",
          "title": "Restart Vue Server",
          "commandId": "volar.action.restartServer",
          "statusBarProgressMessage": "Restart Vue Server"
        }
      ]
    }
  ],
  // will reload the server in parallel
  "reload-can-solve-any-problems.reloadServers": [
    {
      "extensionId": "dbaeumer.vscode-eslint",
      "commandId": "eslint.restart"
    },
    {
      "extensionId": "vscode.typescript-language-features",
      "commandId": "typescript.reloadProjects"
    },
    {
      "extensionId": "Vue.volar",
      "commandId": "volar.action.reloadProject"
    }
  ]
}

Inspiration

About the extension name

I mainly help my team to maintain the front-end build system this year. They often ask me about the vscode intelisence problem such as Why my eslint errors disappear? Most of their problems can be solved by reloading extension or reloading vscode. So, this is why I named the extension: Reload Can Solve Any Problems.

Why add reload window shortcut?

VSCode had a builtin command workbench.action.reloadWindow to reload window, but it's builtin shortcut can only be used under extension development host, which means you need to call it by command plate most of time.

But in fact, the reload command is almost daily used, and many users are not familiar with vscode settings. So, it would be convenient to provide it for new users.

Why add status bar?

I will throw a screenshot which means to reload the vscode first when my colleagues ask me about vscode issue. Click a button would be easier to understand than open command plate and run command.

This extension also help you to organize the common reload commands of extensions by status bar tooltip.

My extensions

Check all here: publishers/YuTengjing

reload-can-solve-any-problems's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

reload-can-solve-any-problems's Issues

reloadItems panel cannot be hovered or clicked

The "reloadItems" panel cannot be hovered or clicked. My vscode version is 1.78.0. I remember it was still working before the last vscode update.

context

Reload Can Solve Any Problems extensions version: 0.1.2

1021181683773733_ pic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.