vscode-react-native icon indicating copy to clipboard operation
vscode-react-native copied to clipboard

this.project.getWorkspaceFolder is not a function

Open zhaoxuyll opened this issue 1 year ago • 1 comments

🐛 What is the bug? How can we reproduce it?

An error is reported when you call stop package manager in the task configuration.

But there is no problem with invoking directly via command.

Version v1.13.0

  1. Create a task.json and setting config
    {
      "label": "Stop Packager",
      "command": "${command:reactNative.stopPackager}",
      "problemMatcher": []
    },
  1. Call this task The notification area displays an error. image

Log here: image

Expected behavior

What were you expecting to happen? No error.

Debug output

Debug Console

PASTE OUTPUT OF DEBUG CONSOLE (View -> Toggle Debug Console)

React Native output channel

PASTE OUTPUT OF REACT-NATIVE OUTPUT CHANNEL (View -> Toggle Output -> Select React-Native in ListBox)

Developer Tools console

PASTE OUTPUT OF DEVELOPER TOOLS CONSOLE (Help -> Toggle Developer Tools -> Select Console tab)

Environment

Please tell us about your system and your project:

  • npx react-native doctor or npx expo doctor if your project is using Expo:
PASTE OUTPUT OF `npx react-native doctor` or `npx expo doctor`
  • envinfo:
PASTE OUTPUT OF `npx envinfo`
  • React Native Tools extension version: VERSION
  • Expo SDK version (if applicable): VERSION

zhaoxuyll avatar May 22 '24 07:05 zhaoxuyll

Hey @zhaoxuyll , thanks for reaching us. Will fix this issue currently, any update will comment here, thank you!

lexie011 avatar May 23 '24 02:05 lexie011