Skip to content

Commit 03b7d28

Browse files
authored
Merge pull request #299 from jpogran/GH-296-document-scheme
(GH-296) Document Selector Scheme
2 parents 21bc52f + cbf3f2b commit 03b7d28

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

src/connection.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { PuppetLanguageClient } from './PuppetLanguageClient';
1010
import { ConnectionConfiguration } from './configuration';
1111

1212
const langID = 'puppet'; // don't change this
13+
const documentSelector = { scheme: 'file', language: langID };
1314

1415
export 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(

0 commit comments

Comments
 (0)