message: master: use registered langudes to decorate queries
diff: @@ -36,20 +36,20 @@ export default class CodeLensPlugin implements IExtensionPlugin {
  createDecorations(context: IExtension['context']) {
  window.onDidChangeActiveTextEditor(editor => {
  - updateDecorations(editor);
  + this.updateDecorations(editor);
  }, null, context.subscriptions);
  workspace.onDidChangeTextDocument(event => {
  if (window.activeTextEditor && event.document === window.activeTextEditor.document) {
  - updateDecorations(window.activeTextEditor);
  + this.updateDecorations(window.activeTextEditor);
  }
  }, null, context.subscriptions);
  window.onDidChangeTextEditorSelection(event => {
  if (event.textEditor && event.textEditor.document === window.activeTextEditor.document) {
  - updateDecorations(window.activeTextEditor);
  + this.updateDecorations(window.activeTextEditor);
  }
  }, null, context.subscriptions);
  - updateDecorations(window.activeTextEditor);
  + this.updateDecorations(window.activeTextEditor);
  }
  register(extension: IExtension) {
  @@ -64,10 +64,8 @@ export default class CodeLensPlugin implements IExtensionPlugin {
  reset() {
  return this.provider.reset();
  }
  -}
  -
  -function updateDecorations(editor: TextEditor) {
  - if (!editor || !editor.document || editor.document.uri.scheme === 'output') {
  + updateDecorations = (editor: TextEditor) => {
  + if (!editor || !editor.document || editor.document.uri.scheme === 'output' || !this.registeredLanguages.includes(editor.document.languageId)) {
  return;
  }
  try {
  @@ -80,6 +78,8 @@ function updateDecorations(editor: TextEditor) {
  console.log(error);
  }
  }
  +}
  +
  const currentQueryDecoration = window.createTextEditorDecorationType({
  backgroundColor: { id: `${EXT_NAME}.currentQueryBg` },
  