This commit improves the VSCode configuration script for Linux-based development environments. It fixes a script execution failure in the deskto version during development when using VSCode installed via Snap or Flatpak. It resolves the following error encountered during script execution in development mode (`npm run electron:dev`): `symbol lookup error: /snap/core20/current/lib/x86_64-linux-gnu/libpthread.so.0: undefined symbol: __libc_pthread_init, version GLIBC_PRIVATE` Changes: - Add a setting in VSCode configuration script to workaround script execution errors in sandboxed VSCode installations on Linux (see see microsoft/vscode#179274). - Migrate the configuration script to Python for cross-platform compatibility and simplicity. - Refactor the script for better extensibility. - Automate installation of recommended VSCode extensions. - Recommend VSCode Pylint extension for Python linting. - Standardize Python development settings in `.editorconfig`.
20 lines
415 B
INI
20 lines
415 B
INI
# Top-most EditorConfig file
|
|
root = true
|
|
|
|
[*.{js,jsx,ts,tsx,vue,sh}]
|
|
indent_style = space
|
|
indent_size = 2
|
|
end_of_line = lf
|
|
trim_trailing_whitespace = true
|
|
insert_final_newline = true
|
|
max_line_length = 100
|
|
|
|
[{Dockerfile}]
|
|
indent_style = space
|
|
indent_size = 4
|
|
|
|
[*.py]
|
|
indent_size = 4 # PEP 8 (the official Python style guide) recommends using 4 spaces per indentation level
|
|
indent_style = space
|
|
max_line_length = 100
|