From edee6af36cfc5bc444e45771808dd7323f1caf90 Mon Sep 17 00:00:00 2001 From: 0xSwapFeeder Date: Thu, 22 Feb 2024 01:05:41 -0500 Subject: [PATCH] fix(solidtity/extension): fixed name of the format command --- .../extension/.vscode/extensions.json | 5 +++ .../solidity/extension/.vscode/launch.json | 21 ++++++++++ .../solidity/extension/.vscode/settings.json | 13 ++++++ .../solidity/extension/.vscode/tasks.json | 40 +++++++++++++++++++ toolchains/solidity/extension/package.json | 2 +- 5 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 toolchains/solidity/extension/.vscode/extensions.json create mode 100644 toolchains/solidity/extension/.vscode/launch.json create mode 100644 toolchains/solidity/extension/.vscode/settings.json create mode 100644 toolchains/solidity/extension/.vscode/tasks.json diff --git a/toolchains/solidity/extension/.vscode/extensions.json b/toolchains/solidity/extension/.vscode/extensions.json new file mode 100644 index 00000000..dd01eb35 --- /dev/null +++ b/toolchains/solidity/extension/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": ["dbaeumer.vscode-eslint", "amodio.tsl-problem-matcher", "ms-vscode.extension-test-runner"] +} diff --git a/toolchains/solidity/extension/.vscode/launch.json b/toolchains/solidity/extension/.vscode/launch.json new file mode 100644 index 00000000..c42edc04 --- /dev/null +++ b/toolchains/solidity/extension/.vscode/launch.json @@ -0,0 +1,21 @@ +// A launch configuration that compiles the extension and then opens it inside a new window +// Use IntelliSense to learn about possible attributes. +// Hover to view descriptions of existing attributes. +// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Run Extension", + "type": "extensionHost", + "request": "launch", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}" + ], + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ], + "preLaunchTask": "${defaultBuildTask}" + } + ] +} diff --git a/toolchains/solidity/extension/.vscode/settings.json b/toolchains/solidity/extension/.vscode/settings.json new file mode 100644 index 00000000..5c5ac48c --- /dev/null +++ b/toolchains/solidity/extension/.vscode/settings.json @@ -0,0 +1,13 @@ +// Place your settings in this file to overwrite default and user settings. +{ + "files.exclude": { + "out": false, // set this to true to hide the "out" folder with the compiled JS files + "dist": false // set this to true to hide the "dist" folder with the compiled JS files + }, + "search.exclude": { + "out": true, // set this to false to include "out" folder in search results + "dist": true // set this to false to include "dist" folder in search results + }, + // Turn off tsc task auto detection since we have the necessary tasks as npm scripts + "typescript.tsc.autoDetect": "off" +} \ No newline at end of file diff --git a/toolchains/solidity/extension/.vscode/tasks.json b/toolchains/solidity/extension/.vscode/tasks.json new file mode 100644 index 00000000..41f39b03 --- /dev/null +++ b/toolchains/solidity/extension/.vscode/tasks.json @@ -0,0 +1,40 @@ +// See https://go.microsoft.com/fwlink/?LinkId=733558 +// for the documentation about the tasks.json format +{ + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "watch", + "problemMatcher": "$ts-webpack-watch", + "isBackground": true, + "presentation": { + "reveal": "never", + "group": "watchers" + }, + "group": { + "kind": "build", + "isDefault": true + } + },| + { + "type": "npm", + "script": "watch-tests", + "problemMatcher": "$tsc-watch", + "isBackground": true, + "presentation": { + "reveal": "never", + "group": "watchers" + }, + "group": "build" + }, + { + "label": "tasks: watch-tests", + "dependsOn": [ + "npm: watch", + "npm: watch-tests" + ], + "problemMatcher": [] + } + ] +} diff --git a/toolchains/solidity/extension/package.json b/toolchains/solidity/extension/package.json index 6b402fc8..62f0714d 100644 --- a/toolchains/solidity/extension/package.json +++ b/toolchains/solidity/extension/package.json @@ -24,7 +24,7 @@ "explorer/context": [ { "when": "resourceLangId == solidity", - "command": "osmium.lint-sol-file", + "command": "osmium.format-sol-file", "group": "7_modification" } ]