-
Notifications
You must be signed in to change notification settings - Fork 62
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
refactor: clean up #512
refactor: clean up #512
Conversation
{ scheme: 'untitled', language: 'javascript' }, | ||
{ scheme: 'file', language: 'javascript' }, | ||
{ pattern: '**/*.mongodb.js' }, | ||
{ pattern: '**/*.mongodb' }, |
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.
Register language server only for playgrounds.
@@ -88,6 +88,9 @@ export default class LanguageServerController { | |||
} | |||
|
|||
async startLanguageServer(): Promise<void> { | |||
// Start the client. This will also launch the server. | |||
await this._client.start(); |
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.
I do not see a difference in behavior between having or skipping this step. But to be on the safer side let's have it as it is in vscode examples.
} | ||
|
||
// Stop the language server. | ||
return this._client.stop(); |
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.
Also aligement with vscode examples.
src/language/visitor.ts
Outdated
export class Visitor { | ||
_state: CompletionState; | ||
_state: CompletionState | ExportToLanguageState | {}; |
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.
For better debugging, use separate states for different use cases to better understand what parameters affect the behavior.
Description
This PR extracts refactoring, that was done as part of the TypeScript service investigation PR. We removed help signatures out of the Efficient Query Development in VSCode epic, but some clean up can be merged separately here.
Checklist
Motivation and Context
Types of changes