Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workbench editor renames #91943

Merged
merged 5 commits into from
Mar 3, 2020
Merged

Workbench editor renames #91943

merged 5 commits into from
Mar 3, 2020

Conversation

bpasero
Copy link
Member

@bpasero bpasero commented Mar 3, 2020

This changes the following to make workbench editors easier to distinguish from our code editor:

  • (workbench) IEditor => IEditorPane
  • IVisibleEditor => IVisibleEditorPane
  • ITextEditor => ITextEditorPane
  • ITextDiffEditor => ITextDiffEditorPane
  • IEditorService#activeControl => IEditorService#activeEditorPane
  • IEditorService#visibleControls => IEditorService#visibleEditorPanes
  • activeTextEditorWidget => activeTextEditorControl
  • visibleTextEditorWidgets => visibleTextEditorControls

This now means that the access to the actual control is consistent:

  • IEditorPane#getControl()
  • IEditorService#activeControl / IEditorService#visibleControls

Nothing changed with regards to the controls, they are still IEditor or IDiffEditor. We cannot easily bring in ICodeEditor as it lives in browser and editor service is used in many common places.

//cc @jrieken
//cc @rebornix

bpasero added 5 commits March 3, 2020 09:14
* IVisibleEditor => IVisibleEditorPane
* ITextEditor => ITextEditorPane
* ITextDiffEditor => ITextDiffEditorPane
* IEditorService#activeControl => activeEditorPane
* IEditorService#visibleControls => visibleEditorPanes
* activeTextEditorWidget => activeTextEditorControl
* visibleTextEditorWidgets => visibleTextEditorControls
@bpasero bpasero self-assigned this Mar 3, 2020
@bpasero bpasero added this to the March 2020 milestone Mar 3, 2020
@bpasero bpasero merged commit 418d197 into master Mar 3, 2020
@bpasero bpasero deleted the ben/wb-editor-renames branch March 3, 2020 09:47
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant