vscode-yaml
vscode-yaml copied to clipboard
Can't use '.' period as code completion trigger character when next to a word
Describe the bug
Code completions defined within a custom VS Code extension don't appear when the trigger character is a period next to a word with the RedHat YAML extension enabled. They appear as expected when the RedHat YAML extension is turned off or when the period is typed next to a space.
Expected Behavior
Code completions should appear, displaying "error", "log" and "warn"
Current Behavior
Code completions don't appear.
Steps to Reproduce
- Clone https://github.com/microsoft/vscode-extension-samples and open completions-sample folder VS Code
- In completions-sample/src/extension.ts, remove definition and usages of
provider1. - In completions-sample/src/extension.ts, change
'plaintext'to{ scheme: 'file', language: 'yaml' }. - Run
npm installin completions-sample folder (see root README for NPM and NodeJS version requirements). - Hit F5
- In the Extension Development Host that opens up, make sure RedHat YAML extension is installed and enabled
- Create a YAML file with the following contents:
name: test - Type '.' next to
testwithout spaces
Environment
- [x] Windows
- [ ] Mac
- [ ] Linux
- [ ] other (please specify)
This issue appears to be related to this VSCode issue which was closed because the VSCode side was working as expected.