PowerShell / PowerShell/vscode-powershell
IntelliSense should work across dot-sourced file references
Open
Nobody has claimed this yet.
Area-IntelliSense
Issue-Enhancement
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 547
- PR merge metrics
- No merged PRs in 30d
Description
Is it possible to support dot sourcing to pull Intellisense across files?
e.g.
\
\a.ps1
\b.ps1
# a.ps1
function Get-Foo($baz) { write-host $baz }
# b.ps1
. $PsScriptRoot\b.ps1
Get-Foo -baz
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
Use the a.ps1 and b.ps1 example as the reproduction: inspect how IntelliSense handles the dot-sourced reference from b.ps1. Confirm that Get-Foo from a.ps1 is recognized for Get-Foo -baz in b.ps1, and use that behavior as the completion criterion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100