Skip to content

Commit

Permalink
restricting language services to local files (#172)
Browse files Browse the repository at this point in the history
to adapt to Live Share feature shinnn/vscode-stylelint#172
  • Loading branch information
lostintangent authored and shinnn committed Apr 19, 2018
1 parent 169759f commit e8b4220
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const documentSelector = [];

for (const activationEvent of activationEvents) {
if (activationEvent.startsWith('onLanguage:')) {
documentSelector.push(activationEvent.replace('onLanguage:', ''));
const language = activationEvent.replace('onLanguage:', '');
documentSelector.push({language, scheme: 'file'}, {language, scheme: 'untitled'});
}
}

Expand Down

0 comments on commit e8b4220

Please sign in to comment.