Skip to content

Commit

Permalink
Don't rely on WebviewPanelResourceScheme hack for reopen with
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Sep 13, 2019
1 parent 3ce4f1d commit 3273894
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/vs/workbench/contrib/customEditor/browser/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { IListService } from 'vs/platform/list/browser/listService';
import { ResourceContextKey } from 'vs/workbench/common/resources';
import { ICustomEditorService } from 'vs/workbench/contrib/customEditor/common/customEditor';
import { getMultiSelectedResources } from 'vs/workbench/contrib/files/browser/files';
import { WebviewPanelResourceScheme } from 'vs/workbench/contrib/webview/browser/webviewEditorInput';
import { IEditorService } from 'vs/workbench/services/editor/common/editorService';

const viewCategory = nls.localize('viewCategory', "View");
Expand Down Expand Up @@ -73,10 +72,6 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
return;
}

if (resource.scheme === WebviewPanelResourceScheme) {
resource = URI.parse(decodeURIComponent(resource.query));
}

// Make sure the context menu has been dismissed before we prompt.
// Otherwise with webviews, we will sometimes close the prompt instantly when the webview is
// refocused by the workbench
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { EditorInput, EditorModel, GroupIdentifier, IEditorInput, Verbosity } fr
import { WebviewEditorOverlay } from 'vs/workbench/contrib/webview/browser/webview';
import { UnownedDisposable as Unowned } from 'vs/base/common/lifecycle';

export const WebviewPanelResourceScheme = 'webview-panel';
const WebviewPanelResourceScheme = 'webview-panel';

class WebviewIconsManager {
private readonly _icons = new Map<string, { light: URI, dark: URI }>();
Expand Down

0 comments on commit 3273894

Please sign in to comment.