Skip to content

Commit

Permalink
removing editor connection helper for file saves
Browse files Browse the repository at this point in the history
  • Loading branch information
dzsquared committed Feb 17, 2020
1 parent 2841458 commit 826d4c2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 56 deletions.
36 changes: 0 additions & 36 deletions src/connectHolder.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import * as azdata from 'azdata';
import { changeDatabase } from './changeDatabase';
import { initQEB } from './settingsUpdates';
import { setEagerRunContext } from './contextSettings';
import { willSaveQuery, querySaved } from './queryEditorHelper';
import { addSnippetPlaceholder, addSnippetVariable, saveNewSnippet } from './snippetHelper';
import { runQuerySection } from './runQuery';

Expand All @@ -20,10 +19,6 @@ export function activate(context: vscode.ExtensionContext) {
setEagerRunContext();
context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(setEagerRunContext));

// patches text editor save and query connection
context.subscriptions.push(vscode.workspace.onWillSaveTextDocument( (willSave: vscode.TextDocumentWillSaveEvent) => willSaveQuery(willSave) ));
context.subscriptions.push(vscode.workspace.onDidSaveTextDocument( (doc: vscode.TextDocument) => querySaved(doc) ));

// telemetry setup
var tH = new telemetryHelper(context);
tH.sendTelemetry('activated', { }, { });
Expand Down
15 changes: 0 additions & 15 deletions src/queryEditorHelper.ts

This file was deleted.

0 comments on commit 826d4c2

Please sign in to comment.