@@ -63,11 +63,6 @@ def _get_urlparams():
63
63
])
64
64
return url_params
65
65
66
- # return the map path
67
- def _get_mappath (path ):
68
- map_path = _get_urlparams ()
69
- return map_path
70
-
71
66
# return command
72
67
def _get_cmd (port ):
73
68
@@ -76,8 +71,6 @@ def _get_cmd(port):
76
71
global _openvscodeserver_token
77
72
try :
78
73
fd_token , fpath_token = mkstemp ()
79
- logger .info ('Created secure token file for openvscode-server: ' + fpath_token )
80
-
81
74
with open (fd_token , 'w' ) as f :
82
75
f .write (_openvscodeserver_token )
83
76
@@ -120,13 +113,11 @@ def _get_env(port, unix_socket):
120
113
# return icon path
121
114
def _get_iconpath ():
122
115
icon_path = os .path .join (HERE , 'icons/openvscode-server-logo.svg' )
123
- logger .info ('OpenVSCode-Server icon-path: ' + icon_path )
124
116
return icon_path
125
117
126
118
# return path info = launchers url file including url parameters
127
119
def _get_pathinfo ():
128
- path_info = 'openvscodeserver/' + _get_urlparams ()
129
- logger .info ('OpenVSCode-Server path-info: ' + path_info )
120
+ path_info = 'openvscodeserver' + _get_urlparams ()
130
121
return path_info
131
122
132
123
# create random token
@@ -138,13 +129,12 @@ def _get_pathinfo():
138
129
'command' : _get_cmd ,
139
130
'timeout' : _get_timeout (),
140
131
'environment' : _get_env ,
141
- 'mappath' : _get_mappath ,
142
132
'new_browser_tab' : True ,
143
133
'launcher_entry' : {
144
134
'enabled' : True ,
145
135
'title' : 'VSCode (OpenVSCode)' ,
146
136
'icon_path' : _get_iconpath (),
147
- # 'path_info': _get_pathinfo,
137
+ 'path_info' : _get_pathinfo () ,
148
138
}
149
139
}
150
140
0 commit comments