Update for new config schema
This commit is contained in:
parent
0e6581339c
commit
78d92acb15
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,6 @@ from pathlib import Path
|
|||
import json
|
||||
import itertools
|
||||
import subprocess
|
||||
from io import StringIO
|
||||
|
||||
HOME = Path.home()
|
||||
|
||||
|
@ -29,7 +28,8 @@ def get_search_project_dirs():
|
|||
def get_vscode_project_dirs():
|
||||
vscode_config = json.loads(VSCODE_CONFIG_FILE.read_text())
|
||||
|
||||
for recent_path in itertools.chain(*vscode_config['openedPathsList'].values()):
|
||||
for entry in vscode_config['openedPathsList']['entries']:
|
||||
recent_path = entry.get('folderUri')
|
||||
if not recent_path:
|
||||
continue
|
||||
recent_path_path = Path(recent_path.replace('file://', ''))
|
||||
|
|
Loading…
Reference in a new issue