-
Notifications
You must be signed in to change notification settings - Fork 21
[WIP] Svelte Language Server integration #277
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
snuffyDev
wants to merge
28
commits into
SvelteLab:main
Choose a base branch
from
snuffyDev:svelte-language-server
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 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
9617e2f
begin adding language server
snuffyDev b5a1461
reintroduce temp `files` object
snuffyDev 2d93f45
Handle multiple tab language support
snuffyDev e1cb9cf
Update the LS Worker
snuffyDev 87e2b5a
Merge branch 'main' into svelte-language-server
snuffyDev 3d32935
Merge remote-tracking branch 'upstream/main' into svelte-language-server
snuffyDev 1834f90
disable typescript checking for lsp worker in tsconfig.json
snuffyDev 455ad40
update language server files
snuffyDev 2129839
update language server
snuffyDev 86bfd7e
re-add process definition in vite config
snuffyDev 65d1153
Merge remote-tracking branch 'upstream/main' into svelte-language-server
snuffyDev 599d92b
fix double param
snuffyDev 44c3af8
use packaged svelte-language-server-web
snuffyDev 97b9f98
upgrade svelte-lsw to latest
snuffyDev 4677ceb
updates ls locally, temp use local build
snuffyDev e5867d1
use package
snuffyDev 73b9301
fix build
snuffyDev 2b28b48
fix worker imports, again
snuffyDev e4d769f
upgrade lang server package
snuffyDev 2741127
add jsconfigs to lib + basic template
snuffyDev e874c6b
Merge branch 'SvelteLab:main' into svelte-language-server
snuffyDev 7a2e863
Revert "update language server files"
snuffyDev 2d07b56
fix threlte template
snuffyDev a13c214
rm extra deps
snuffyDev 8f54fbb
fix loading on safari
snuffyDev 6dae990
add 'events' pkg
snuffyDev 448bc2f
Merge remote-tracking branch 'upstream/main' into svelte-language-server
snuffyDev b18e205
tweak modification fs event execution
snuffyDev 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
Merge remote-tracking branch 'upstream/main' into svelte-language-server
- Loading branch information
commit 65d115352df0165456b1e41edadf8f2410887136
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
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 |
---|---|---|
|
@@ -13,3 +13,4 @@ package-lock.json | |
yarn.lock | ||
/src/lib/language_servers/* | ||
/src/lib/lsp/* | ||
/pb_migrations |
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 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
6 changes: 3 additions & 3 deletions
6
src/lib/default_project_files/threlte/src/lib/components/App.svelte
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<script> | ||
import { Canvas } from '@threlte/core' | ||
import Scene from './Scene.svelte' | ||
import { Canvas } from '@threlte/core'; | ||
import Scene from './Scene.svelte'; | ||
</script> | ||
|
||
<Canvas> | ||
<Scene /> | ||
<Scene /> | ||
</Canvas> |
92 changes: 27 additions & 65 deletions
92
src/lib/default_project_files/threlte/src/lib/components/Scene.svelte
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 |
---|---|---|
@@ -1,81 +1,43 @@ | ||
<script> | ||
import { T } from '@threlte/core' | ||
import { ContactShadows, Float, Grid, OrbitControls } from '@threlte/extras' | ||
import { T } from '@threlte/core'; | ||
import { ContactShadows, Float, Grid, OrbitControls } from '@threlte/extras'; | ||
</script> | ||
|
||
<T.PerspectiveCamera | ||
makeDefault | ||
position={[-10, 10, 10]} | ||
fov={15} | ||
> | ||
<OrbitControls | ||
autoRotate | ||
enableZoom={false} | ||
enableDamping | ||
autoRotateSpeed={0.5} | ||
target.y={1.5} | ||
/> | ||
<T.PerspectiveCamera makeDefault position={[-10, 10, 10]} fov={15}> | ||
<OrbitControls autoRotate enableZoom={false} enableDamping autoRotateSpeed={0.5} target.y={1.5} /> | ||
</T.PerspectiveCamera> | ||
|
||
<T.DirectionalLight | ||
intensity={0.8} | ||
position.x={5} | ||
position.y={10} | ||
/> | ||
<T.DirectionalLight intensity={0.8} position.x={5} position.y={10} /> | ||
<T.AmbientLight intensity={0.2} /> | ||
|
||
<Grid | ||
position.y={-0.001} | ||
cellColor="#ffffff" | ||
sectionColor="#ffffff" | ||
sectionThickness={0} | ||
fadeDistance={25} | ||
cellSize={2} | ||
position.y={-0.001} | ||
cellColor="#ffffff" | ||
sectionColor="#ffffff" | ||
sectionThickness={0} | ||
fadeDistance={25} | ||
cellSize={2} | ||
/> | ||
|
||
<ContactShadows | ||
scale={10} | ||
blur={2} | ||
far={2.5} | ||
opacity={0.5} | ||
/> | ||
<ContactShadows scale={10} blur={2} far={2.5} opacity={0.5} /> | ||
|
||
<Float | ||
floatIntensity={1} | ||
floatingRange={[0, 1]} | ||
> | ||
<T.Mesh | ||
position.y={1.2} | ||
position.z={-0.75} | ||
> | ||
<T.BoxGeometry /> | ||
<T.MeshStandardMaterial color="#0059BA" /> | ||
</T.Mesh> | ||
<Float floatIntensity={1} floatingRange={[0, 1]}> | ||
<T.Mesh position.y={1.2} position.z={-0.75}> | ||
<T.BoxGeometry /> | ||
<T.MeshStandardMaterial color="#0059BA" /> | ||
</T.Mesh> | ||
</Float> | ||
|
||
<Float | ||
floatIntensity={1} | ||
floatingRange={[0, 1]} | ||
> | ||
<T.Mesh | ||
position={[1.2, 1.5, 0.75]} | ||
rotation.x={5} | ||
rotation.y={71} | ||
> | ||
<T.TorusKnotGeometry args={[0.5, 0.15, 100, 12, 2, 3]} /> | ||
<T.MeshStandardMaterial color="#F85122" /> | ||
</T.Mesh> | ||
<Float floatIntensity={1} floatingRange={[0, 1]}> | ||
<T.Mesh position={[1.2, 1.5, 0.75]} rotation.x={5} rotation.y={71}> | ||
<T.TorusKnotGeometry args={[0.5, 0.15, 100, 12, 2, 3]} /> | ||
<T.MeshStandardMaterial color="#F85122" /> | ||
</T.Mesh> | ||
</Float> | ||
|
||
<Float | ||
floatIntensity={1} | ||
floatingRange={[0, 1]} | ||
> | ||
<T.Mesh | ||
position={[-1.4, 1.5, 0.75]} | ||
rotation={[-5, 128, 10]} | ||
> | ||
<T.IcosahedronGeometry /> | ||
<T.MeshStandardMaterial color="#F8EBCE" /> | ||
</T.Mesh> | ||
<Float floatIntensity={1} floatingRange={[0, 1]}> | ||
<T.Mesh position={[-1.4, 1.5, 0.75]} rotation={[-5, 128, 10]}> | ||
<T.IcosahedronGeometry /> | ||
<T.MeshStandardMaterial color="#F8EBCE" /> | ||
</T.Mesh> | ||
</Float> |
Oops, something went wrong.
You are viewing a condensed version of this merge commit. You can view the full changes here.
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.
looks like these /src/lib/ stuff is still from before the language server worker was it's own module, right? 👀