Skip to content

Commit cb45761

Browse files
test: add more languages
1 parent 7cc7b8b commit cb45761

File tree

15 files changed

+2159
-4
lines changed

15 files changed

+2159
-4
lines changed

core/autocomplete/test/testCases.ts

Lines changed: 1906 additions & 0 deletions
Large diffs are not rendered by default.

core/util/parameters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const DEFAULT_AUTOCOMPLETE_OPTS: TabAutocompleteOptions = {
1313
slidingWindowSize: 500,
1414
maxSnippetPercentage: 0.6,
1515
recentlyEditedSimilarityThreshold: 0.3,
16-
useCache: true,
16+
useCache: false,
1717
onlyMyCode: true,
1818
useOtherFiles: true,
1919
useRecentlyEdited: true,

manual-testing-sandbox/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Use a base image
2+
FROM python:3.9-slim
3+
4+
# Set working directory
5+
WORKDIR /app
6+
7+
# Copy requirements file and install dependencies
8+
COPY requirements.txt .
9+
RUN pip install --no-cache-dir -r requirements.txt
10+
11+
# Copy the rest of the application code
12+
COPY . .
13+
14+
# Set environment variables
15+
ENV PORT=8080
16+
17+
# Start the application
18+
CMD ["python", "app.py"]

manual-testing-sandbox/config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
AWSTemplateFormatVersion: "2010-09-09"
2+
Description: Sample CloudFormation template
3+
4+
Resources:
5+
S3Bucket:
6+
Type: "AWS::S3::Bucket"
7+
Properties:
8+
BucketName: my-sample-bucket
9+
10+
EC2Instance:
11+
Type: "AWS::EC2::Instance"
12+
Properties:
13+
InstanceType: "t2.micro"
14+
ImageId: "ami-0abcdef12345abcdef"

manual-testing-sandbox/data.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"employees": [
3+
{ "name": "John Doe", "age": 30, "position": "Developer" },
4+
{ "name": "Jane Smith", "age": 25, "position": "Designer" },
5+
{ "name": "Emily Johnson", "age": 35, "position": "Manager" }
6+
],
7+
"active": true
8+
}

manual-testing-sandbox/program.cs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using System;
2+
3+
public class Program
4+
{
5+
public static void Main(string[] args)
6+
{
7+
Console.WriteLine("Hello World!");
8+
Calculator calc = new Calculator();
9+
calc.Add(5).Subtract(3);
10+
Console.WriteLine("Result: " + calc.GetResult());
11+
}
12+
13+
public class Calculator
14+
{
15+
private double result;
16+
17+
public Calculator Add(double number)
18+
{
19+
result += number;
20+
return this;
21+
}
22+
23+
public Calculator Subtract(double number)
24+
{
25+
result -= number;
26+
return this;
27+
}
28+
29+
public double GetResult()
30+
{
31+
return result;
32+
}
33+
}
34+
}

manual-testing-sandbox/query.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CREATE TABLE employees (
2+
id INT AUTO_INCREMENT PRIMARY KEY,
3+
name VARCHAR(100) NOT NULL,
4+
age INT NOT NULL,
5+
position VARCHAR(100)
6+
);
7+
8+
INSERT INTO employees (name, age, position) VALUES ('John Doe', 30, 'Developer');
9+
SELECT * FROM employees WHERE age > 25;

manual-testing-sandbox/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
The sole purpose of this folder is to open it when debugging the extension.
1+
The sole purpose of this folder is to open it when debugging the extension.
22
It is not used by the extension itself.
3-
You can add more files that can be useful when manually testing the extension.
3+
You can add more files that can be useful when manually testing the extension.

manual-testing-sandbox/test.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ a {
3333

3434
.button:hover {
3535
background-color: #0056b3;
36-
}
36+
}

manual-testing-sandbox/test.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Sample Page</title>
8+
<link rel="stylesheet" href="test.css">
9+
</head>
10+
11+
<body>
12+
<header>
13+
<h1>Welcome to the Sample Page</h1>
14+
<nav>
15+
<a href="#home">Home</a>
16+
<a href="#about">About</a>
17+
<a href="#contact">Contact</a>
18+
</nav>
19+
</header>
20+
<div class="container">
21+
<p>This is a sample paragraph.</p>
22+
</div>
23+
</body>
24+
25+
</html>

0 commit comments

Comments
 (0)