-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make terminal suggest addon more generic #233013
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Daniel Imms <[email protected]>
src/vs/workbench/contrib/terminalContrib/suggest/browser/pwshCompletionProviderAddon.ts
Outdated
Show resolved
Hide resolved
the |
That one's static to share across all terminals, since not having cached commands can lock up the terminal for potentially seconds |
This reverts commit 88ed821.
...rkbench/contrib/terminalContrib/suggest/test/browser/terminalSuggestAddon.integrationTest.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.ts
Outdated
Show resolved
Hide resolved
f3a649d
to
19a1981
Compare
src/vs/workbench/contrib/terminalContrib/suggest/browser/pwshCompletionProviderAddon.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/suggest/browser/pwshCompletionProviderAddon.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/suggest/browser/pwshCompletionProviderAddon.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/suggest/browser/pwshCompletionProviderAddon.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/suggest/browser/pwshCompletionProviderAddon.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalSuggestAddon.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalSuggestAddon.ts
Outdated
Show resolved
Hide resolved
return; | ||
} | ||
this._lastAcceptedCompletionTimestamp = Date.now(); | ||
SuggestAddon.lastAcceptedCompletionTimestamp = Date.now(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want this to be static as it's intentionally tracked per suggest addon. It's unlikely to cause a problem if it were static, but it makes the code a bit harder to understand being static imo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is referenced in the pwshAddon
vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/pwshCompletionProviderAddon.ts
Line 261 in e5bfb54
if (this._lastUserDataTimestamp > SuggestAddon.lastAcceptedCompletionTimestamp) { |
src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalSuggestAddon.ts
Outdated
Show resolved
Hide resolved
...rkbench/contrib/terminalContrib/suggest/test/browser/terminalSuggestAddon.integrationTest.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/suggest/browser/pwshCompletionProviderAddon.ts
Outdated
Show resolved
Hide resolved
…nalSuggestAddon.ts Co-authored-by: Daniel Imms <[email protected]>
fixes #233364