Coder Social home page Coder Social logo

Comments (4)

Vtec234 avatar Vtec234 commented on May 29, 2024 1

Why don't we just use a standard VSCode setting for the toolchain version? Local storage is useful for persisting internal objects, but it doesn't sound appropriate for user-controllable settings.

from vscode-lean4.

tydeu avatar tydeu commented on May 29, 2024 1

But note that a Workspace settings ONLY applies to that work space, if you opened a different Lean 3 folder it will NOT apply the result of your previous Select Toolchain choice because it is a different workspace.

I would think this would be the desired behavior? Support for different toolchain settings for different workspaces seems ideal.

from vscode-lean4.

lovettchris avatar lovettchris commented on May 29, 2024

I agree we need to make it more clear when you have chosen something in Select Toolchain (this is why originally I wanted to edit your lean-toolchain file to make it very explicit what you just did. I stored it in the Workspace settings because you didn't want me to edit the lean-toolchain file. There is an undiscoverable way to "reset" your "Select Toolchain" choice and that is to select "Other..." and type just the word "lean". Now it will revert back to using your lean-toolchain file.

But note that a Workspace settings ONLY applies to that work space, if you opened a different Lean 3 folder it will NOT apply the result of your previous Select Toolchain choice because it is a different workspace.

from vscode-lean4.

lovettchris avatar lovettchris commented on May 29, 2024

Here's my proposed fix for this issue. First, the PR# #83 makes select toolchain less common by setting a (default) toolchain when there is no elan installed.

Then I added the following UI to show "(workspace override)" on the toolchain that is currently overriding the version in the current workspace:

image

and you can see there is now an explicit "Reset workspace override..." menu item, when the user picks this option the "(workspace override)" is removed and the folder falls back on the lean-toolchain specified in that folder or the (default) toolchain if there is one. After doing this Select Toolchain will show the following:

image

This is now implemented in PR# #83 since it was all closely related to changes already made there.

from vscode-lean4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.