mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
[json] enable color picker
This commit is contained in:
@@ -9,7 +9,7 @@ import * as path from 'path';
|
||||
import { workspace, languages, ExtensionContext, extensions, Uri, Range } from 'vscode';
|
||||
import { LanguageClient, LanguageClientOptions, RequestType, ServerOptions, TransportKind, NotificationType } from 'vscode-languageclient';
|
||||
import TelemetryReporter from 'vscode-extension-telemetry';
|
||||
import { activateColorDecorations } from "./colorDecorators";
|
||||
import { activateColorDecorations, ColorProvider } from "./colorDecorators";
|
||||
|
||||
import * as nls from 'vscode-nls';
|
||||
let localize = nls.loadMessageBundle();
|
||||
@@ -95,6 +95,8 @@ export function activate(context: ExtensionContext) {
|
||||
};
|
||||
disposable = activateColorDecorations(colorRequestor, { json: true }, isDecoratorEnabled);
|
||||
context.subscriptions.push(disposable);
|
||||
|
||||
context.subscriptions.push(languages.registerColorProvider('json', new ColorProvider(colorRequestor)));
|
||||
});
|
||||
|
||||
// Push the disposable to the context's subscriptions so that the
|
||||
|
||||
Reference in New Issue
Block a user