-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
77 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 0 additions & 54 deletions
54
src/vs/workbench/contrib/notebook/browser/contrib/kernelVariables/variablesView.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/variablesView.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
import { Disposable } from 'vs/base/common/lifecycle'; | ||
import { IWorkbenchContribution } from 'vs/workbench/common/contributions'; | ||
import { Registry } from 'vs/platform/registry/common/platform'; | ||
import { IViewContainersRegistry } from 'vs/workbench/common/views'; | ||
import { VIEWLET_ID as debugContainerId } from 'vs/workbench/contrib/debug/common/debug'; | ||
|
||
|
||
export class NotebookVariables extends Disposable implements IWorkbenchContribution { | ||
|
||
constructor() { | ||
super(); | ||
this.enableVariablesView(); | ||
} | ||
|
||
private async enableVariablesView() { | ||
const viewEnabled = true; | ||
|
||
if (viewEnabled) { | ||
const debugViewContainer = Registry.as<IViewContainersRegistry>('workbench.registry.view.containers').get(debugContainerId); | ||
|
||
if (debugViewContainer) { | ||
// const variablesPanelDescriptor = new VariablesPanelDescriptor(); | ||
// const viewsRegistry = Registry.as<IViewsRegistry>(Extensions.ViewsRegistry); | ||
|
||
// viewsRegistry.registerViews([variablesPanelDescriptor], debugViewContainer); | ||
} | ||
|
||
} else { | ||
// this.contextKeyListener = this.contextKeyService.onDidChangeContext(e => { | ||
// if (e.affectsSome()) { | ||
// this.enableVariablesView(); | ||
// } | ||
// }); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters