microsoft / vscode-tools-for-ai

Azure Machine Learning for Visual Studio Code, previously called Visual Studio Code Tools for AI, is an extension to easily build, train, and deploy machine learning models to the cloud or the edge with Azure Machine Learning service.
Other
325 stars 95 forks source link

Filter compute completions based on compute type #1028

Open shsuman opened 3 years ago

SiddhanthUnnithan commented 3 years ago

This should be schema-driven instead of us adding logic on the client side to figure out whether the user is editing a file that accepts specific compute types (e.g. CommandJob compute doesn't accept Inferencing Clusters).

SiddhanthUnnithan commented 3 years ago

Quick proposal on how this might look in the schema.

SiddhanthUnnithan commented 3 years ago

Add a tag to the target property to indicate what acceptable compute types are for the current schema. For example, for a command job the schema can list a set of target types (computeCluster, computeInstance). This would require a contract between us and the schema owners. We need a mapping in the extension to know how their tags correspond to our shown resources.