Skip to content

Commit 31dc316

Browse files
authored
Merge pull request #30 from garaemon/2023.10.28-fix-remote-yaml
Fix for yaml on some environments
2 parents 29a4614 + 311aba7 commit 31dc316

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-emacs-tab",
33
"displayName": "vscode-emacs-tab",
44
"description": "emacs like tab behavior",
5-
"version": "0.1.0",
5+
"version": "0.1.1",
66
"publisher": "garaemon",
77
"repository": {
88
"type": "git",

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ function getLanguageConfiguration(id: string): ILanguageConfiguration | null {
345345
ext.packageJSON.contributes.languages) {
346346
const packageLangData = ext.packageJSON.contributes.languages.find(
347347
(langData: any) => (langData.id === documentLanguageId));
348-
if (packageLangData) {
348+
// packageLangData.configuration can be undefined. For example, configuration of the ROS
349+
// extension is undefined.
350+
if (packageLangData && packageLangData.configuration) {
349351
const langConfigFilepath =
350352
path.join(ext.extensionPath, packageLangData.configuration);
351353
const configFileContent = fs.readFileSync(langConfigFilepath).toString();

0 commit comments

Comments
 (0)