Skip to content

Commit 752622d

Browse files
committed
Remove document filter, we'll rely on selector in Pylance
1 parent 3633183 commit 752622d

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
import { WorkspaceFolder } from 'vscode';
54
import { LanguageClientOptions } from 'vscode-languageclient';
6-
import { DocumentFilter } from 'vscode-languageserver-protocol';
75
import { IWorkspaceService } from '../../common/application/types';
86

97
import { LanguageServerAnalysisOptionsBase } from '../common/analysisOptions';
@@ -28,20 +26,4 @@ export class NodeLanguageServerAnalysisOptions extends LanguageServerAnalysisOpt
2826
lspNotebooksSupport: this.lspNotebooksExperiment.isInNotebooksExperiment(),
2927
} as unknown) as LanguageClientOptions;
3028
}
31-
32-
protected getDocumentFilters(_workspaceFolder?: WorkspaceFolder): DocumentFilter[] {
33-
const filters = super.getDocumentFilters(_workspaceFolder);
34-
35-
if (this.lspNotebooksExperiment.isInNotebooksExperiment()) {
36-
return [
37-
{ language: 'python' },
38-
{
39-
notebook: { notebookType: 'jupyter-notebook', pattern: '**/*.ipynb' },
40-
language: 'python',
41-
},
42-
];
43-
}
44-
45-
return filters;
46-
}
4729
}

0 commit comments

Comments
 (0)