mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-12 11:08:31 -05:00
Fix error where rename controller wasn't in InstantiationService (#2243)
This commit is contained in:
@@ -24,16 +24,16 @@ import { EditorOptions } from 'vs/workbench/common/editor';
|
||||
import { CodeEditor } from 'vs/editor/browser/codeEditor';
|
||||
import { IEditorContributionCtor } from 'vs/editor/browser/editorExtensions';
|
||||
import { FoldingController } from 'vs/editor/contrib/folding/folding';
|
||||
import { RenameController } from 'vs/editor/contrib/rename/rename';
|
||||
|
||||
class QueryCodeEditor extends CodeEditor {
|
||||
|
||||
protected _getContributions(): IEditorContributionCtor[] {
|
||||
let contributions = super._getContributions();
|
||||
let skipContributions = [FoldingController.prototype];
|
||||
let skipContributions = [FoldingController.prototype, RenameController.prototype];
|
||||
contributions = contributions.filter(c => skipContributions.indexOf(c.prototype) === -1);
|
||||
return contributions;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -97,7 +97,8 @@ export async function rename(model: ITextModel, position: Position, newName: str
|
||||
|
||||
const CONTEXT_RENAME_INPUT_VISIBLE = new RawContextKey<boolean>('renameInputVisible', false);
|
||||
|
||||
class RenameController implements IEditorContribution {
|
||||
// {{SQL CARBON EDIT}}
|
||||
export class RenameController implements IEditorContribution {
|
||||
|
||||
private static readonly ID = 'editor.contrib.renameController';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user