-
Notifications
You must be signed in to change notification settings - Fork 749
refactor(logging): scope log messages to specific LSP using topic headers. #6526
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 5 commits
ee57f1c
ed8ac5a
ff45cfc
55e848f
8ff5f40
0df0720
701617b
9583ca7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -10,11 +10,12 @@ import { LanguageServerResolver } from '../../shared/lsp/lspResolver' | |||||||
| import { Range } from 'semver' | ||||||||
| import { getNodeExecutableName } from '../../shared/lsp/utils/platform' | ||||||||
| import { fs } from '../../shared/fs/fs' | ||||||||
| import { cleanLspDownloads } from '../../shared' | ||||||||
| import { cleanLspDownloads, getLogger } from '../../shared' | ||||||||
|
|
||||||||
| const manifestUrl = 'https://aws-toolkit-language-servers.amazonaws.com/q-context/manifest.json' | ||||||||
| // this LSP client in Q extension is only going to work with these LSP server versions | ||||||||
| const supportedLspServerVersions = '0.1.35' | ||||||||
| const logger = getLogger('amazonqWorkspaceLSP') | ||||||||
|
||||||||
| const logger = getLogger('amazonqWorkspaceLSP') | |
| const logger = getLogger('amazonqIndexingLsp') |
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.
Right now, indexing is the only action supported by this lsp, but I could imagine Q adding a feature that does other "work" within the workspace. Also, I think it might be best to keep it inline with the name field we use in the resolver here:
| const name = 'AmazonQ-Workspace' |
Perhaps we should pull these out somewhere to make them more discoverable, but that might involve a deeper refactor out of the scope here.
Uh oh!
There was an error while loading. Please reload this page.