File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
src/plugins/editor-monaco-language-apidom/language/providers Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 11import * as monaco from 'monaco-editor' ;
22import { languages as vscodeLanguages } from 'vscode' ;
3- import { detectionRegExp as detectionRegExpOpenAPIJSON20 } from '@swagger-api/apidom-parser-adapter-openapi-json-2' ;
4- import { detectionRegExp as detectionRegExpOpenAPIYAML20 } from '@swagger-api/apidom-parser-adapter-openapi-yaml-2' ;
53
64import Provider from './Provider.js' ;
75import * as apidom from '../apidom.js' ;
@@ -79,14 +77,6 @@ class DiagnosticsProvider extends Provider {
7977 }
8078
8179 async #getDiagnostics( model ) {
82- // @TODO ([email protected] ): this needs to be removed to enable OpenAPI 2.0 linting 83- if (
84- detectionRegExpOpenAPIJSON20 . test ( model . getValue ( ) ) ||
85- detectionRegExpOpenAPIYAML20 . test ( model . getValue ( ) )
86- ) {
87- return [ ] ;
88- }
89-
9080 const worker = await this . worker ( model . uri ) ;
9181
9282 if ( model . isDisposed ( ) ) {
You can’t perform that action at this time.
0 commit comments