File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 "name" : " Extension" ,
1616 "type" : " sqlopsExtensionHost" ,
1717 "request" : " launch" ,
18- "runtimeExecutable" : " azuredatastudio" ,
18+ "runtimeExecutable" : " azuredatastudio-insiders " ,
1919 "args" : [
2020 " --extensionDevelopmentPath=${workspaceFolder}"
2121 ],
2828 "name" : " Extension Tests" ,
2929 "type" : " sqlopsExtensionHost" ,
3030 "request" : " launch" ,
31- "runtimeExecutable" : " azuredatastudio" ,
31+ "runtimeExecutable" : " azuredatastudio-insiders " ,
3232 "args" : [
3333 " --extensionDevelopmentPath=${workspaceFolder}" ,
3434 " --extensionTestsPath=${workspaceFolder}/out/test"
Original file line number Diff line number Diff line change 22 "name" : " firstresponderkit" ,
33 "displayName" : " First Responder Kit" ,
44 "description" : " Current Versions of the sp_blitz Scripts" ,
5- "version" : " 0.5.0 " ,
5+ "version" : " 0.5.1 " ,
66 "publisher" : " drewsk" ,
77 "engines" : {
88 "vscode" : " ^1.25.0" ,
9- "azdata" : " * "
9+ "azdata" : " ^1.15.0 "
1010 },
1111 "categories" : [
1212 " Other"
Original file line number Diff line number Diff line change @@ -7,15 +7,6 @@ import {updatecheck} from './updateCheck';
77
88export function activate ( context : vscode . ExtensionContext ) {
99 const baseUrl = "https://raw.githubusercontent.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/master/" ;
10-
11- // checking spblitz versioning
12- var oediag = async ( context : sqlops . ObjectExplorerContext ) => {
13- vscode . window . showInformationMessage ( context . isConnectionNode . toString ( ) ) ;
14- vscode . window . showInformationMessage ( context . nodeInfo . nodeSubType ) ;
15- vscode . window . showInformationMessage ( context . nodeInfo . iconType . toString ( ) ) ;
16- } ;
17- var disposable_oediag = vscode . commands . registerCommand ( 'extension.OEdiagnostics' , oediag ) ;
18- context . subscriptions . push ( disposable_oediag ) ;
1910
2011 // checking spblitz versioning
2112 var getblitzversion = async ( context ?: sqlops . ObjectExplorerContext ) => {
Original file line number Diff line number Diff line change @@ -4,26 +4,15 @@ import * as sqlops from 'azdata';
44import * as vscode from 'vscode' ;
55
66export class placeScript {
7- // places scriptText into fileName editor with current connection
8- public async placescript ( fileName , scriptText , context ?: sqlops . ObjectExplorerContext ) {
7+ // places scriptText into fileName editor with current connection
8+ public async placescript ( fileName , scriptText , context ?: sqlops . ObjectExplorerContext ) {
99 var setting : vscode . Uri = vscode . Uri . parse ( "untitled:" + fileName ) ;
1010 try {
11- var connectId ;
12- if ( context ) {
13- let connection = context . connectionProfile ;
14- connectId = connection . id ;
15- } else {
16- let connection = await sqlops . connection . getCurrentConnection ( ) ;
17- connectId = connection . connectionId ;
18- }
1911 let doc = await vscode . workspace . openTextDocument ( setting ) ;
2012 let editor = await vscode . window . showTextDocument ( doc , 1 , false ) ;
2113 editor . edit ( edit => {
2214 edit . insert ( new vscode . Position ( 0 , 0 ) , scriptText ) ;
2315 } ) ;
24- if ( connectId ) {
25- await sqlops . queryeditor . connect ( doc . uri . toString ( ) , connectId ) ;
26- }
2716 } catch ( err ) {
2817 vscode . window . showErrorMessage ( err ) ;
2918 }
You can’t perform that action at this time.
0 commit comments