Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
dotnet-version: '10.0.x'

- name: Restore dependencies
run: dotnet restore src/KustoLsp.Tests/KustoLspTests.csproj
run: dotnet restore src/ServerTests/ServerTests.csproj

- name: Build
run: dotnet build src/KustoLsp.Tests/KustoLspTests.csproj --no-restore --configuration Release
run: dotnet build src/ServerTests/ServerTests.csproj --no-restore --configuration Release

- name: Run tests
run: ./src/KustoLsp.Tests/bin/Release/net10.0/KustoLspTests
run: ./src/ServerTests/bin/Release/net10.0/ServerTests

lint-typescript:
name: Lint and Build (TypeScript)
Expand All @@ -47,15 +47,15 @@ jobs:
with:
node-version: 'lts/*'
cache: 'npm'
cache-dependency-path: src/VsCodeExtension/package-lock.json
cache-dependency-path: src/Client/package-lock.json

- name: Install dependencies
run: npm ci
working-directory: src/VsCodeExtension
working-directory: src/Client

- name: Compile TypeScript
run: npm run compile
working-directory: src/VsCodeExtension
working-directory: src/Client

package-vsix:
name: Build VSIX Package
Expand All @@ -77,22 +77,22 @@ jobs:
with:
node-version: 'lts/*'
cache: 'npm'
cache-dependency-path: src/VsCodeExtension/package-lock.json
cache-dependency-path: src/Client/package-lock.json

- name: Install dependencies
run: npm ci
working-directory: src/VsCodeExtension
working-directory: src/Client

- name: Install vsce
run: npm install -g @vscode/vsce

- name: Build VSIX package
run: npm run package
working-directory: src/VsCodeExtension
working-directory: src/Client

