INNER CODE UNIT · TypeScript

snippetHints

prisma/orm · apps/lsp-playground/src/client/main.ts:314

  const snippetHints = editor?.onKeyUp((event) => {
    if (
      event.keyCode === KeyCode.Tab &&
      editor.getModel()?.getLanguageId() === LANGUAGE_ID &&
      editor.getContribution<SnippetController2>(SnippetController2.ID)?.isInSnippet()
    ) {
      void vscode.commands.executeCommand('editor.action.triggerParameterHints');
    }
  });
  editor?.onDidDispose(() => snippetHints?.dispose());

  const languageClientWrapper = new LanguageClientWrapper(languageClientConfig);
  await languageClientWrapper.start();

  let activeEntry = firstEntry;
  const setActiveStyling = (): void => {
    for (const entry of entries) {
      entry.button.classList.toggle('active', entry === activeEntry);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…