fix(api): Code-Based Extension cause error on position map sorting (#7934)

Signed-off-by: 陳鈞 <jim60105@gmail.com>
This commit is contained in:
陳鈞 2024-09-04 08:41:12 +08:00 committed by GitHub
parent c5bdf08558
commit 80d14c9b22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,7 +65,7 @@ class Extensible:
if os.path.exists(builtin_file_path):
with open(builtin_file_path, encoding='utf-8') as f:
position = int(f.read().strip())
position_map[extension_name] = position
position_map[extension_name] = position
if (extension_name + '.py') not in file_names:
logging.warning(f"Missing {extension_name}.py file in {subdir_path}, Skip.")