-
Notifications
You must be signed in to change notification settings - Fork 749
telemetry(lsp): Integrate language server/manifest resolver telemetry #6385
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
Changes from all commits
75a4d43
191e0ea
0b4cec4
3727ea9
5d5a7d8
a7b446d
3304e99
45b0236
c2596cf
4f2b662
6ef6633
3b3b39b
abdb5fd
0aadddf
f03bf8d
7d05c68
c7b97e2
5284763
7dfefe6
bad6697
4b1e90a
45901e7
2ee4792
3a6bad2
9e708fd
0b4da9d
c37ef4a
9cee3e7
05f3a2b
80fa5d6
8ebcc97
3cf254a
2c60608
9b9443b
077e402
0ef9f0d
b0a37f3
42ed745
ea4e35a
d286070
3888ac5
4819d49
3aa2670
e55dd7f
8bc7ccc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ import { isCloud9 } from '../../shared/extensionUtilities' | |
| import globals, { isWeb } from '../../shared/extensionGlobals' | ||
| import { isAmazonInternalOs } from '../../shared/vscode/env' | ||
| import { WorkspaceLSPResolver } from './workspaceInstaller' | ||
| import { lspSetupStage } from '../../shared' | ||
|
|
||
| export interface Chunk { | ||
| readonly filePath: string | ||
|
|
@@ -160,9 +161,7 @@ export class LspController { | |
| } | ||
| setImmediate(async () => { | ||
| try { | ||
| const installResult = await new WorkspaceLSPResolver().resolve() | ||
| await activateLsp(context, installResult.resourcePaths) | ||
| getLogger().info('LspController: LSP activated') | ||
| await this.setupLsp(context) | ||
| void LspController.instance.buildIndex(buildIndexConfig) | ||
| // log the LSP server CPU and Memory usage per 30 minutes. | ||
| globals.clock.setInterval( | ||
|
|
@@ -183,4 +182,12 @@ export class LspController { | |
| } | ||
| }) | ||
| } | ||
|
|
||
| private async setupLsp(context: vscode.ExtensionContext) { | ||
| await lspSetupStage('all', async () => { | ||
| const installResult = await new WorkspaceLSPResolver().resolve() | ||
| await lspSetupStage('launch', async () => activateLsp(context, installResult.resourcePaths)) | ||
| getLogger().info('LspController: LSP activated') | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not necessarily an issue for this PR, but I think we should probably scope these messages to regular codewhisperer language server vs workspace context one
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I think we could make use of the logging header here that references which LSP it is. Can do as a follow up. |
||
| }) | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.