Skip to content

Commit

Permalink
Use non-deprecated version of registerTasksProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Feb 13, 2020
1 parent 43fd87c commit ea08806
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extensions/grunt/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class TaskDetector {
private updateProvider(): void {
if (!this.taskProvider && this.detectors.size > 0) {
const thisCapture = this;
this.taskProvider = vscode.workspace.registerTaskProvider('grunt', {
this.taskProvider = vscode.tasks.registerTaskProvider('grunt', {
provideTasks: (): Promise<vscode.Task[]> => {
return thisCapture.getTasks();
},
Expand Down
2 changes: 1 addition & 1 deletion extensions/gulp/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class TaskDetector {
private updateProvider(): void {
if (!this.taskProvider && this.detectors.size > 0) {
const thisCapture = this;
this.taskProvider = vscode.workspace.registerTaskProvider('gulp', {
this.taskProvider = vscode.tasks.registerTaskProvider('gulp', {
provideTasks(): Promise<vscode.Task[]> {
return thisCapture.getTasks();
},
Expand Down
2 changes: 1 addition & 1 deletion extensions/jake/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class TaskDetector {
private updateProvider(): void {
if (!this.taskProvider && this.detectors.size > 0) {
const thisCapture = this;
this.taskProvider = vscode.workspace.registerTaskProvider('jake', {
this.taskProvider = vscode.tasks.registerTaskProvider('jake', {
provideTasks(): Promise<vscode.Task[]> {
return thisCapture.getTasks();
},
Expand Down
2 changes: 1 addition & 1 deletion extensions/npm/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function registerTaskProvider(context: vscode.ExtensionContext): vscode.Disposab
context.subscriptions.push(workspaceWatcher);

let provider: vscode.TaskProvider = new NpmTaskProvider();
let disposable = vscode.workspace.registerTaskProvider('npm', provider);
let disposable = vscode.tasks.registerTaskProvider('npm', provider);
context.subscriptions.push(disposable);
return disposable;
}
Expand Down
2 changes: 1 addition & 1 deletion extensions/typescript-language-features/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function activate(
});

registerCommands(commandManager, lazyClientHost, pluginManager);
context.subscriptions.push(vscode.workspace.registerTaskProvider('typescript', new TscTaskProvider(lazyClientHost.map(x => x.serviceClient))));
context.subscriptions.push(vscode.tasks.registerTaskProvider('typescript', new TscTaskProvider(lazyClientHost.map(x => x.serviceClient))));
context.subscriptions.push(new LanguageConfigurationManager());

import('./features/tsconfig').then(module => {
Expand Down

0 comments on commit ea08806

Please sign in to comment.