代码拉取完成,页面将自动刷新
import sys
import sublime
import os
import stat
from package_control import events
from .lib.helpers import get_plugin_path
from .lib.helpers import get_settings
from .lib.helpers import *
from .listeners import *
from .commands import *
from .lib.urllib3 import *
package_name = 'OmniSharp'
if sys.version_info < (3, 3):
raise RuntimeError('OmniSharpSublime works with Sublime Text 3 only')
def plugin_loaded():
print('omnisharp plugin_loaded')
if os.name == 'posix':
# give omnisharp.exe executable permissions
settings = sublime.load_settings('OmniSharpSublime.sublime-settings')
omni_exe_path = get_omni_path(active_view())
st = os.stat(omni_exe_path)
os.chmod(omni_exe_path, st.st_mode | 0o111)
def plugin_unloaded():
if events.pre_upgrade('OmniSharp'):
print('About to upgrade OmniSharp')
if os.name != 'posix':
# kill the exe before the update complains about exe in use
os.system('taskkill /f /im ' + get_omni_path(active_view()))
print('omnisharp plugin_unloaded')
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。