1
1
mirror of https://github.com/kahole/edamagit.git synced 2024-10-26 09:00:54 +03:00
Magit for VSCode
Go to file
2019-12-18 19:36:06 +01:00
.vscode adds staging and implements updates 2019-12-12 22:09:00 +01:00
languages adds foldingrangeprovider 2019-12-10 23:55:49 +01:00
src refactors 2019-12-18 19:36:06 +01:00
syntaxes adds boldness to section header through tm grammar 2019-12-15 21:26:08 +01:00
.gitignore adds .vscode 2019-12-04 18:23:06 +01:00
.vscodeignore inital chaos 2019-12-02 22:50:08 +01:00
CHANGELOG.md inital chaos 2019-12-02 22:50:08 +01:00
package-lock.json adds staging and implements updates 2019-12-12 22:09:00 +01:00
package.json good ideas 2019-12-17 21:37:41 +01:00
README.md refactors 2019-12-18 19:36:06 +01:00
tsconfig.json inital chaos 2019-12-02 22:50:08 +01:00
tslint.json inital chaos 2019-12-02 22:50:08 +01:00
vsc-extension-quickstart.md inital chaos 2019-12-02 22:50:08 +01:00

General

  • Go for MVP consisting of 90% of common use
  • plus all convenient features that come along with it

Auto refresh

  • FileChangeEvent

Workspaces

  • Needs to support multiple workspaces (Already do this somewhat)
  • Find out how to deal with status views and other views
  • Dispose of stuff when quit workspace etc..

File menu. Magit activate menu for a file in the repo

Main menu

Alle views i magit støtter hovedmenyen Burde være DocumentView som sendes rundt! Alle disse trenger update når det skjer noe uansett. Dog forskjellig update, e.g magit Log state Finn ut av multiplexingen her

Da tror jeg modellen som den er nå er grei. Hadde vært amazing om jeg klarer alt med 1 og samme language også altså kun "magit"... ikke "magit-status" etc

UI

SOLUTION 1:

    this._quickPick.onDidChangeValue( (e) => {
      console.log(e);
      console.log(this._quickPick.value);
      this._quickPick.value = "";
      magitCommand();
    });

SOLUTION 2:

   her: https://stackoverflow.com/questions/58483907/how-to-add-the-custom-when-clause-in-vs-code
  commands.executeCommand('setContext', 'magit.branching', true);

{
  "command": "extension.magit.branching.checkout",
  "key": "c",
  "when": "inQuickOpen && magit.branching"
}
QuickPick blir da bare en visuell hjelpe-popup!
      da blir den context-aware begrensinger av kommandoer visuell (til å begynne med i hvertfall)
   også for å velge branches og switches etc!

Languages

Dispose

Notes


magit README

Inspired/port by/of Magit https://magit.vc/

This is the README for your extension "magit". After writing up a brief description, we recommend including the following sections.

Features

Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.

For example if there is an image subfolder under your extension project workspace:

![feature X]images/feature-x.png

Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.

Requirements

If you have any requirements or dependencies, add a section describing those and how to install and configure them.

Extension Settings

Include if your extension adds any VS Code settings through the contributes.configuration extension point.

For example:

This extension contributes the following settings:

  • myExtension.enable: enable/disable this extension
  • myExtension.thing: set to blah to do something

Known Issues

Calling out known issues can help limit users opening duplicate issues against your extension.

Release Notes

Users appreciate release notes as you update your extension.

1.0.0

Initial release of ...

1.0.1

Fixed issue #.

1.1.0

Added features X, Y, and Z.


Working with Markdown

Note: You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

  • Split the editor (Cmd+\ on macOS or Ctrl+\ on Windows and Linux)
  • Toggle preview (Shift+CMD+V on macOS or Shift+Ctrl+V on Windows and Linux)
  • Press Ctrl+Space (Windows, Linux) or Cmd+Space (macOS) to see a list of Markdown snippets

For more information

Enjoy!