From 9d56f7e82d3222c326083b23822b6a89ae7e5c55 Mon Sep 17 00:00:00 2001 From: Eric Lau Date: Sun, 23 Jan 2022 11:21:03 -0500 Subject: [PATCH] add nile clean --- CHANGELOG.md | 4 ++++ client/src/extension.ts | 6 ++++++ package.json | 30 ++++++++++++------------------ 3 files changed, 22 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba9883b..0ea8f9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 0.0.13 + +Nile integration. + ## 0.0.12 Code completion for module names and function/struct imports. diff --git a/client/src/extension.ts b/client/src/extension.ts index 584acbc..1fd8297 100644 --- a/client/src/extension.ts +++ b/client/src/extension.ts @@ -92,6 +92,12 @@ function registerCommands(context: ExtensionContext, nileUseVenv: boolean, nileV }); context.subscriptions.push(compileAllCommand); + const cleanCommand = commands.registerCommand('nile.clean', () => { + terminal.show(); + terminal.sendText(commandPrefix + "nile clean"); + }); + context.subscriptions.push(cleanCommand); + const runCommand = commands.registerCommand('pytest', () => { terminal.show(); terminal.sendText(commandPrefix + "pytest"); diff --git a/package.json b/package.json index 5343cfe..8848b5b 100644 --- a/package.json +++ b/package.json @@ -72,23 +72,6 @@ "type": "string", "default": ". env/bin/activate", "description": "If nileUseVenv is true, this is the command used by the extension to source the virtual environment before running Nile commands." - }, - "cairols.maxNumberOfProblems": { - "scope": "resource", - "type": "number", - "default": 100, - "description": "Controls the maximum number of problems produced by the server." - }, - "cairols.trace.server": { - "scope": "window", - "type": "string", - "enum": [ - "off", - "messages", - "verbose" - ], - "default": "off", - "description": "Traces the communication between VS Code and the Cairo language server." } } }, @@ -100,6 +83,9 @@ { "command": "nile.compile.all" }, + { + "command": "nile.clean" + }, { "command": "pytest" } @@ -111,6 +97,9 @@ { "command": "nile.compile.all" }, + { + "command": "nile.clean" + }, { "command": "pytest" } @@ -120,13 +109,18 @@ { "command": "nile.compile", "category": "Language support for Cairo", - "title": "Nile - Compile" + "title": "Nile - Compile this contract" }, { "command": "nile.compile.all", "category": "Language support for Cairo", "title": "Nile - Compile all" }, + { + "command": "nile.clean", + "category": "Language support for Cairo", + "title": "Nile - Clean" + }, { "command": "pytest", "category": "Language support for Cairo",