This repository was archived by the owner on Jul 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1+ import { ExtensionContext } from 'vscode' ;
2+ import { RubyDocumentFormattingEditProvider } from '../format/rubyFormat' ;
3+
4+ export function registerFormatter ( ctx : ExtensionContext ) {
5+ new RubyDocumentFormattingEditProvider ( ) . register ( ctx ) ;
6+ }
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ import * as Locate from './locate/locate';
66import * as path from 'path' ;
77import * as cp from 'child_process' ;
88import { LintCollection } from './lint/lintCollection' ;
9- import { RubyDocumentFormattingEditProvider } from './format/rubyFormat' ;
109import * as utils from './utils' ;
1110import { registerTaskProvider } from './task/rake' ;
1211import { Config as LintConfig } from './lint/lintConfig' ;
1312import * as debounce from 'lodash/debounce' ;
1413
14+ import { registerFormatter } from './providers/formatter' ;
1515import { registerHighlightProvider } from './providers/highlight' ;
1616import { registerIntellisenseProvider } from './providers/intellisense' ;
1717
@@ -146,7 +146,3 @@ function registerCompletionProvider(ctx: ExtensionContext) {
146146 completeTest . on ( 'error' , ( ) => 0 ) ;
147147 }
148148}
149-
150- function registerFormatter ( ctx : ExtensionContext ) {
151- new RubyDocumentFormattingEditProvider ( ) . register ( ctx ) ;
152- }
You can’t perform that action at this time.
0 commit comments