-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
perfterminal-suggestunreleasedPatch has not yet been released in VS Code InsidersPatch has not yet been released in VS Code Insiders
Milestone
Description
We should avoid variables here to help the JIT optimize this very hot function:
vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionModel.ts
Lines 29 to 32 in 340c1bb
// Boost LSP provider completions | |
const lspProviderId = 'python'; | |
const aIsLsp = a.completion.provider.includes(lspProviderId); | |
const bIsLsp = b.completion.provider.includes(lspProviderId); |
Also includes
may be wasteful, can this just be a ===
check instead?
Metadata
Metadata
Assignees
Labels
perfterminal-suggestunreleasedPatch has not yet been released in VS Code InsidersPatch has not yet been released in VS Code Insiders