File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11from ..core .defaults import DEFAULT_SERIALIZATION_PATH
22from codetide import CodeTide
33
4+ from typing import Optional
45from pathlib import Path
56import time
67import os
@@ -31,10 +32,12 @@ def safe_print(string :str):
3132 # Fallback to ASCII-safe output
3233 print (string .encode ('ascii' , 'replace' ).decode ('ascii' ))
3334
34- async def initCodeTide (force_build : bool = False , flush : bool = False )-> CodeTide :
35+ async def initCodeTide (force_build : bool = False , flush : bool = False , workspace : Optional [ Path ] = None )-> CodeTide :
3536 """Initializes CodeTide instance either from cache or fresh parse, with serialization options."""
3637
37- workspace = getWorkspace ()
38+ if not workspace :
39+ workspace = getWorkspace ()
40+
3841 storagePath = workspace / DEFAULT_SERIALIZATION_PATH
3942 try :
4043 if force_build :
You can’t perform that action at this time.
0 commit comments