File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
src/client/activation/node Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation. All rights reserved.
22// Licensed under the MIT License.
33
4- import { WorkspaceFolder } from 'vscode' ;
54import { LanguageClientOptions } from 'vscode-languageclient' ;
6- import { DocumentFilter } from 'vscode-languageserver-protocol' ;
75import { IWorkspaceService } from '../../common/application/types' ;
86
97import { 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}
You can’t perform that action at this time.
0 commit comments