From c4191643bfed833581f3c73d40806648e99ce3a3 Mon Sep 17 00:00:00 2001 From: Autumn Rivers Date: Thu, 9 Jul 2020 19:56:05 -0400 Subject: [PATCH] Fix the $0 bug --- .vscodeignore | 1 - README.md | 12 +----------- examples/Node_Example.xml | 2 +- src/Actions.code-snippets | 8 ++++---- src/Missions.code-snippets | 10 +++++----- src/Nodes.code-snippets | 12 ++++++------ 6 files changed, 17 insertions(+), 28 deletions(-) diff --git a/.vscodeignore b/.vscodeignore index 30b36f2..4642a5e 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -1,4 +1,3 @@ **/.vscode **/.gitignore -**/hacknet-vscode-1.0.0.vsix !**/.vscode/launch.json \ No newline at end of file diff --git a/README.md b/README.md index 6329cfb..0c5c2ab 100644 --- a/README.md +++ b/README.md @@ -42,17 +42,7 @@ Anything not listed here is likely not large enough to be considered a "template If you're still not getting the hang of this, that's okay! Join the [official Hacknet Discord](https://discord.gg/hacknet) and I'll do my best to help. It'll be hard to miss me. # Examples -## Sequencer Example -![](https://cdn.discordapp.com/attachments/453489057117372417/548239180031852554/SequencerExample.gif) - -## Database Example -![](https://cdn.discordapp.com/attachments/377282421504344065/548321665785004034/DatabaseExample.gif) - -## HackerScript Example -![](https://cdn.discordapp.com/attachments/377282421504344065/548355937254244371/HackerScriptExample.gif) - -## Mission Example -![](https://cdn.discordapp.com/attachments/377284586326982666/548712683260608547/MissionExample.gif) +Note to self: add new examples here. # Installing 1. [Download the latest release](https://www.github.com/SmartieCodes/hacknet-vscode/releases) diff --git a/examples/Node_Example.xml b/examples/Node_Example.xml index 69ec910..3849738 100644 --- a/examples/Node_Example.xml +++ b/examples/Node_Example.xml @@ -2,7 +2,7 @@ - 22,80,443 + 22,80,443,1433 diff --git a/src/Actions.code-snippets b/src/Actions.code-snippets index aeeb8b0..8b84d6e 100644 --- a/src/Actions.code-snippets +++ b/src/Actions.code-snippets @@ -71,13 +71,13 @@ "AddAsset":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "Remotely add an asset to the target node." }, "CopyAsset":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "Copy a file from a remote node." }, "AddMissionToHubServer":{ @@ -149,7 +149,7 @@ "LaunchHackScript":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "Launch a hacker script. Oo, spooky!" }, "SwitchToTheme":{ @@ -220,7 +220,7 @@ "SetLock":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "Locks or hides the specified module. Choices are terminal, ram, netmap, and display." }, "AlertIcon":{ diff --git a/src/Missions.code-snippets b/src/Missions.code-snippets index 02cf662..efc07a3 100644 --- a/src/Missions.code-snippets +++ b/src/Missions.code-snippets @@ -69,25 +69,25 @@ "MissionGoalFileDeletion":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "Task to delete the file on node target, at path/file" }, "ClearFolder":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "Task to delete ALL files on node target, in the folder at path" }, "FileDownload":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "Task to download the file at the path" }, "FileChange":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "Task to add the text specified by keyword to the specified file. This is usually achieved by the \"replace\" command. It's possible to make the keyword a larger block and task the player to replace one file with another." }, "FileChangeRemove":{ @@ -117,7 +117,7 @@ "UploadFile":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "Task to require a string passed in via the \"Additional Info\" field in the reply email screen." }, "UploadFileDecrypted":{ diff --git a/src/Nodes.code-snippets b/src/Nodes.code-snippets index ecad557..35c5dda 100644 --- a/src/Nodes.code-snippets +++ b/src/Nodes.code-snippets @@ -23,7 +23,7 @@ "":{ "prefix": "HacknetNodePort", "scope": "xml", - "body": "${0|21,22,25,80,1433,104,6881,443,192,211,9418,3724,3659|}", + "body": "${1|21,22,25,80,1433,104,6881,443,192,211,9418,3724,3659|}", "description": "Opens a selection for node ports." }, "Firewall":{ @@ -41,7 +41,7 @@ "Account":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "Accounts for nodes within Hacknet." }, "AdminPass":{ @@ -53,7 +53,7 @@ "AdminType":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "The type of admin account on the node." }, "TraceTimer":{ @@ -83,7 +83,7 @@ "PositionNear":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "This positions this computer near the target on the network map." }, "TextFile":{ @@ -198,7 +198,7 @@ "MissionHubDaemon":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "Creates a CSEC-Style mission board" }, "CreditsDaemon":{ @@ -240,7 +240,7 @@ "WhitelistSource":{ "prefix": "", "scope": "xml", - "body": "", + "body": "$0", "description": "This is your basic whitelist server \"host\" type - it wont check incoming connection to itself against it's list. It only serves a protective function against *other* servers." }, "WhitelistProtected":{