mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
Add drop/paste resource for css (#221612)
* New drop and paste providers that create a url function snippet * added url pasting feature * added url pasting feature * added url pasting feature * Target just dropping/pasting resources for now * Move files * Remove unused strings * Removing more unused logic for now * Remove tsconfig change * Remove doc file * Capitalize * Remove old proposal names --------- Co-authored-by: Meghan Kulkarni <kulkarni.meg@gmail.com> Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import { ExtensionContext, Uri, l10n } from 'vscode';
|
||||
import { BaseLanguageClient, LanguageClientOptions } from 'vscode-languageclient';
|
||||
import { startClient, LanguageClientConstructor } from '../cssClient';
|
||||
import { LanguageClient } from 'vscode-languageclient/browser';
|
||||
import { registerDropOrPasteResourceSupport } from '../dropOrPaste/dropOrPasteResource';
|
||||
|
||||
let client: BaseLanguageClient | undefined;
|
||||
|
||||
@@ -23,6 +24,7 @@ export async function activate(context: ExtensionContext) {
|
||||
|
||||
client = await startClient(context, newLanguageClient, { TextDecoder });
|
||||
|
||||
context.subscriptions.push(registerDropOrPasteResourceSupport({ language: 'css', scheme: '*' }));
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user