Use Constants
This commit is contained in:
		
							parent
							
								
									b9d6659a26
								
							
						
					
					
						commit
						dda624c387
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,8 +1,10 @@
 | 
			
		|||
import { DocumentFilter } from "vscode";
 | 
			
		||||
 | 
			
		||||
import * as constants from "../constants";
 | 
			
		||||
 | 
			
		||||
export function createDocumentSelector(language: string): DocumentFilter[] {
 | 
			
		||||
    return [
 | 
			
		||||
        { language, scheme: "file" },
 | 
			
		||||
        { language, scheme: "untitled" },
 | 
			
		||||
        { language, scheme: constants.uriSchemes.file },
 | 
			
		||||
        { language, scheme: constants.uriSchemes.untitled },
 | 
			
		||||
    ];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue