-
Notifications
You must be signed in to change notification settings - Fork 236
/
Copy pathsettings.py
20 lines (16 loc) · 892 Bytes
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import sublime_plugin
from ..libs.global_vars import *
from ..libs import cli, logger
import os
class TypescriptOpenPluginDefaultSettingFile(sublime_plugin.WindowCommand):
def run(self):
default_plugin_setting_path = os.path.join(PLUGIN_DIR, "Preferences.sublime-settings")
sublime.active_window().open_file(default_plugin_setting_path)
class TypescriptOpenTsDefaultSettingFile(sublime_plugin.WindowCommand):
def run(self):
default_ts_setting_path = os.path.join(PLUGIN_DIR, "TypeScript.sublime-settings")
sublime.active_window().open_file(default_ts_setting_path)
class TypescriptOpenTsreactDefaultSettingFile(sublime_plugin.WindowCommand):
def run(self):
default_tsreact_setting_path = os.path.join(PLUGIN_DIR, "TypeScriptReact.sublime-settings")
sublime.active_window().open_file(default_tsreact_setting_path)