Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Dima <alexdima@microsoft.com>2020-11-24 12:01:03 +0300
committerAlex Dima <alexdima@microsoft.com>2020-11-24 12:01:38 +0300
commitae64039e432f21afc36465c18c0e9e38c58d7113 (patch)
tree4006845a44423bf467863698c87c9f07c52fd53b /src/vs/workbench/contrib/extensions/common
parentde85ef3a2065c051204919085e4baea14fd43f1c (diff)
Move `runtimeExtensionsInput` to `/common/`
Diffstat (limited to 'src/vs/workbench/contrib/extensions/common')
-rw-r--r--src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts b/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts
new file mode 100644
index 00000000000..8fa384f074a
--- /dev/null
+++ b/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts
@@ -0,0 +1,43 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
+import * as nls from 'vs/nls';
+import { URI } from 'vs/base/common/uri';
+import { EditorInput } from 'vs/workbench/common/editor';
+
+export class RuntimeExtensionsInput extends EditorInput {
+
+ static readonly ID = 'workbench.runtimeExtensions.input';
+
+ static _instance: RuntimeExtensionsInput;
+ static get instance() {
+ if (!RuntimeExtensionsInput._instance || RuntimeExtensionsInput._instance.isDisposed()) {
+ RuntimeExtensionsInput._instance = new RuntimeExtensionsInput();
+ }
+
+ return RuntimeExtensionsInput._instance;
+ }
+
+ readonly resource = URI.from({
+ scheme: 'runtime-extensions',
+ path: 'default'
+ });
+
+ getTypeId(): string {
+ return RuntimeExtensionsInput.ID;
+ }
+
+ getName(): string {
+ return nls.localize('extensionsInputName', "Running Extensions");
+ }
+
+ supportsSplitEditor(): boolean {
+ return false;
+ }
+
+ matches(other: unknown): boolean {
+ return other instanceof RuntimeExtensionsInput;
+ }
+}