- Notifications
You must be signed in to change notification settings - Fork 17
Description
Describe the bug
I have a file with custom words that in previous iterations worked properly. The following config options are set:
"mvon.customWordPath": "C:\users\jteter\documents\VSCode\WNBVariables.txt",
"mvon.customWordColor": "RED"
The words are not being colored and the hover function does not work. I am seeing the following messages in the output console:
[Error - 5:24:50 PM] Request textDocument/hover failed.
Message: Request textDocument/hover failed with message: Cannot read property 'substr' of undefined
Code: -32603
[Error - 5:24:51 PM] Request textDocument/hover failed.
Message: Request textDocument/hover failed with message: Cannot read property 'substr' of undefined
Code: -32603
To Reproduce
Steps to reproduce the behavior:
- Create a file on your PC called "WORDS.TXT". The contents of the file will be word, description pairs such as "CUST.NAME":"Customer name" with one pair on each line.
- In the workspace configuration, add a line for the file giving it the full path and file name:
"mvon.customWordPath": "C:\users\jteter\documents\VSCode\WORDS.TXT" - Assign a color in the workspace configuration:
"mvon.customWordColor": "RED" - Save the configuration and start the workspace session.
- Create a new file and enter one or more of the words you have put into the WORDS.TXT file.
Expected behavior
The words entered that are in the WORDS.TXT file should be colored and when hovering over them should display the description provided in the file.
Versions of applicable software
Detail on the versions of any and all pieces of software that are part of your environment, such as:
- Windows 10
- Linux 6, UV 11.3.1
- VSCode with mvExtensions.