File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { URI } from 'vscode-uri'
22import { LanguageClient , RequestType } from 'vscode-languageclient' ;
3- import * as vscode from 'vscode' ;
3+ import { workspace } from 'vscode' ;
44
55interface SchemaContributorProvider {
66 readonly requestSchema : ( resource : string ) => string ;
@@ -94,9 +94,9 @@ class SchemaExtensionAPI implements ExtensionAPI {
9494 for ( let customKey of Object . keys ( this . _customSchemaContributors ) ) {
9595 const contributor = this . _customSchemaContributors [ customKey ] ;
9696 let uri : string ;
97- if ( contributor . label && vscode . workspace . textDocuments ) {
97+ if ( contributor . label && workspace . textDocuments ) {
9898 const labelRegexp = new RegExp ( contributor . label , 'g' ) ;
99- for ( const doc of vscode . workspace . textDocuments ) {
99+ for ( const doc of workspace . textDocuments ) {
100100 if ( doc . uri . toString ( ) === resource ) {
101101 if ( labelRegexp . test ( doc . getText ( ) ) ) {
102102 uri = contributor . requestSchema ( resource ) ;
You can’t perform that action at this time.
0 commit comments