-
Notifications
You must be signed in to change notification settings - Fork 169
Enable running the VS Code extension host on the workspace (Node.js) by default #3093
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
Open
joao-boechat
wants to merge
16
commits into
main
Choose a base branch
from
joaoboechat/node-js-entrypoint
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7fbc222
save initial progress
joao-boechat 2050f1a
unify common exports in single file
joao-boechat adf2adf
first complete working version
joao-boechat c482e3e
remove redundant code from main.ts entrypoint
joao-boechat 600f6ab
fix deprecated parameters
joao-boechat a074ed3
fix qsharp-lang tests
joao-boechat 1db22da
make generate_docs depend on web version of wasm
joao-boechat 65adfc7
use web-worker npm package to make worker code agnostic of platform (…
joao-boechat 642a244
update vscode extension to match new worker api
joao-boechat 59663b7
update playground to match new worker api
joao-boechat d1d3082
build node-workers separately, keep web-worker external for the node …
joao-boechat cb2566d
fix qsharp-lang tests
joao-boechat bf2bcf8
log platform, UI, and remoteName during extension activation
joao-boechat dbff9f7
centralize platform env
joao-boechat d4aa75a
export messageHandler for backwards compatibility
joao-boechat 1de5b89
update comments and README for qsharp-lang package
joao-boechat 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
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,29 @@ | ||
| export type { IVariable, IVariableChild } from "../lib/web/qsc_wasm.js"; | ||
| export * as utils from "./utils.js"; | ||
| export { log } from "./log.js"; | ||
| export { QscEventTarget } from "./compiler/events.js"; | ||
| export { QdkDiagnostics } from "./diagnostics.js"; | ||
| export { default as samples } from "./samples.generated.js"; | ||
| export { default as openqasm_samples } from "./openqasm-samples.generated.js"; | ||
| export { | ||
| qsharpGithubUriScheme, | ||
| qsharpLibraryUriScheme, | ||
| } from "./language-service/language-service.js"; | ||
| export type { Dump, ShotResult } from "./compiler/common.js"; | ||
| export type { CompilerState, ProgramConfig } from "./compiler/compiler.js"; | ||
| export type { ICompiler, ICompilerWorker } from "./compiler/compiler.js"; | ||
| export type { | ||
| IDebugService, | ||
| IDebugServiceWorker, | ||
| } from "./debug-service/debug-service.js"; | ||
| export type { | ||
| ILanguageService, | ||
| ILanguageServiceWorker, | ||
| LanguageServiceDiagnosticEvent, | ||
| LanguageServiceEvent, | ||
| LanguageServiceTestCallablesEvent, | ||
| } from "./language-service/language-service.js"; | ||
| export type { ProjectLoader } from "./project.js"; | ||
| export type { CircuitGroup as CircuitData } from "./data-structures/circuit.js"; | ||
| export type { LogLevel } from "./log.js"; | ||
| export { StepResultId } from "../lib/web/qsc_wasm.js"; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,8 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| import { createWorker } from "../workers/worker.js"; | ||
| import { compilerProtocol } from "./compiler.js"; | ||
|
|
||
| const messageHandler = createWorker(compilerProtocol); | ||
| addEventListener("message", messageHandler); |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,8 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| import { createWorker } from "../workers/worker.js"; | ||
| import { debugServiceProtocol } from "./debug-service.js"; | ||
|
|
||
| const messageHandler = createWorker(debugServiceProtocol); | ||
| addEventListener("message", messageHandler); |
Oops, something went wrong.
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.
now that we're just using the web target, should I simplify the code to account for that, or do I leave the structure as is in case we want to add the nodejs target back?
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.
I would simplify.