2021-09-30 23:02:18 +05:30
|
|
|
import { Position } from 'monaco-editor';
|
|
|
|
|
2022-01-26 12:08:38 +05:30
|
|
|
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));
|
|
|
|
},
|
|
|
|
};
|
2021-09-30 23:02:18 +05:30
|
|
|
}
|
|
|
|
}
|