1.3.5, 1.3.6, 1.3.7

This commit is contained in:
2022-01-12 14:31:15 -07:00
parent b3a9f0e822
commit 07237f44a3
8 changed files with 1106 additions and 948 deletions

View File

@ -9,6 +9,8 @@ import * as promiseLinesHelper from './promiseLinesHelper';
// your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {
const openCommand = 'open-in-new-window.open';
// Use the console to output diagnostic information (console.log) and errors (console.error)
// This line of code will only be executed once when your extension is activated
console.log('Congratulations, your extension "type-script-helper" is now active!');
@ -27,6 +29,14 @@ export function activate(context: vscode.ExtensionContext) {
// context.subscriptions.push(disposable);
const commands = [
vscode.commands.registerCommand(openCommand, (uri) => {
if (!uri) {
vscode.window.showWarningMessage('The intended usage is from the explorer context menu.');
return;
}
vscode.window.showInformationMessage(`Opening ${uri.path} in new window!`);
vscode.commands.executeCommand('vscode.openFolder', uri, true);
}),
vscode.commands.registerCommand('readOnlyLinesHelper.searchGoogle', readOnlyLinesHelper.searchGoogle),
vscode.commands.registerCommand('replaceLinesHelper.addCSharpComment', replaceLinesHelper.addCSharpComment),
vscode.commands.registerCommand('replaceLinesHelper.addVBComment', replaceLinesHelper.addVBComment),
@ -48,10 +58,10 @@ export function activate(context: vscode.ExtensionContext) {
vscode.commands.registerCommand('replaceLinesHelper.unwrapSql', replaceLinesHelper.unwrapSql),
vscode.commands.registerCommand('replaceLinesHelper.wrapSqlCSharp', replaceLinesHelper.wrapSqlCSharp),
vscode.commands.registerCommand('replaceLinesHelper.wrapSqlVB', replaceLinesHelper.wrapSqlVB)
];
commands.forEach(command => context.subscriptions.push(command));
];
commands.forEach(command => context.subscriptions.push(command));
}
// this method is called when your extension is deactivated
export function deactivate() {}
export function deactivate() { }