File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
2222- (maint) Improve issue templates
2323- ([ GH-241 ] ( https://github.com/lingua-pupuli/puppet-vscode/issues/241 ) ) Honor specified tcp port
2424- ([ GH-240 ] ( https://github.com/lingua-pupuli/puppet-vscode/issues/240 ) ) Add TCP retry functionality
25+ - ([ GH-296 ] ( https://github.com/lingua-pupuli/puppet-vscode/issues/296 ) ) Set document file scheme
2526
2627## 0.10.0 - 2018-03-29
2728
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { PuppetLanguageClient } from './PuppetLanguageClient';
1010import { ConnectionConfiguration } from './configuration' ;
1111
1212const langID = 'puppet' ; // don't change this
13+ const documentSelector = { scheme : 'file' , language : langID } ;
1314
1415export interface IConnectionManager {
1516 status : ConnectionStatus ;
@@ -308,7 +309,7 @@ export class ConnectionManager implements IConnectionManager {
308309
309310 this . logger . debug ( 'Configuring language server client options' ) ;
310311 let clientOptions : LanguageClientOptions = {
311- documentSelector : [ langID ]
312+ documentSelector : [ documentSelector ]
312313 } ;
313314
314315 this . puppetLanguageClient = new PuppetLanguageClient (
You can’t perform that action at this time.
0 commit comments