-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new lsp extension to send dependency information from clien…
…t to servers (#338) * feat: add new lsp extension to send dependency information from client to servers * chore: add docstrings to notifyDependencyPathsParams * chore: rename notifyDependencyPaths to didChangeDependencyPaths --------- Co-authored-by: Ege Ozcan <[email protected]>
- Loading branch information
Showing
8 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { | ||
DID_CHANGE_DEPENDENCY_PATHS_NOTIFICATION_METHOD, | ||
DidChangeDependencyPathsParams, | ||
ProtocolNotificationType, | ||
} from './lsp' | ||
|
||
export const didChangeDependencyPathsNotificationType = new ProtocolNotificationType< | ||
DidChangeDependencyPathsParams, | ||
void | ||
>(DID_CHANGE_DEPENDENCY_PATHS_NOTIFICATION_METHOD) |
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
export * from './lsp' | ||
export * from './auth' | ||
export * from './chat' | ||
export * from './telemetry' | ||
export * from './didChangeDependencyPaths' | ||
export * from './getConfigurationFromServer' | ||
export * from './identity-management' | ||
export * from './lsp' | ||
export * from './notification' | ||
export * from './telemetry' |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export const DID_CHANGE_DEPENDENCY_PATHS_NOTIFICATION_METHOD = 'aws/didChangeDependencyPaths' | ||
|
||
/** | ||
* Parameters for notifying AWS language server about dependency paths | ||
*/ | ||
export interface DidChangeDependencyPathsParams { | ||
/** Name of the module being processed */ | ||
moduleName: string | ||
/** Programming language runtime (e.g., 'javascript', 'python', 'java') */ | ||
runtimeLanguage: string | ||
/** Absolute paths to dependency files and directories*/ | ||
paths: string[] | ||
/** | ||
* Glob patterns to include specific files/directories | ||
* Patterns should conform to https://github.com/isaacs/node-glob | ||
* @optional | ||
*/ | ||
includePatterns?: string[] | ||
/** | ||
* Glob patterns to exclude specific files/directories | ||
* Patterns should conform to https://github.com/isaacs/node-glob | ||
* @optional | ||
*/ | ||
excludePatterns?: string[] | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './chat' | ||
export * from './auth' | ||
export * from './lsp' | ||
export * from './chat' | ||
export * from './didChangeDependencyPaths' | ||
export * from './inlineCompletionWithReferences' | ||
export * from './lsp' |