- name: Upload VSIX artifact
uses: actions/upload-artifact@v4
with:
name: kusto-explorer-vsix
path: src/VsCodeExtension/*.vsix
path: src/Client/*.vsix
retention-days: 30
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ FodyWeavers.xsd
*.msp

# VS Code extension build output - exclude compiled server files
src/VsCodeExtension/server/
src/VsCodeExtension/out/
src/VsCodeExtension/LICENSE
src/VsCodeExtension/PATH.TXT
src/Client/server/
src/Client/out/
src/Client/LICENSE
src/Client/PATH.TXT

11 changes: 5 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio
### Building the Language Server

```bash
cd src/KustoLspServer
cd src/Server
dotnet build
```

### Building the VS Code Extension

```bash
cd src/VsCodeExtension
cd src/Client
npm install
npm run compile
```
Expand All @@ -52,17 +52,16 @@ npm run compile
### Packaging the Extension

```bash
cd src/VsCodeExtension
cd src/Client
npm run package
```

This will create a `.vsix` file that can be installed in VS Code.

## Project Structure

- `src/KustoLspServer/` - .NET Language Server Protocol implementation
- `src/KustoLanguageServer/` - Core language server functionality
- `src/VsCodeExtension/` - VS Code extension (TypeScript)
- `src/Server/` - Vs Code extension Server (C#)
- `src/Client/` - VS Code extension Client (TypeScript)

## Reporting Issues

Expand Down
68 changes: 34 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Kusto Language Server
# Kusto Explorer for VS Code

A VS Code extension for the Kusto Query Language (KQL)

Expand Down Expand Up @@ -108,7 +108,7 @@ A VS Code extension for the Kusto Query Language (KQL)
## Creating the VSIX installer

1. Must have vsce installed (npm install -g @vscode/vsce)
2. run `npm run package` on command line within VsCodeExtension folder to build the .vsix file
2. run `npm run package` on command line within `src/Client` folder to build the .vsix file

## Installing the VSIX manually

Expand All @@ -120,37 +120,37 @@ Run `code --uninstall-extension Microsoft.kusto-explorer-vscode` on command line

## Launching in VS Code debug mode (without installing VSIX)

1. Open VsCodeExtension folder in VS Code.
1. Open `src\Client` folder in VS Code.
2. Build the client side using `compile` command in explorer panel `NPM SCRIPTS`
3. Build the server side using `build-debug-server` in explorer panel `NPM SCRIPTS`
4. Press F5 to launch the extension in a new VS Code window with debugging enabled.
## Contributing
This project welcomes contributions and suggestions. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
## Security
If you believe you have found a security vulnerability in this repository, please report it to us through coordinated disclosure.
**Please do not report security vulnerabilities through public GitHub issues.**
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
For more information, see [SECURITY.md](SECURITY.md) or visit [Microsoft's Security Policy](https://github.com/microsoft/Kusto-Language-Server/security/policy).
## Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
4. Press F5 to launch the extension in a new VS Code window with debugging enabled.

## Contributing

This project welcomes contributions and suggestions. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

## Security

If you believe you have found a security vulnerability in this repository, please report it to us through coordinated disclosure.

**Please do not report security vulnerabilities through public GitHub issues.**

Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).

For more information, see [SECURITY.md](SECURITY.md) or visit [Microsoft's Security Policy](https://github.com/microsoft/Kusto-Language-Server/security/policy).

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
83 changes: 0 additions & 83 deletions src/CONTRIBUTING.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/VsCodeExtension/package.json → src/Client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"scripts": {
"compile": "tsc -p .",
"watch": "tsc -watch -p .",
"build-release-server": "dotnet publish ../KustoLspServer/KustoLspServer.csproj -c Release -o ./server",
"build-debug-server": "dotnet publish ../KustoLspServer/KustoLspServer.csproj -c Debug -o ./server",
"build-release-server": "dotnet publish ../Server/Server.csproj -c Release -o ./server",
"build-debug-server": "dotnet publish ../Server/Server.csproj -c Debug -o ./server",
"package": "shx cp ../../LICENSE . && npm run compile && npm run build-release-server && vsce package",
"publish": "vsce publish"
},
Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 0 additions & 10 deletions src/Kusto.LSP.slnx

This file was deleted.

8 changes: 8 additions & 0 deletions src/KustoExplorerVscode.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Solution>
<Project Path="Server/Server.csproj" />
<Project Path="ServerTests/ServerTests.csproj" />
<Project Path="Client/Client.esproj">
<Build />
<Deploy />
</Project>
</Solution>
15 changes: 0 additions & 15 deletions src/KustoLspServer/KustoLspServer.csproj

This file was deleted.

14 changes: 0 additions & 14 deletions src/LspCommon/LspCommon.csproj

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

namespace Kusto.Lsp;
namespace Kusto.Vscode;

/// <summary>
/// Constants for chart visualization kinds.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Runtime.Serialization;
using Kusto.Data.Utils;

namespace Kusto.Lsp;
namespace Kusto.Vscode;

/// <summary>
/// Serializable representation of chart visualization options.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

using System.Data;

namespace Kusto.Lsp;
namespace Kusto.Vscode;

public interface IChartManager
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Kusto.Lsp;
namespace Kusto.Vscode;

/// <summary>
/// Immutable fluent builder for creating Plotly charts with C# idioms.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kusto.Lsp;
namespace Kusto.Vscode;

/// <summary>
/// Extension methods for building charts with fluent syntax.
Expand Down Expand Up @@ -560,7 +560,7 @@ public static PlotlyChartBuilder SetGrouped(this PlotlyChartBuilder builder)
/// Sets the title for the 2D X-axis.
/// </summary>
/// <param name="builder">The chart builder instance.</param>
/// <param name="title">The axis title text (e.g., "Time", "Region", "Temperature (°C)").</param>
/// <param name="title">The axis title text (e.g., "Time", "Region", "Temperature (�C)").</param>
/// <returns>A new immutable PlotlyChartBuilder with the X-axis title set.</returns>
public static PlotlyChartBuilder SetXAxisTitle(this PlotlyChartBuilder builder, string title)
{
Expand Down
Loading
Loading