redhat-developer / redhat-developer/vscode-yaml
Can't use '.' period as code completion trigger character when next to a word
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
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
- Windows
- Mac
- Linux
- other (please specify)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using completions-sample/src/extension.ts after following the listed setup and running npm install, then test the Extension Development Host with the RedHat YAML extension enabled. Trace why a period adjacent to a word suppresses the expected "error", "log" and "warn" completions; done means those completions appear in the YAML file without spaces.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100