sansmoraxz
sansmoraxz
TTCTheo's Typesafe Cult
Created by Jones on 5/10/2023 in #questions
react-speech-recognition with Next.Js
Damn this is old. Same issue for me. Found this library https://www.npmjs.com/package/react-speech-recognition Having hydration errors even after adding regeneratorRuntime
2 replies
TTCTheo's Typesafe Cult
Created by sansmoraxz on 4/8/2024 in #questions
How to interact with typescript language server programetically?
OK I figured it out, we have to pass all these stuff in initialization params:
{
hostInfo: 'vscode',
plugins: [],
preferences: {
allowIncompleteCompletions: true,
allowRenameOfImportPath: true,
allowTextChangesInNewFiles: true,
displayPartsForJSDoc: true,
generateReturnInDocTemplate: true,
includeAutomaticOptionalChainCompletions: true,
includeCompletionsForImportStatements: true,
includeCompletionsForModuleExports: true,
includeCompletionsWithClassMemberSnippets: true,
includeCompletionsWithInsertText: true,
includeCompletionsWithSnippetText: true,
jsxAttributeCompletionStyle: 'auto',
providePrefixAndSuffixTextForRename: true,
},
tsserver: {
// With default `auto`, due to dynamic routing, some requests would be routed to syntax server while the project
// is loading and return incomplete results so force just a single server for tests.
useSyntaxServer: 'never',
},
}
{
hostInfo: 'vscode',
plugins: [],
preferences: {
allowIncompleteCompletions: true,
allowRenameOfImportPath: true,
allowTextChangesInNewFiles: true,
displayPartsForJSDoc: true,
generateReturnInDocTemplate: true,
includeAutomaticOptionalChainCompletions: true,
includeCompletionsForImportStatements: true,
includeCompletionsForModuleExports: true,
includeCompletionsWithClassMemberSnippets: true,
includeCompletionsWithInsertText: true,
includeCompletionsWithSnippetText: true,
jsxAttributeCompletionStyle: 'auto',
providePrefixAndSuffixTextForRename: true,
},
tsserver: {
// With default `auto`, due to dynamic routing, some requests would be routed to syntax server while the project
// is loading and return incomplete results so force just a single server for tests.
useSyntaxServer: 'never',
},
}
Also we need to send open file notification before we can do anything with the file.
3 replies