Merge commit 'be3e8236086165e5e45a5a10783823874b3f3ebd' as 'lib/vscode'
This commit is contained in:
19
lib/vscode/extensions/emmet/src/node/emmetNodeMain.ts
Normal file
19
lib/vscode/extensions/emmet/src/node/emmetNodeMain.ts
Normal file
@ -0,0 +1,19 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import { homedir } from 'os';
|
||||
|
||||
import { activateEmmetExtension } from '../emmetCommon';
|
||||
import { setHomeDir } from '../util';
|
||||
|
||||
export function activate(context: vscode.ExtensionContext) {
|
||||
context.subscriptions.push(vscode.commands.registerCommand('editor.emmet.action.updateImageSize', () => {
|
||||
return import('../updateImageSize').then(uis => uis.updateImageSize());
|
||||
}));
|
||||
|
||||
setHomeDir(vscode.Uri.file(homedir()));
|
||||
activateEmmetExtension(context);
|
||||
}
|
Reference in New Issue
Block a user