-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapts procedure registry to depend on the cypher version #331
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
34f2bb8
Altered semantic analysis to use default/query-specified version if a…
anderson4j 1f76037
Merge branch 'main' of https://github.com/neo4j/cypher-language-suppo…
anderson4j d1d0a48
added tests
anderson4j d79e282
small refactor, fix defaultLanguage to be more like data according to…
anderson4j b9fc356
added changeset
anderson4j d653261
Adds some minor nits
ncordon 33fd518
Adds versioned procedure registry
ncordon e58d2e5
Updates the semantic analysis to use different procedure registries d…
ncordon 44c0b32
Adds tests for procedures / functions dependant on cypher versions
ncordon 6e7e5c6
Adds tests for completions and signature help being cypher version de…
ncordon ff25f9e
Makes project compile
ncordon fbdf5bb
Fixes e2e tests
ncordon 7cacbcb
Merge branch 'main' into polling-versioned-procs-fns
ncordon 9d29a4b
Adds integration test to check the poller and VSCode extension can us…
ncordon ee324f9
Merge remote-tracking branch 'origin/polling-versioned-procs-fns' int…
ncordon 6c98b22
Fixes e2e test
ncordon 07f20b7
Self review
ncordon f3b41a1
Adds feature flag to the codemirror wiring
ncordon 662b643
Fixes feature flag
ncordon cbda4a1
Adds more tests for codemirror
ncordon ef228ad
Merge remote-tracking branch 'origin/main' into polling-versioned-pro…
ncordon f18041e
Updates semantic analysis and removes exports
ncordon d2704ec
Addresses pr review comments
ncordon f2313a1
Merge branch 'main' into polling-versioned-procs-fns
ncordon d6d9547
Sets the env variable with cross-env
ncordon 74f5ecb
Updates only needed resolver
ncordon cacf7a4
Widens timeout
ncordon fb785f4
Widens timeout even more
ncordon bdaa8f7
Removes helpers test
ncordon 811d70a
Merge remote-tracking branch 'origin/main' into polling-versioned-pro…
ncordon 3a10389
Forces update
ncordon f6ba2ef
Increases another timeout
ncordon b3a8b8b
Gates the test to have the test.only
ncordon 8e00f98
Tries widening all timeouts
ncordon ee2cd18
Cleans up
ncordon aa7c1a3
Removes non needed force
ncordon 04430fa
Merge remote-tracking branch 'origin/main' into polling-versioned-pro…
ncordon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,21 @@ import { | |
|
||
import { TextDocument } from 'vscode-languageserver-textdocument'; | ||
|
||
import { syntaxColouringLegend } from '@neo4j-cypher/language-support'; | ||
import { | ||
syntaxColouringLegend, | ||
_internalFeatureFlags, | ||
} from '@neo4j-cypher/language-support'; | ||
import { Neo4jSchemaPoller } from '@neo4j-cypher/schema-poller'; | ||
import { doAutoCompletion } from './autocompletion'; | ||
import { cleanupWorkers, lintDocument } from './linting'; | ||
import { doSignatureHelp } from './signatureHelp'; | ||
import { applySyntaxColouringForDocument } from './syntaxColouring'; | ||
import { Neo4jSettings } from './types'; | ||
|
||
if (process.env.CYPHER_25 === 'true') { | ||
_internalFeatureFlags.cypher25 = true; | ||
} | ||
Comment on lines
+26
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is so we can set the feature flag in the language server from the vscode extension |
||
|
||
const connection = createConnection(ProposedFeatures.all); | ||
|
||
// Create a simple text document manager. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to pass the feature flags to the lint worker because the
_internalFeatureFlags
variable from the outside lives in another thread