vscode-jumpy icon indicating copy to clipboard operation
vscode-jumpy copied to clipboard

Cannot read property 'setDecorations' of undefined

Open davidgomes opened this issue 5 years ago • 2 comments

  • Issue Type: Bug
  • Extension Name: vscode-jumpy
  • Extension Version: 0.3.1
  • OS Version: Linux x64 4.19.0-2-amd64
  • VSCode version: 1.31.1
{
	"activationTimes": {
		"startup": false,
		"codeLoadingTime": 7,
		"activateCallTime": 29,
		"activateResolvedTime": 0,
		"activationEvent": "onCommand:extension.jumpy-word"
	},
	"runtimeErrors": [
		{
			"name": "TypeError",
			"message": "Cannot read property 'setDecorations' of undefined"
		}
	]
}

davidgomes avatar Feb 22 '19 11:02 davidgomes

This issue is most certainly caused by faulty access to active TextEditor instance. There are no guards agains undefined like


    const editor = window.activeTextEditor;
    if (editor === undefined) {
        return;
    }

ghost avatar Sep 11 '19 10:09 ghost

@davidgomes This bug has been fixed in Jump.

wenfangdu avatar Aug 15 '21 01:08 wenfangdu