yzhang-gh / vscode-dic-completion

Dictionary completion
https://marketplace.visualstudio.com/items?itemName=yzhang.dictionary-completion
MIT License
51 stars 13 forks source link

Create wordlist folder in ~/.config/Code/User cause the extension stop working #40

Open gky99 opened 1 year ago

gky99 commented 1 year ago

I notice that if I add the folder ~/.config/Code/User/wordlist, the completion will stop working. Delete the folder and restart vscode will fix it.

Environment is Manjaro 21, KDE

yzhang-gh commented 1 year ago

Thanks for the feedback.

Did you see any error messages from the console? (menu bar>help>toggle developer tools)

gky99 commented 1 year ago
Activating extension 'yzhang.dictionary-completion' failed: EISDIR: illegal operation on a directory, read.
$onExtensionActivationError @   mainThreadExtensionService.ts:111
yzhang-gh commented 1 year ago

Probably it is because of the ~. You can replace it with an absolute path.

gky99 commented 1 year ago

No, I mean the creation of that folder, not adding it to the external dict list.

yzhang-gh commented 1 year ago

I see. It is because this extension assumes ~/.config/Code/User/wordlist to be a file but not a folder. You can use command openUserDict to create this file.