Skip to content

Commit 69aad89

Browse files
author
fidgetingbits
committed
Initial files for scope facets
1 parent 09e7e34 commit 69aad89

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

packages/common/src/scopeSupportFacets/getLanguageScopeSupport.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { pythonScopeSupport } from "./python";
66
import { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
77
import { talonScopeSupport } from "./talon";
88
import { typescriptScopeSupport } from "./typescript";
9+
import { shellscriptScopeSupport } from "./shellscript";
910

1011
export function getLanguageScopeSupport(
1112
languageId: string,
@@ -25,6 +26,8 @@ export function getLanguageScopeSupport(
2526
return talonScopeSupport;
2627
case "typescript":
2728
return typescriptScopeSupport;
29+
case "shellscript":
30+
return shellscriptScopeSupport;
2831
}
2932
throw Error(`Unsupported language: '${languageId}'`);
3033
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* eslint-disable @typescript-eslint/naming-convention */
2+
3+
import {
4+
LanguageScopeSupportFacetMap,
5+
ScopeSupportFacetLevel,
6+
} from "./scopeSupportFacets.types";
7+
8+
const { supported } = ScopeSupportFacetLevel;
9+
10+
export const shellscriptScopeSupport: LanguageScopeSupportFacetMap = {
11+
command: supported,
12+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
local name="Hello world"
2+
---

0 commit comments

Comments
 (0)