-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Remove editorOpenWith #116856
Remove editorOpenWith #116856
Changes from 1 commit
f1024f8
773cb0f
6cae5f3
60889c5
eac3a48
6138c86
399b72e
bf01999
5b0dc61
1cdc476
3cc1560
b6aad40
88bd032
e3cbe87
bea6f08
60bb8ba
e8b820b
32360ff
293664b
f7b7f94
8da2cec
8694848
78c5aff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ import { URI } from 'vs/base/common/uri'; | |
import * as nls from 'vs/nls'; | ||
import { IExtensionDescription } from 'vs/platform/extensions/common/extensions'; | ||
import { IStorageService, StorageScope, StorageTarget } from 'vs/platform/storage/common/storage'; | ||
import { builtinProviderDisplayName } from 'vs/workbench/common/editor'; | ||
import { Memento } from 'vs/workbench/common/memento'; | ||
import { CustomEditorDescriptor, CustomEditorInfo, CustomEditorPriority } from 'vs/workbench/contrib/customEditor/common/customEditor'; | ||
import { customEditorsExtensionPoint, ICustomEditorsExtensionPoint } from 'vs/workbench/contrib/customEditor/common/extensionPoint'; | ||
|
@@ -18,7 +17,7 @@ import { IExtensionPointUser } from 'vs/workbench/services/extensions/common/ext | |
export const defaultCustomEditor = new CustomEditorInfo({ | ||
id: 'default', | ||
displayName: nls.localize('promptOpenWith.defaultEditor.displayName', "Text Editor"), | ||
providerDisplayName: builtinProviderDisplayName, | ||
providerDisplayName: nls.localize('builtinProviderDisplayName', "Built-in"), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nit] Try extracting this string since it it used in two places There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is probably on me, I wasn't sure about the benefit of sharing NLS strings here. If we have a concept of built-in custom editors, shouldn't we rather have a flag to indicate as such and then maybe put the label in one central place? |
||
selector: [ | ||
{ filenamePattern: '*' } | ||
], | ||
|
@@ -59,7 +58,7 @@ export class ContributedCustomEditors extends Disposable { | |
this.add(new CustomEditorInfo({ | ||
id: webviewEditorContribution.viewType, | ||
displayName: webviewEditorContribution.displayName, | ||
providerDisplayName: extension.description.isBuiltin ? builtinProviderDisplayName : extension.description.displayName || extension.description.identifier.value, | ||
providerDisplayName: extension.description.isBuiltin ? nls.localize('builtinProviderDisplayName', "Built-in") : extension.description.displayName || extension.description.identifier.value, | ||
selector: webviewEditorContribution.selector || [], | ||
priority: getPriorityFromContribution(webviewEditorContribution, extension.description), | ||
})); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] Why does this constant need to be inlined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It breaks layering, as everywhere else this is used is in browser