Welcome to mirror list, hosted at ThFree Co, Russian Federation.

source_editor_file_template_ext.js « extensions « editor « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ba4980896e5870a43300dab64fad766375d14f12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { Position } from 'monaco-editor';

export class FileTemplateExtension {
  static get extensionName() {
    return 'FileTemplate';
  }

  // eslint-disable-next-line class-methods-use-this
  provides() {
    return {
      navigateFileStart: (instance) => {
        instance.setPosition(new Position(1, 1));
      },
    };
  }
}