Skip to content

Commit 522821f

Browse files
committed
fix: ignoring dependencies issue
1 parent 4b1dece commit 522821f

File tree

12 files changed

+221
-44
lines changed

12 files changed

+221
-44
lines changed

.eslintrc.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
browser: true,
44
es6: true,
55
},
6-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/eslint-recommended'],
6+
extends: ['plugin:@typescript-eslint/recommended', 'prettier/@typescript-eslint', 'plugin:prettier/recommended'],
77
globals: {
88
Atomics: 'readonly',
99
SharedArrayBuffer: 'readonly',
@@ -21,5 +21,12 @@ module.exports = {
2121
'eol-last': ['error', 'always'],
2222
'no-unused-vars': 0,
2323
'sort-imports': 0,
24+
/// TS rules
25+
'@typescript-eslint/no-empty-function': 0,
26+
'@typescript-eslint/explicit-module-boundary-types': 0,
27+
'@typescript-eslint/no-unused-vars': 0,
28+
'@typescript-eslint/no-explicit-any': 0,
29+
'@typescript-eslint/no-non-null-assertion': 0,
30+
'@typescript-eslint/no-var-requires': 0,
2431
},
2532
}

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
out
2+
out-test
23
node_modules
3-
.vscode-test/
4+
.vscode-test
45
*.vsix
5-
demo/
6-
dist/
6+
demo
7+
dist

.vscodeignore

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
.vscode/**
2-
.vscode-test/**
3-
dist/test/**
4-
dist/**/*.map
5-
src/**
6-
.gitignore
7-
.gitattributes
1+
.vscode
2+
.github
3+
out-test
4+
**/*.ts
5+
6+
*.vsix
7+
88
.eslintrc.js
9-
yarn.lock
9+
package-lock.json
1010
prettier.config.js
11-
demo/
1211
tsconfig.json
13-
vsc-extension-quickstart.md
14-
tslint.json
15-
node_modules
12+
tsconfig.test.json
13+
14+
demo

package-lock.json

Lines changed: 128 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "dashmips-debugger",
33
"displayName": "dashmips-debugger",
44
"description": "Debugs mips while executing in Dashmips interpreter",
5-
"version": "0.1.7",
5+
"version": "0.1.8",
66
"license": "MIT",
77
"publisher": "roadkillco",
88
"repository": {
@@ -11,7 +11,7 @@
1111
},
1212
"icon": "images/dashmips-debugger-icon.png",
1313
"engines": {
14-
"vscode": "^1.46.0"
14+
"vscode": "^1.47.0"
1515
},
1616
"categories": [
1717
"Debuggers"
@@ -239,36 +239,41 @@
239239
"scripts": {
240240
"vscode:prepublish": "rimraf ./out && npm run build",
241241
"build": "tsc",
242+
"build:test": "tsc -p tsconfig.test.json",
242243
"package": "vsce package",
243244
"watch": "tsc --watch",
245+
"watch:test": "tsc --watch -p tsconfig.test.json",
244246
"publish": "vsce publish",
245-
"pretest": "npm run build && npm run lint",
246-
"test": "node ./out/test/runTest.js",
247-
"lint": "eslint src --ext ts --fix"
247+
"pretest": "npm run build && npm run build:test && npm run lint",
248+
"test": "node ./out-test/runTest.js",
249+
"lint": "eslint --fix --ext ts src test"
248250
},
249251
"devDependencies": {
250252
"@types/chai": "^4.2.12",
251253
"@types/glob": "^7.1.3",
252254
"@types/mocha": "^8.0.1",
253255
"@types/node": "^14.0.27",
254-
"@types/vscode": "^1.46.0",
256+
"@types/vscode": "^1.47.0",
257+
"@types/webpack": "^4.41.21",
255258
"@typescript-eslint/eslint-plugin": "^3.7.1",
256259
"@typescript-eslint/parser": "^3.7.1",
257260
"chai": "^4.2.0",
258261
"eslint": "^7.6.0",
262+
"eslint-config-prettier": "^6.11.0",
259263
"eslint-plugin-prettier": "^3.1.4",
260264
"glob": "^7.1.6",
261265
"mocha": "^8.1.0",
262-
"prettier": "2.0.5",
266+
"prettier": "^2.0.5",
263267
"rimraf": "^3.0.2",
268+
"ts-node": "^8.10.2",
264269
"typescript": "^3.9.7",
265270
"utf-8-validate": "^5.0.2",
266271
"vsce": "^1.77.0",
267272
"vscode-debugadapter-testsupport": "^1.41.0",
273+
"vscode-debugprotocol": "^1.41.0",
268274
"vscode-test": "^1.4.0"
269275
},
270276
"dependencies": {
271-
"vscode-debugadapter": "^1.41.1",
272-
"vscode-debugprotocol": "^1.41.0"
277+
"vscode-debugadapter": "^1.41.1"
273278
}
274279
}

src/dashmips.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ export interface DashmipsDebugClient {
2424
}
2525

2626
export class DashmipsDebugClient extends EventEmitter {
27-
public dashmipsPid: number = -1
27+
public dashmipsPid = -1
2828
public open = new Subject()
2929
public verified = new Subject()
30-
public stopEntry: boolean = true
30+
public stopEntry = true
3131
private socket!: Socket
3232
private url!: string
3333
private cutoffData: string
3434
private cutoffDataLength: number
35-
private host: string = ''
36-
private port: number = -1
35+
private host = ''
36+
private port = -1
3737

3838
private _readyNotifier = new Subject()
3939

0 commit comments

Comments
 (0)