-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: linuxInode is saved in VS Code settings #208
base: master
Are you sure you want to change the base?
Conversation
linuxInode was meant to be temporary variable.
src/blender_executable.ts
Outdated
@@ -180,6 +180,10 @@ async function getFilteredBlenderPath(type: BlenderType): Promise<BlenderPathDat | |||
// update VScode settings | |||
if (settingsBlenderPaths.find(data => data.path === pathData.path) === undefined) { | |||
settingsBlenderPaths.push(pathData); | |||
// do not save linuxInode is settings | |||
for (const settingExe of settingsBlenderPaths) { | |||
settingExe.linuxInode = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's better to explicitly mention the properties that should be stored instead of excluding some? That makes it more obvious what's going on imo.
linuxInode?: never; | ||
} | ||
|
||
export type BlenderExecutablesRuntime = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about a separate type for saving settings? unfortunately renaming made some noise
do not squash merge.
Needs to be tested on linux, now I do not have access to linux.