Skip to content

Commit

Permalink
Merge branch 'master' into implement-SubsetList-and-covers_precise
Browse files Browse the repository at this point in the history
  • Loading branch information
acalotoiu authored Nov 1, 2023
2 parents 6965b96 + 9ff33a7 commit 794c665
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dace/cli/sdfv.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ def view(sdfg: dace.SDFG, filename: Optional[Union[str, int]] = None):
"""
# If vscode is open, try to open it inside vscode
if filename is None:
if 'VSCODE_IPC_HOOK_CLI' in os.environ or 'VSCODE_GIT_IPC_HANDLE' in os.environ:
if (
'VSCODE_IPC_HOOK' in os.environ
or 'VSCODE_IPC_HOOK_CLI' in os.environ
or 'VSCODE_GIT_IPC_HANDLE' in os.environ
):
filename = tempfile.mktemp(suffix='.sdfg')
sdfg.save(filename)
os.system(f'code {filename}')
Expand Down

0 comments on commit 794c665

Please sign in to comment.