Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions editors/code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@
"title": "Reload workspace",
"category": "rust-analyzer"
},
{
"command": "rust-analyzer.newProject",
"title": "Create New Project...",
"category": "rust-analyzer"
},
{
"command": "rust-analyzer.rebuildProcMacros",
"title": "Rebuild proc macros and build scripts",
Expand Down Expand Up @@ -486,6 +491,23 @@
"markdownDescription": "Do not start rust-analyzer server when the extension is activated.",
"default": false,
"type": "boolean"
},
"rust-analyzer.projectCreation.openAfterCreate": {
"markdownDescription": "Control what happens after `rust-analyzer: Create New Project...` finishes creating a Cargo project.",
"default": "ask",
"enum": [
"ask",
"open",
"openNewWindow",
"addToWorkspace"
],
"enumDescriptions": [
"Prompt for how to open the new project.",
"Open the new project in the current window.",
"Open the new project in a new window.",
"Add the new project to the current workspace, or open it if no workspace is open."
],
"type": "string"
}
}
},
Expand Down Expand Up @@ -3794,6 +3816,9 @@
"command": "rust-analyzer.memoryUsage",
"when": "inRustProject"
},
{
"command": "rust-analyzer.newProject"
},
{
"command": "rust-analyzer.reloadWorkspace",
"when": "inRustProject"
Expand Down Expand Up @@ -3909,6 +3934,13 @@
}
]
},
"viewsWelcome": [
{
"view": "explorer",
"contents": "Create a new Rust project.\n[Create Rust Project](command:rust-analyzer.newProject)",
"when": "workspaceFolderCount == 0"
}
],
"viewsContainers": {
"activitybar": [
{
Expand All @@ -3934,6 +3966,14 @@
"title": "Learn about rust-analyzer",
"description": "A brief introduction to get started with rust-analyzer. Learn about key features and resources to help you get the most out of the extension.",
"steps": [
{
"id": "create-project",
"title": "Create a Rust project",
"description": "Start a new Cargo binary or library project from VS Code.\n\n[Create a Rust Project](command:rust-analyzer.newProject)",
"media": {
"markdown": "./walkthrough-create-project.md"
}
},
{
"id": "setup",
"title": "Useful Setup Tips",
Expand Down
Loading