Git Product home page Git Product logo

refact-sublime's Introduction

refact-sublime

Refact for VS Code is a free, open-source AI code assistant

#Installation Instructions

  1. Download the repository.
  2. Download the refact-lsp server executable from https://github.com/smallcloudai/refact-lsp
  3. Move the server executable to the Server folder and rename the executable "refact-lsp"
  4. Move the folder repsository to sublime's "Packages" folder (you can find this by opening the command prompt in sublime and typing "browse packages")
  5. rename the folder to "refact"
  6. Open refact.sublime-settings and add the API key

#File Documentation#

#init.py

Entry point receives key events and update events. It calls refact_sessions methods depending on the event fired.

#refact_sessions.py

On initialization starts the Refact process and gets the connection to the server for LSP calls.

Sends messages to the LSP object to communicate with the server.

Holds the session state for each open file. Whenever a new session is created the LSP server is informed about the new file.

Calls PhantomState which handles displaying the grey text suggestions.

#refact_process.py

Starts the server process and resets the server if it dies. Logs messages from the server and informs the statusbar about server errors.

#refact_lsp.py

Used to communicate directly with the lsp server.

#phantom_state.py

Responsible for displaying the grey text suggestions.

#completion_text.py

Helper functions used by PhantomState to determine the exact text that needs to be displayed.

#utils.py

Helper functions for interacting with the sublime api

#Default.sublime-keymap

Used to setup key mappings for suggestion completions.

#Main.sublime-menu

Adds a “pause refact” button to the tools button in the headings.

#refact.sublime-settings

Holds the settings for the Refact plugin.

refact-sublime's People

Contributors

digital-phoenix avatar olegklimov 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.