Skip to content

Commit aaea828

Browse files
committed
tests successful
1 parent 5549bd8 commit aaea828

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

jupyter_openvscodeserver_proxy/__init__.py

+2-12
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ def _get_urlparams():
6363
])
6464
return url_params
6565

66-
# return the map path
67-
def _get_mappath(path):
68-
map_path = _get_urlparams()
69-
return map_path
70-
7166
# return command
7267
def _get_cmd(port):
7368

@@ -76,8 +71,6 @@ def _get_cmd(port):
7671
global _openvscodeserver_token
7772
try:
7873
fd_token, fpath_token = mkstemp()
79-
logger.info('Created secure token file for openvscode-server: ' + fpath_token)
80-
8174
with open(fd_token, 'w') as f:
8275
f.write(_openvscodeserver_token)
8376

@@ -120,13 +113,11 @@ def _get_env(port, unix_socket):
120113
# return icon path
121114
def _get_iconpath():
122115
icon_path = os.path.join(HERE, 'icons/openvscode-server-logo.svg')
123-
logger.info('OpenVSCode-Server icon-path: ' + icon_path)
124116
return icon_path
125117

126118
# return path info = launchers url file including url parameters
127119
def _get_pathinfo():
128-
path_info = 'openvscodeserver/' + _get_urlparams()
129-
logger.info('OpenVSCode-Server path-info: ' + path_info)
120+
path_info = 'openvscodeserver' + _get_urlparams()
130121
return path_info
131122

132123
# create random token
@@ -138,13 +129,12 @@ def _get_pathinfo():
138129
'command': _get_cmd,
139130
'timeout': _get_timeout(),
140131
'environment': _get_env,
141-
'mappath': _get_mappath,
142132
'new_browser_tab': True,
143133
'launcher_entry': {
144134
'enabled': True,
145135
'title': 'VSCode (OpenVSCode)',
146136
'icon_path': _get_iconpath(),
147-
# 'path_info': _get_pathinfo,
137+
'path_info': _get_pathinfo(),
148138
}
149139
}
150140

0 commit comments

Comments
 (0)