Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update link to Definitions to new official repo, spelling fixes, formatting fixes #8

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
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
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
// Autosnippet settings
"autoSnippet.snippets": [
{
"pattern": "**/*.ts",
"pattern": "**/*.ts",
"snippet": "ns-template"
},
],
2 changes: 1 addition & 1 deletion .vscode/snippets.code-snippets
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
"body": [
"import { NS } from '@ns'",
"",
"export async function main(ns : NS) : Promise<void> {",
"export async function main(ns: NS): Promise<void> {",
"\t//",
"}"
]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ To import `someFunction` from the file `main.ts` located in the `src/` directory
import { someFunction } from 'main'
```

## Deugging
## Debugging

For debugging bitburner on Steam you will need to enable a remote debugging port. This can be done by rightclicking bitburner in your Steam library and selecting properties. There you need to add `--remote-debugging-port=9222` [Thanks @DarkMio]

2 changes: 1 addition & 1 deletion updateDefs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const https = require("https")
const fs = require("fs")

const url = 'https://raw.githubusercontent.com/danielyxie/bitburner/dev/src/ScriptEditor/NetscriptDefinitions.d.ts'
const url = 'https://raw.githubusercontent.com/bitburner-official/bitburner-src/dev/src/ScriptEditor/NetscriptDefinitions.d.ts'
const path = './NetscriptDefinitions.d.ts'

https.get(url, (res) => {