yaroslavyaroslav / OpenAI-sublime-text

First class Sublime Text AI assistant with GPT-o1 and ollama support!
MIT License
173 stars 13 forks source link

Openai.py Cleanup of code and refactoring #45

Closed TerminalFi closed 5 months ago

TerminalFi commented 5 months ago

Focusing on Openai.py first. I've clean up some code and made it easier to follow

  1. Removed the calls below. These don't do anything. Once Sublime loads the plugin, and future calls to sublime.load_settings("openAI.sublime-settings") just load from cache. If you want to get setting changes, we need to use a watcher built into sublime
    global settings
    plugin_loaded()
  2. Simplified status bar logic for rendering and building message