Code Monkey home page Code Monkey logo

gryphonsharp-editor's Introduction

Gryphonsharp-vscode README

logo

Schemas

Collection of schemas for components of node editor communications. This repo will contain all schemas even those used by transpiler and overwatch.

Editor Commands

Commands sent by vsc to the editor when update in the filesystem happens.
All commands prefixed 'editor-'

  1. editor-sync
command: 'editor-sync'
data: {document body} | undefined

Instructs NodeEditor to refresh contents of the document. This is used when document was edited externally or loaded for the first time.
If data is null or undefined, editor will assume new file, broken files are not properly accounted for.

Alternative implementation (less effecient)

  1. editor-load
command: 'editor-load'
data: {document body} | undefined

Instructs NodeEditor to initialize from existing body.
If data is null or undefined, editor will construct empty workbench.

  1. editor-sync
command: 'editor-sync'
data: {document body} | undefined

Instructs NodeEditor to refresh contents of the document (keeping history of previous states). This is used when document was edited externally and change was caught by VSCode.
If data is null or undefined, editor will assume deletion of the document, but will keep state and mark source as 'deleted/moved'.

VSCode Commands

Commands sent by the ditor to vsc host
All commands prefixed 'vsc-'

  1. vsc-ready
command: 'vsc-ready'

Instruct VSCode that the NodeEditor is fully operational.
Usually VSCode will issue editor-load of current document command upon receiving ready command.

  1. vsc-sync
command: 'vsc-sync'
data: {document body}

Instructs VSCode to ping any other opened instances of the document about the changes. This will also notify VSCode of changes and change internal state of the document to be 'changed', which is marked by a circle next to a name of the document and can be saved (or is saved automatically by VSCode through built-in auto-save setting).

gryphonsharp-editor's People

Contributors

azustar avatar

Watchers

 avatar

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.