-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f1b6c5
commit fd0938a
Showing
23 changed files
with
3,717 additions
and
1,924 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"terminal.integrated.profiles.osx": { | ||
"devboxCompatibleShell": { | ||
"path": "/bin/zsh", | ||
"args": [] | ||
} | ||
}, | ||
"terminal.integrated.defaultProfile.osx": "devboxCompatibleShell" | ||
} |
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,3 @@ | ||
import { ExtensionContext } from 'vscode'; | ||
export declare function activate(context: ExtensionContext): void; | ||
export declare function deactivate(): Thenable<void> | undefined; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "aql-language-client", | ||
"description": "AQL Language Client", | ||
"version": "1.0.0", | ||
"author": "Your Name", | ||
"license": "MIT", | ||
"engines": { | ||
"vscode": "^1.75.0" | ||
}, | ||
"dependencies": { | ||
"vscode-languageclient": "^8.1.0" | ||
}, | ||
"devDependencies": { | ||
"@types/vscode": "^1.75.0", | ||
"@types/node": "^16.11.7" | ||
} | ||
} |
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,60 @@ | ||
import * as path from 'path'; | ||
import { workspace, ExtensionContext } from 'vscode'; | ||
|
||
import { | ||
LanguageClient, | ||
LanguageClientOptions, | ||
ServerOptions, | ||
TransportKind | ||
} from 'vscode-languageclient/node'; | ||
|
||
let client: LanguageClient; | ||
|
||
export function activate(context: ExtensionContext) { | ||
// The server is implemented in node | ||
const serverModule = context.asAbsolutePath( | ||
path.join('server', 'out', 'server.js') | ||
); | ||
// The debug options for the server | ||
// --inspect=6009: runs the server in Node's Inspector mode so VS Code can attach to the server for debugging | ||
const debugOptions = { execArgv: ['--nolazy', '--inspect=6009'] }; | ||
|
||
// If the extension is launched in debug mode then the debug server options are used | ||
// Otherwise the run options are used | ||
const serverOptions: ServerOptions = { | ||
run: { module: serverModule, transport: TransportKind.ipc }, | ||
debug: { | ||
module: serverModule, | ||
transport: TransportKind.ipc, | ||
options: debugOptions | ||
} | ||
}; | ||
|
||
// Options to control the language client | ||
const clientOptions: LanguageClientOptions = { | ||
// Register the server for AQL documents | ||
documentSelector: [{ scheme: 'file', language: 'aql' }], | ||
synchronize: { | ||
// Notify the server about file changes to '.clientrc files contained in the workspace | ||
fileEvents: workspace.createFileSystemWatcher('**/.clientrc') | ||
} | ||
}; | ||
|
||
// Create and start the client | ||
client = new LanguageClient( | ||
'aqlLanguageServer', | ||
'AQL Language Server', | ||
serverOptions, | ||
clientOptions | ||
); | ||
|
||
// Start the client. This will also launch the server | ||
client.start(); | ||
} | ||
|
||
export function deactivate(): Thenable<void> | undefined { | ||
if (!client) { | ||
return undefined; | ||
} | ||
return client.stop(); | ||
} |
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,13 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"target": "es2020", | ||
"lib": ["es2020"], | ||
"outDir": "out", | ||
"rootDir": "src", | ||
"sourceMap": true, | ||
"composite": true | ||
}, | ||
"include": ["src"], | ||
"exclude": ["node_modules", ".vscode-test"] | ||
} |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
{ | ||
"packages": { | ||
"nodejs": "21.3.0", | ||
"yarn": "1.22.19", | ||
"podman": "4.9.3", | ||
"podman-tui": "1.0.0", | ||
"podman-compose": "1.0.6" | ||
"nodejs": "21.3.0" | ||
}, | ||
"shell": { | ||
"init_hook": [ | ||
"npm install" | ||
], | ||
"scripts": { | ||
"generate": "./from-docker.sh", | ||
"release": ["yarn release", "git push --follow-tags origin master"] | ||
"release": ["npm run release", "git push --follow-tags origin master"] | ||
} | ||
} | ||
} |
Oops, something went wrong.