Forráskód Böngészése

add react-inspector

Borys Palka 5 éve
szülő
commit
84bc40e4db
3 módosított fájl, 4 hozzáadás és 2 törlés
  1. 2 1
      package.json
  2. 1 0
      src/service.ts
  3. 1 1
      tsconfig.json

+ 2 - 1
package.json

@@ -56,7 +56,8 @@
     "@phosphor/coreutils": "^1.3.1",
     "@phosphor/disposable": "^1.2.0",
     "@phosphor/widgets": "^1.8.0",
-    "vscode-debugprotocol": "1.35.0"
+    "vscode-debugprotocol": "1.35.0",
+    "react-inspector": "^2.0.0"
   },
   "devDependencies": {
     "@babel/core": "^7.5.5",

+ 1 - 0
src/service.ts

@@ -67,6 +67,7 @@ export class DebugService {
         scopes: values
       });
       if (index === 0) {
+        console.log({ values });
         this._model.sidebar.variables.model.scopes = values;
       }
     });

+ 1 - 1
tsconfig.json

@@ -9,7 +9,7 @@
     "module": "esnext",
     "moduleResolution": "node",
     "noEmitOnError": true,
-    "noImplicitAny": true,
+    "noImplicitAny": false,
     "noUnusedLocals": true,
     "outDir": "lib",
     "rootDir": "src",