You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/code-search/code-navigation/syntactic_code_navigation.mdx
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,16 @@
3
3
<TierCallout>
4
4
Supported on [Enterprise](/pricing/enterprise) plans.
5
5
<user>
6
-
This feature is currently experimental and enabled by default for Cloud customers
6
+
This feature is currently in Beta and enabled by default for Cloud customers
7
7
</user>
8
8
</TierCallout>
9
9
10
-
Syntactic code navigation is an opt-in zero configuration feature that improves code navigation for certain languages in the absence of
10
+
Syntactic code navigation is a zero configuration feature that improves code navigation for certain languages in the absence of
11
11
[Precise code navigation](./precise_code_navigation) set up. It works by periodically indexing repositories for which it is [enabled](#enabling-syntactic-code-navigation), using high level syntax analysis heuristics.
12
12
13
13
This mechanism is more robust than search-based navigation, but less powerful than Precise code navigation.
14
14
When syntactic indexing data is available for a given file and repository, it will be selected over search-based navigation automatically,
15
-
but only if Precise data is not available. To summarise the order of priorities is as follows:
15
+
but only if Precise data is not available. To summarize, the order of priorities is as follows:
16
16
17
17
- Precise data
18
18
- Syntactic, if no precise data available
@@ -37,6 +37,23 @@ Syntactic indexing can only be enabled if the policy type is set to HEAD – onl
37
37
38
38
## Supported languages
39
39
40
-
Syntactic code navigation requires language-specific implementations, and we currently support the following languages: [Java](https://www.java.com/en/), [Go](https://go.dev/), [Scala](https://scala-lang.org).
40
+
Syntactic code navigation requires language-specific implementations, and we currently support the following languages:
41
41
42
-
We are constantly looking to expand the list of supported languages, with Python, Typescript/Javascript, C, C++, C# planned. If you are interested in syntactic indexing for these or any other languages, please contact your Sourcegraph account representative.
We are constantly looking to expand the list of supported languages, with Python, Typescript/Javascript, and C planned.
49
+
If you are interested in syntactic indexing for these or any other languages, please contact your Sourcegraph account representative.
50
+
51
+
## Comparison with Precise and Search-based
52
+
53
+
Syntactic code navigation falls between Precise and Search-based code navigation both in terms of quality of navigation,
54
+
and in terms of effort to maintain for different languages:
55
+
56
+

57
+
58
+
As the indexing does not involve build tools or actual compilers, it can be performed in isolated environment, with no network access
0 commit comments